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

Random Product Image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-25-2005, 02:36 AM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default Random Product Image

I have searched around, and it seems like the only decent version of a random product image script, is found here: http://forum.x-cart.com/viewtopic.php?t=4344

The post is well over a year old, and it doesn't run on 4.0.16.

Are there any random image scripts that are working?

I want a random image script that will randomly grab the image on the product page.
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #2  
Old 09-25-2005, 03:42 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

http://forum.x-cart.com/viewtopic.php?t=6321&highlight=random+image

also its best to add to the end of the original thread then start a new one on the same subject
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 09-25-2005, 10:44 AM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

The link you posted only gets a random number, doesn't get a random image.

I went ahead and replied to the 1+ year old post.
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #4  
Old 09-25-2005, 11:37 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

ive used this myself and it creates a random filename such as 1.gif, 2.gif etc

just name you images like that
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 09-25-2005, 11:44 AM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

So have duplicate images of around an extra 100MB? It just seems more logical to grab a random image name from the database. You won't have a duplicate image, and you don't have to do anything with the code after you add more images.

I didn't think it would be so hard to do. I figured someone with little php skills could create something that works.
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #6  
Old 09-25-2005, 11:59 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

didnt think you wanted a random image from the database.

search for a random products mod and adapt that
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 09-25-2005, 12:08 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

I searched in the mod forum for "random and mod" and the only one I saw I already replied in.

Reference >> http://forum.x-cart.com/viewtopic.php?t=4344
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #8  
Old 10-03-2005, 07:37 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

It doesn't appear that mod is being supported anymore. If anyone has a solution I am still interested in this!
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:24 PM.

   

 
X-Cart forums © 2001-2020