| ||||||||||
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 |
#1
|
|||||||
|
|||||||
Random Image Scripts
I am trying to apply a random image ont he front of a store. does it need special tags inorder to work? I posted teh script here.
http://www.rinju.com/getRandomImage.zip thanks -mikey |
|||||||
#2
|
|||||||
|
|||||||
did you rap
did you rap the include script with smarty tags like this
{php} include("http://www.yourwebsite.com/path/to/randomscript.php"); {/php} it works great on my site, i just put this in the welcome template, works awesome, i also put multiple randomizing scripts in head.tpl & copyright.tpl so that everything changes when refreshed except the navigation menus at top remain the same, totally cool. |
|||||||
#3
|
|||||||
|
|||||||
heres a random image script that i cant get working but you may find useful:
save as sig1.php Quote:
|
|||||||
#4
|
|||||||
|
|||||||
rinjuanimation & barabbas try this script
this scipt is much easier and simple, just save it as randomscript.php or whatever you want, change the paths to your images and upload the script to your website, then in your welcome template put this include function
{php} include("http://www.yourwebsite.com/path/to/randomscript.php"); {/php} and change the paths to where you uploaded the file, let me know if it works, this is a great script and you can change the paths to an html file or another website, whatever you want really Quote:
just PM if you want to see this script in action |
|||||||
#5
|
|||||||
|
|||||||
__________________
ex x-cart guru |
|||||||
#6
|
|||||||
|
|||||||
Wouldn't be just as easy to use a random javascript?
|
|||||||
#7
|
|||||||
|
|||||||
but then everyone could see (read: steal) your code
__________________
ex x-cart guru |
|||||||
#8
|
|||||||
|
|||||||
Can the above script be made to make the images 'clickable' to a specified page/url?
Thanks |
|||||||
#9
|
|||||||||
|
|||||||||
Here is one for you... It is a little more work, but is is nice Make a new file in /skin1/customer/main/ named randoms.tpl. In this file put:
Code:
Create a new file in /customer/ named random.php. In this file put: Code:
Next, insert this into your welcome.tpl file: Code:
Next, in the customer/home.php file look for Code:
and insert this line under it: Code:
*This is for version 3.4.x and will work with inages stored in a File System or in the Database.[/code] |
|||||||||
#10
|
|||||||||
|
|||||||||
Nice mod,
MOved to Custom templates
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
|
|||
X-Cart forums © 2001-2020
|