News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Time display Ad

Started by lukasino, December 11, 2008, 05:30:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lukasino

Hello,

It's possible to ad time to display Ad.

example

i have two Ad.

1. Ad1  (Display ads on board index) 0:00-15:59
2. Ad2  (Display ads on board index) 16:00-23:00

ccbtimewiz

Yes, somewhat.

Open index.template.php, and do something in similar terms to:

$forum_hour date('H'forum_time());

if( 
$forum_hour 16 )
    
// ad code for ads to show up between the hours of 12am through 4pm

elseif( $forum_hour 24 )
    
// ad code for ads to show up between the hours of 4pm through 11:59pm