12-03-2005, 06:11 PM
|
|
BARCLONE Rocketry
|
|
Join Date: Mar 2005
Location: Mobile, Alabama
Posts: 5,357
|
|
Changes for vBulletin script...
Buzz,
This is a quick description of a way to have seven banner images that rotate based on the day of the week. You need to first create the seven images, and save them to the
"images_acpb/misc" folder. Make the name of each image like this:
yorf-banner-Sunday.jpg
yorf-banner-Monday.jpg
yorf-banner-Tuesday.jpg
...
Next, add these lines ahead of the section where the image name is called:
$yorf-DateTime = getdate();
$yorf-ImageName = "yorf-banner-" . $yorf-DateTime["weekday"] . ".jpg";
Finally, use the $yorf-ImageName variable in place of the variable which is currently set for your banner (or the literal, if the script has been "hard-wired" with the banner name...).
|