vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - Notices: Day Criteria (based upon Server Time Zone) (https://vborg.vbsupport.ru/showthread.php?t=179967)

Wired1 05-20-2008 10:00 PM

Notices: Day Criteria (based upon Server Time Zone)
 
NOTE: This is currenty @ beta status. For whatever reason, parts of the week are triggering others. Working on a fix.


With this Product, a new criteria is added to the Notice Edit screen. Under "Display this notice if...", you will see three new options. Using them, you can select which days of the week your notice will show up. NOTE: Yes, this is based upon your SERVER's time zone, not the end user's time zone.

To Install:
1) Save the attached product-daycriteria.xml file.
2) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
3) Browse to wherever you saved the file.
4) Allow Overwrite -> Yes.
5) Import!

Version History:
1.0.0 - Initial Release

You may be interested in a similar product of mine: Notices: Time Range Criteria (based upon Server Time). Using both products you could have notices show up from 9-5, M-F for instance :)

Wired1 05-21-2008 12:59 AM

reserved for future use.

Lionel 05-21-2008 01:06 AM

Perfect for store open/close days

Wired1 05-21-2008 01:16 AM

Yep! I'm going to use it in combo with my other mod for a pretty similar purpose, opening / closing hours / days for various departments.

Next step is to figure out how to lock a notice into a calendar, so you can auto-adjust for holidays :)

soulface 05-21-2008 05:08 AM

Can you make those days in an one single line rather then making in 3 line ?

Wired1 05-21-2008 06:01 AM

Quote:

Originally Posted by soulface (Post 1526468)
Can you make those days in an one single line rather then making in 3 line ?

Not with the limitations of the Notice system, only 3 conditions per notice criteria currently (3 checkboxes per notice). Only way around it is with manual edits and database changes. Not worth it. Multiple product coders have started threads @ vbulletin.com about this limitation.

I've already got a version coded for when they fix said limitations though. Product will be smaller than it currently is.

Lionel 05-21-2008 06:45 AM

About one check box for every day, and then you do like you have for exclude days

Wired1 05-21-2008 07:20 AM

Quote:

Originally Posted by Lionel (Post 1526521)
About one check box for every day, and then you do like you have for exclude days

I have no idea what you mean. Can you please elaborate?

readjono 05-21-2008 09:26 AM

Just one little problem for me - the 'date' product appears in the middle of the lines for the days. Not a huge problem but would be nice to change that.

KURTZ 05-21-2008 11:45 AM

another installation for you Wired ... :p


All times are GMT. The time now is 09:57 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.01176 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete