View Single Post
  #15  
Old 12-03-2005, 06:11 PM
CPMcGraw's Avatar
CPMcGraw CPMcGraw is offline
BARCLONE Rocketry
 
Join Date: Mar 2005
Location: Mobile, Alabama
Posts: 5,357
Default 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...).
__________________
Craig McGraw

BARCLONE Rocketry -- http://barclone.rocketshoppe.com
BARCLONE Blogsite -- http://barclone.wordpress.com
BARCLONE Forum -- BARCLONE Forum

BARs helping BARs

SAM 0044
AMA 352635
Reply With Quote