| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Random Image Scripts | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||||
|
|||||||||
If what you want is to show a random of all the products in your front page, then I recommend that you use funky "new products mod" is the same principle and can work for featured products. Just he need to do some adjustments.
|
|||||||||
#32
|
|||||||||
|
|||||||||
Quote:
So what would be the most updated (and workable) version for this mod ?
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#33
|
|||||||||
|
|||||||||
If it does not work, he will make it work.
|
|||||||||
#34
|
|||||||
|
|||||||
TelaFirma,
First I would like to thank you for your code. Next, I would like to request your assitance. By the way I'm using x-cart 3.5.x I have made a slight change so that when implemented, the query will randomly select an image from the amongst thumbnail images as opposed to the detailed image as you originally coded. All seems to be fine, everytime I refresh the page a different product is referenced except that the thumbnail images themselves are not displayed, I get the default "No Image Available" image being shown. I believe the "Get thumbnail's URL" area is where the problem lies. I took the liberty to open up "featured_products.php" to see how it pulls back the thumnail's url. It does it like so: Quote:
It appears to using the function: func_get_thumbnail_url. I have tried to use it as well with no success. Here is the code I currently have for "random.php"(without func_get_thumbnail_url) : Quote:
Any assitance would be greatly appreciated. Anybody else with some ideas on this, please share your thoughts. Thanks, Glen
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#35
|
|||||||
|
|||||||
Help,
Anybody have any ideas on my previous question? Glen
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#36
|
|||||||
|
|||||||
In need of assitance............
Help,
I would like to request your assitance. By the way I'm using x-cart 3.5.x I have made a slight change so that when implemented, the query will randomly select an image from the amongst thumbnail images as opposed to the detailed image as you originally coded. All seems to be fine, everytime I refresh the page a different product is referenced except that the thumbnail images themselves are not displayed, I get the default "No Image Available" image being shown. I believe the "Get thumbnail's URL" area is where the problem lies. I took the liberty to open up "featured_products.php" to see how it pulls back the thumnail's url. It does it like so: Quote:
It appears to using the function: func_get_thumbnail_url. I have tried to use it as well with no success. Here is the code I currently have for "random.php"(without func_get_thumbnail_url) : Quote:
Any assitance would be greatly appreciated. Thanks, Glen
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#37
|
|||||||||
|
|||||||||
Hi, I don't know much php but Iseen this done somewhere here in the forum. There is a routine done by Funkidunk, which take the latest product that you input and show it randomly everytime that you refresh the page (if that what I understand that you want to do) You can do a search in the forum or e-mail funki for the code, and he gladly will help you with this.
|
|||||||||
#38
|
|||||||||
|
|||||||||
Sorry I have missed this post for so long... but here is what you should do to get it to work with thumbnails...
random.php should be: Code:
and randoms.tpl should be: Code:
Basicaly all I changed was the database table that it was looking at, changed the config variable (to check where the thumbnails were stored) and changed the array variable used in the template. |
|||||||||
#39
|
|||||||
|
|||||||
Anyone have a working version for 4.0.14?
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
#40
|
|||||||
|
|||||||
Anyone?
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
|
|||
X-Cart forums © 2001-2020
|