vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How would I make a notice show up a certain day every week? (https://vborg.vbsupport.ru/showthread.php?t=273557)

CoffeeLovesYou 11-08-2011 02:51 AM

How would I make a notice show up a certain day every week?
 
I tried this modification for 3.7
https://vborg.vbsupport.ru/showthread.php?t=179967
But it was in Beta stage and wasn't working properly. I want to do basically the same thing as that. So like, a member might want a notice to show up every Monday.. How can I do this without setting the notice to Active at midnight manually? :/ Thanks.

CoffeeLovesYou 11-10-2011 04:09 AM

Bump!

CoffeeLovesYou 11-12-2011 06:30 PM

Bumpp!

kh99 11-15-2011 01:39 PM

1 Attachment(s)
I threw together a simple mod, which I'm attaching - it only allows you to select one day of the week (so if you want to show a notice on more than one day you'd have to duplicate the notice, or else change the mod to allow it).

Thanks to Wired1, whose mod made it easier to figure out how to do this.

Edit: Updated this, now allows multiple days and choice of user's timezone or GMT.

CoffeeLovesYou 11-20-2011 03:14 AM

Quote:

Originally Posted by kh99 (Post 2268179)
I threw together a simple mod, which I'm attaching - it only allows you to select one day of the week (so if you want to show a notice on more than one day you'd have to duplicate the notice, or else change the mod to allow it).

Thanks to Wired1, whose mod made it easier to figure out how to do this.

Wow why didn't I see this sooner?? THANK YOU!! You should release this. TONS of people were/are looking for this.


All times are GMT. The time now is 11:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete