General Community > Scripting Help
Alternating Banner
zagrom:
Hmm, thanks tyty1993
I cant say I totally understand, but I think
I may be able to get it to work, thanks
Ill give it a shot ^^
wait, where does this code go?
--- Code: ---<img src="http://www.yoursite.com/banner.php" alt="" />
--- End code ---
where the banner in the index template
originally was?
Edit:
NVM, I see where it goes now, still not working tho,
Im looking into it ^^
zagrom:
Hmm, I think my issues may be with the $path
Im not totally sure what to do with it, mostly
the "/var/" part, Im not sure how to fill it out
to my sites settings.
DavidCT:
Try this instead...
$path = $_SERVER['DOCUMENT_ROOT'] . '/banner/';
zagrom:
Hmm, that doesn't seem to work ether >.<
Im sure its something Im doing wrong,
Ill keep looking into it ^^
tyty1234:
"/var/" refers to the path to your banner directory that will randomize the images. So if you're using cPanel for example, your path should look something like this.
--- Code: ---/home/{your cpanel username}/public_html/banners/
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version