Open Source Services

Development Services and Products for Open Source e-Commerce Sites

 
Welcome, Guest
Please Login or Register.    Lost Password?

large image order changes on its own ???
(1 viewing) (1) Guest
High priority support for Product Attribute Pictures (PAPs) v2.0 PLUS for osCommerce.
Go to bottomPage: 12
TOPIC: large image order changes on its own ???
#898
Re:large image order changes on its own ??? 1 Year, 11 Months ago  
Hi Steve

In this bit of code:

Code:


<img name="mainpic" src="paps_makethumb.php?pic=<?php echo DIR_WS_IMAGES . 'paps/' . $arr_filenames[$x-1];?>&w=<?php echo $img_widths_arr['m_w']; ?>&sq=N" border="1">



Try changing the '$x-1' to 0,1 or 2 and see what difference that makes.

Sorry for not being able to sort this out straight away - it is an old version

Nick
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#899
Re:large image order changes on its own ??? 1 Year, 11 Months ago  
nick ive figured it out but it wont allow me to post the fix on the forum...


basically on the part where it said javascript onload and you get past the line of code pointing to the image u get this line of code $arr_filenames[$x-1] and it just needed the [$x-1] to be changed to [0] but only on the 1st image leave the second with the -1 in it


thanks for your help nick, pointed me in the right direction and then i was able to tinker with the code and came across the solution..

cheers steve
sh2605
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#900
Re:large image order changes on its own ??? 1 Year, 11 Months ago  
looks like we came to this conclusion at the same time lol, thanks for helping nick i really appreciate it
sh2605
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12