Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Increasing the size of the Detailed Image popup window

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-06-2008, 02:37 PM
 
AG9V AG9V is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 73
 

Default Increasing the size of the Detailed Image popup window

I did some searching around and couldn't find a good answer for this one...

I recently added the ALT text for the Detailed Images as a caption under the detailed image, but now the size at which the window pops up is too small.

How can I increase the size of the Detailed Images popup window to accomodate the newly added caption?
__________________
X-Cart Gold 4.1.10
XCSEO Pro 1.1.7
IIS 7 / Windows 2008
PHP Version 5.2.6
MySQL Version 5.0.51a
Reply With Quote
  #2  
Old 03-12-2008, 11:51 AM
 
AG9V AG9V is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 73
 

Default Re: Increasing the size of the Detailed Image popup window

I hear crickets here... nobody?
__________________
X-Cart Gold 4.1.10
XCSEO Pro 1.1.7
IIS 7 / Windows 2008
PHP Version 5.2.6
MySQL Version 5.0.51a
Reply With Quote
  #3  
Old 03-13-2008, 01:16 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Increasing the size of the Detailed Image popup window

There are some files in /skin1/main/

popup_image.js
popup_image.tpl
popup_image_js.js
popup_image_js.tpl
popup_images.tpl

I don't sure which file uses in Detailed Images but you can use Webmaster mode to clear up it.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #4  
Old 06-24-2008, 08:52 PM
 
AG9V AG9V is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 73
 

Default Re: Increasing the size of the Detailed Image popup window

Ah yes, that looks like the correct code... specifically pop_image_js.js

Unfortunately my javascript skills are sorely lacking.

Thanks though!
__________________
X-Cart Gold 4.1.10
XCSEO Pro 1.1.7
IIS 7 / Windows 2008
PHP Version 5.2.6
MySQL Version 5.0.51a
Reply With Quote
  #5  
Old 10-16-2008, 09:11 PM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default Re: Increasing the size of the Detailed Image popup window

I had the opposite problem, where I needed the popup window to match the height of the image better. Here is my code at the end of skin1/main/popup_image_js.js:
Code:
function imgOnLoad(obj) { if (images.length == 0 && obj) imgObj = obj; winH = imgObj.height+100<screen.height?imgObj.height+100:screen.height; window.resizeTo(imgObj.width, winH); expandWindowX(false, 10, screen.width); //expandWindowY(false, 10, screen.height); if (images.length == 0) return true; imgObj.alt = images[current_id][1]; return true; }
The original has
window.resizeTo(imgObj.width, imgObj.height);
and you could just change those to whatever dimensions you want.
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:03 PM.

   

 
X-Cart forums © 2001-2020