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

Wired1 05-21-2008 06:24 PM

Quote:

Originally Posted by readjono (Post 1526643)
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.

Can't replicate it myself, but it's easy to fix. It's happening because they all have the same Execution Order.

Two ways to fix it:
Disable the Adds Server Time Criteria plugin, save, enable, save.

OR

Edit the plugin Adds Server Time Criteria, go to Execution Order. Change it to 6.


Quote:

Originally Posted by KURTZ (Post 1526767)
another installation for you Wired ... :p

Thanks!

readjono 05-25-2008 01:33 PM

As pointed out, yesterday it was showing Friday's message.

Wired1 05-25-2008 08:57 PM

You can check any of the 3 criteria (NOT the conditionals), and it'll set them all to true. Still working on a fix.

readjono 09-03-2008 02:24 PM

Did this ever get any further?

mgurain 10-20-2008 11:31 AM

Quote:

Originally Posted by Wired1 (Post 1531282)
You can check any of the 3 criteria (NOT the conditionals), and it'll set them all to true. Still working on a fix.

yes that what is happening!
It will be a great fix if you repair it.
Thanks a lot.

mgurain 03-01-2009 04:21 AM

Quote:

Originally Posted by mgurain (Post 1648866)
yes that what is happening!
It will be a great fix if you repair it.
Thanks a lot.

Hope to see it fixed soon, thanks,,

Daniel_HBK 07-28-2009 03:25 AM

Wow i wanted it so far !!

mgurain 12-16-2009 01:31 PM

Hi Wired1,

This would be a great mod if you fix it and upgrade it to 3.8.4 ,

Days should be in one radio button (in one line) but each day has a checkbox,
that will do an 'OR' condition for checkboxes.

Thanks,,

Wired1 12-16-2009 10:46 PM

Limitations in 3.x prevent it from working fully. It's on the list to look into upgrading after my major mods are upgraded for vB 4.0.

TheMic 08-05-2010 08:22 AM

Quote:

Originally Posted by Wired1 (Post 1931942)
Limitations in 3.x prevent it from working fully. It's on the list to look into upgrading after my major mods are upgraded for vB 4.0.

there is a new update for vb4?

thanks in advance!

Netz 01-07-2011 12:34 AM

Yes, does it work now?

Netz 01-16-2011 03:51 PM

Where exactly is the problem. I played a little with the code and got the first part working.

The MOD now shows up and the days can be picked.

I can't figure out, why the conditionals aren't working. The notices just won't show up at the right day.

If the author has no interest on the MOD any more, is there a way to get the idea out of this dead area to somewhere, where people might read it?

Netz 04-20-2011 04:38 PM

Somebody?

CoffeeLovesYou 11-10-2011 04:16 AM

Does anyone know how to do this without the mod?? I really need to know how and this doesn't work :(


All times are GMT. The time now is 10:47 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.01208 seconds
  • Memory Usage 1,756KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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