Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Feb 2011, 16:14
v123shine v123shine is offline
 
Join Date: Sep 2008
Question 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
Reply With Quote
  #2  
Old 17 Feb 2011, 17:32
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You could do something like this: make a new plugin using hook global_start and this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(ETA: Made a change in the above to "$thishour >= 15", originally would have hidden banner between 1PM and 4 PM).

And then in the template put


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

around the part you want affected by the time.

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.

Last edited by kh99; 20 Feb 2011 at 15:51. Reason: fixed hour check.
Reply With Quote
  #3  
Old 17 Feb 2011, 22:48
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Real name: Bharath
There is no such thing..on time limit..you have to do manually.
__________________
Team MJY - MovieJockey Entertainment Network (Click Here)
Site Founded : 11 September 2009 / Re-Launched : 01 January 2010
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:46.

Layout Options | Width: Wide Color: