The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help Me, Please!!
Helo,
I have ads banner in my site, i want to disable ads banner from 1 PM untill 3 PM, is it possible to disable ads in custom time? Thank You |
#2
|
|||
|
|||
You could do something like this: make a new plugin using hook global_start and this code:
Code:
// Uncomment only one of these... $hourdiff = intval($vbulletin->options['hourdiff']); // User's local time //$hourdiff = (date('Z', TIMENOW) / 3600) * 3600; // Default (using "Default Time Zone Offset") //$hourdiff = 0; // Server Time $thishour = date("G", max(0, time() - $hourdiff)); $show['timed_banner'] = ($thishour < 13 || $thishour >= 15); And then in the template put Code:
<if condition="$show['timed_banner']"> ... </if> The plugin part has three options: the way it is, it will use the user's local time (based on the time zone they have chosen in their profile), but you can choose the default time zone (from the Date Time settings), or just the server's time. |
#3
|
||||
|
||||
There is no such thing..on time limit..you have to do manually.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|