Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Different Image (Banner/Logo) Based on Month
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #3
RE: Different Image (Banner/Logo) Based on Month
Well, basically, it uses the PHP Date. So, if we want a different banner for each Sunday (for example), we can use something like this:

Code:
<?=my_date('l')?>

And upload Sunday.png .... Saturday.png images.

The same as hour, for example:

Code:
<?=my_date('G')?>

will give you a value from 0 - 24.


11-02-2011 06:40 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Different Image (Banner/Logo) Based on Month - RateU - 11-02-2011 06:40 AM

 Standard Tools
Forum Jump: