Support Forums

Pop Up Size when viewing large image

This is a discussion on Pop Up Size when viewing large image within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hello, Im trying to alter the size of the pop up window when you click an image when viewing a ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 09-19-2008, 08:49 AM   #1
Member
 
Join Date: Mar 2008
Location: ireland
Posts: 73
Rep Power: 9
markstanden is on a distinguished road
Default Pop Up Size when viewing large image

Hello,

Im trying to alter the size of the pop up window when you click an image when viewing a listing.. ive tried playing with viewimage.tpl but that doesnt alter the browser size only the large image itself. Am i missing something here?

Thanks for any help

Mark
Developer 4.08
markstanden is offline   Reply With Quote
Old 09-19-2008, 10:08 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,326
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

The size actually comes from viewlisting.tpl or viewlisting2.tpl.

It has a javascript popup with the dimensions included.

We also have a lot of people using lightbox type scripts: How To - Add a ThickBox Photo Gallery - 68 Classifieds
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-19-2008, 10:22 AM   #3
Member
 
Join Date: Mar 2008
Location: ireland
Posts: 73
Rep Power: 9
markstanden is on a distinguished road
Default Popup Javascript

Hi Again,

Found this line of code below and played with width and height by inputting a pixel value, but didnt make any difference to the pop up size, i want the pop up to be 600px by 400px, which part do i change?

<a href="#" onMouseOver="window.status='View Large Image';return true" onMouseOut="window.status='';return true" onClick="window.open('{$smarty.const.URL}/viewimage.php?photo=[[id]]&width=[[width]]&height=[[height]]','_popup','width=[[width]],height=[[height]],directories=no,location=no,menubar=no,scrollbars= yes,status=no,toolbar=no,resizable=no,left=0,top=0 ,screenx=50,screeny=50');return false"><img src="thumbs/small_[[image]]" hspace="5" vspace="5" class="image" border="0" /></a><br />[[title]]

Thanks for your help as always

Mark
4.08 Developer
markstanden is offline   Reply With Quote
Old 09-19-2008, 04:27 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,311
Rep Power: 55
seymourjames has a spectacular aura about
Default

It should work if you hard code in your values width= 600px height=400px and remove what is there [[width]] and [[height]].
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores

Last edited by seymourjames; 10-05-2008 at 05:44 AM. Reason: ambiguous - just the number is needed and not the ""
seymourjames is offline   Reply With Quote
Old 09-19-2008, 06:10 PM   #5
Member
 
Join Date: Mar 2008
Location: ireland
Posts: 73
Rep Power: 9
markstanden is on a distinguished road
Default Popup Size

Thanks Seymourjames, that worked a treat.. i was putting the value within the brackets..

Mark
Developer 4.08
markstanden is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Large Ad image Now fixed size?? Any Suggestions torrox Technical Support 10 06-09-2008 03:10 PM
Image upload blank screen problem (not file size related) larry1 v3.1 Questions & Support 1 10-12-2007 05:27 AM
more large image errors frosty v3.1 Questions & Support 2 05-17-2006 12:28 PM
Problem with viewing large image martini55 v3.1 Questions & Support 8 05-03-2006 02:17 PM


All times are GMT -4. The time now is 10:31 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0