vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Notices Criteria - Additional Conditions for Displaying a Notice (https://vborg.vbsupport.ru/showthread.php?t=277022)

ArchAngelz 02-16-2013 09:02 AM

Is it possible to have an additional criteria to have notices NOT display on specific forums/subforums. Currently there's a criteria to have notices displayed on a specific forum/subform but it cannot work to EXCLUDE certain subforums.

stator 03-05-2013 01:01 PM

can you add option to show only on forumhome

kh99 03-05-2013 02:48 PM

Quote:

Originally Posted by ArchAngelz (Post 2404585)
Is it possible to have an additional criteria to have notices NOT display on specific forums/subforums. Currently there's a criteria to have notices displayed on a specific forum/subform but it cannot work to EXCLUDE certain subforums.

Sorry I forgot to respond to your question. I'll look in to adding that.


Quote:

Originally Posted by stator (Post 2408050)
can you add option to show only on forumhome

You should be able to do that now using a THIS_SCRIPT value of 'index' (without the quotes).

ArchAngelz 03-18-2013 03:12 PM

Thanks! Will be looking forward to it.

Quote:

Originally Posted by kh99 (Post 2408068)
Sorry I forgot to respond to your question. I'll look in to adding that.

By the way, is it possible to have this add-on also work for the "Advertisements" Section? Ads and Notices seem to be using simlar types of criteria so it will be great if this "additional" criteria can work for ads as well!

I am really hoping to be able to exclude notices and ads on certain subforums :)

kh99 03-18-2013 03:20 PM

Thanks for reminding me - I'll look at it.

I remember noticing that ads looked similar and thinking that it might be adapted, then I thought that since I had never seen anyone ask about that, there must be no demand for it. But I'll look again. If the same hooks exist for the ad criteria, it should be simple.

ArchAngelz 03-20-2013 03:22 PM

Great! That would really help me immensely!!! Looking forward to your good news!!

Quote:

Originally Posted by kh99 (Post 2410794)
Thanks for reminding me - I'll look at it.

I remember noticing that ads looked similar and thinking that it might be adapted, then I thought that since I had never seen anyone ask about that, there must be no demand for it. But I'll look again. If the same hooks exist for the ad criteria, it should be simple.


ArchAngelz 03-31-2013 02:06 PM

Keeping my fingers crossed on this.

kh99 03-31-2013 02:08 PM

Yeah, sorry. Which is it that you're waiting for, the "not in this forum" or the ads?

ArchAngelz 04-01-2013 04:14 PM

Actually both! However, "not in this forum" is more important as I am trying to exclude certain ads from certain forums; some of my ads are currently placed in notices boxes and some using the default ads. So doing the first is more important than the second (which is not really useful for me without the first) if you can do both, that will be the best of both worlds!

Thanks so very much for helping to look into this!

Quote:

Originally Posted by kh99 (Post 2413382)
Yeah, sorry. Which is it that you're waiting for, the "not in this forum" or the ads?


ArchAngelz 04-14-2013 09:46 AM

Don't mean to sound impatient, but just checking on the progress of this :) Am now facing some problems getting my ads to display the way we need it and this mod will really help us a lot!

kh99 04-14-2013 09:55 AM

No problem. I was looking at it yesterday. There's a slight problem with using it for ads because although the same hooks are there, the condition checking doesn't work the same way, so I can't just use the same code.

Anyway, I'll see if I can get to it today. BTW, I don't mind adding ads to this mod, but unlike notices, I think you can handle any ad conditions you want by putting template <vb:if ... tags around the code in the ad manager (so if it's really holding you up, you don't need to wait for this).

ArchAngelz 04-25-2013 12:02 PM

Thanks a lot for helping; I'm not really a programmer so am not quite sure how to use the vb if tags, especially when trying to exclude a particular subforum. Hope you can get it in; as I mentioned the exclusion of a particular forum is the more important one. Ads would be a nice add on :)

Simon Lloyd 04-25-2013 06:01 PM

This thread will help you https://vborg.vbsupport.ru/showthread.php?t=215032 the actual condition you are looking for is
HTML Code:

<if condition="!in_array($forum['forumid'], array(1,2,3,6))">DO SOMETHING</if>
notice the ! which makes this statement read:
if NOT in this array of forumid's then DO SOMETHING.

If you use it like this
HTML Code:

<if condition="in_array($forum['forumid'], array(1,2,3,6))">DO SOMETHING</if>
Then unless the forumid is the same as one of those in the array then DO SOMETHING will NOT show

Digital Jedi 12-10-2013 07:05 AM

I haven't had a chance to install this, but I'm going to once I get my existing modifications sorted out. By any chance, would you consider adding a notice that targets browser versions (notably versions of IE)?

kh99 12-10-2013 07:25 PM

I could do that, if I can find patterns to match the user agent string for each version.

Simon Lloyd 12-10-2013 09:01 PM

You really only need to turn strings on and off

For targeting IE Users:
<!--[if IE]>
Place Content here for Users of Internet Explorer.
<![endif]-->

For targeting all others:
<![if !IE]>
Place Content here for Users of all other Browsers.
<![endif]>

The Conditional Comments can only be detected by Internet Explorer, all other Browsers thread it as normal Comments.

To target IE 6,7 etc.. You have to use "Greater Then" or "Lesser Than" in the If Statement. Like this.

Greater Then:
<!--[if gte IE 7]>
Place Content here for Users of Internet Explorer 7 or above.
<![endif]-->

Lesser Then:
<!--[if lt IE 6]>
Place Content here for Users of Internet Explorer 5 or lower.
<![endif]-->

You can do the same for other specific browsers like geko....etc

Digital Jedi 12-17-2013 08:15 PM

Testing this now on 3.8.7, and it seems to work, with the exception that THIS_SCRIPT entries don't remain in the Admin CP when I reload the Notice. They work. And they appear to continue to working after saving. But if I edit that notice, I have to remember to put the script name back in.

If I might make another request, have you considered adding in NOT THIS_SCRIPT? I remember this coming in handy with another modification I had installed. If not, no biggie.

kh99 12-17-2013 08:35 PM

Quote:

Originally Posted by Digital Jedi (Post 2469072)
Testing this now on 3.8.7, and it seems to work, with the exception that THIS_SCRIPT entries don't remain in the Admin CP when I reload the Notice. They work. And they appear to continue to working after saving. But if I edit that notice, I have to remember to put the script name back in.

That's strange. I just tried it and it seems to work. Do you have any other notices mods? What version of vb are you using?

Quote:

If I might make another request, have you considered adding in NOT THIS_SCRIPT? I remember this coming in handy with another modification I had installed. If not, no biggie.
There should be a dropdown menu that lets you choose THIS_SCRIPT "is" or "is not" some value.

Digital Jedi 12-17-2013 08:52 PM

Whoops! Didn't see that menu. I'm on 3.8.7 and have another Notices mod disabled. I'll uninstall it and see if that's the issue.

MaxLiao 02-11-2014 07:59 AM

What would be the possibility of getting a Month of the Year option?

My coding skills are ... well, they are nonexistent. I tried to mess with the XML myself with much failure. :)

We have active users and we have semi-active users and I am trying to set up a "Notice of the Month." This way someone who logs in anytime in the month of June will see the notice, and can dismiss it at their leisure. When July comes around, I'll have a new notice for that month.

kh99 02-11-2014 09:47 AM

Quote:

Originally Posted by MaxLiao (Post 2480373)
What would be the possibility of getting a Month of the Year option?

My coding skills are ... well, they are nonexistent. I tried to mess with the XML myself with much failure. :)

We have active users and we have semi-active users and I am trying to set up a "Notice of the Month." This way someone who logs in anytime in the month of June will see the notice, and can dismiss it at their leisure. When July comes around, I'll have a new notice for that month.

Seems reasonable, I'll look in to it.

MaxLiao 02-11-2014 02:28 PM

I appreciate it.

Thank you for the quick reply and the consideration.

Mickie D 04-21-2014 10:20 AM

Brilliant thank you very much for sharing it with us.

Mick

kushal 04-22-2014 11:47 AM

Thank you for the Mod. Can you also add the mod to show the notice for user who just registered?

kh99 04-22-2014 10:08 PM

Quote:

Originally Posted by kushal (Post 2494124)
Thank you for the Mod. Can you also add the mod to show the notice for user who just registered?

I might be able to do something like check if the registration date is less than X days ago, if that will work for you.

Someone asked for something to be added quite a long time ago and unfortunately I never got around to it. But maybe I'll find some time now that you've reminded me.

kh99 05-18-2014 08:05 PM

I finally got around to adding a couple things that were requested (one more than a year ago), so I apologize to those who waited. (See description for added features).

No bug fixes, so if you don't need the latest features there's no need to update.

Socialvb 06-02-2014 09:21 AM

Add also "show to user registered on a x social group" this could be very good for advertising

jrw422dx 06-07-2014 11:27 AM

Is it possible to have a setting for the notice to show up ONLY on the main page of the forum? I do not see a setting for that and would like that feature.

kh99 06-07-2014 11:34 AM

Quote:

Originally Posted by jrw422dx (Post 2501010)
Is it possible to have a setting for the notice to show up ONLY on the main page of the forum? I do not see a setting for that and would like that feature.

For that, I think you can use the THIS_SCRIPT option and enter "index" (without the quotes) as the value.

jrw422dx 06-07-2014 05:43 PM

KH99 thanks a bunch that is what I was looking for :D :up:

KGodel 08-22-2014 02:25 AM

Hey kh99. I wonder if it would be possible to check against custom profile fields (at least ones that are drop-down menus). I might try to look into it or manually add the one I want based on the plugins you made, but figured it might be helpful for others too. ^^

kh99 08-22-2014 09:32 AM

Quote:

Originally Posted by KGodel (Post 2512292)
Hey kh99. I wonder if it would be possible to check against custom profile fields (at least ones that are drop-down menus). I might try to look into it or manually add the one I want based on the plugins you made, but figured it might be helpful for others too. ^^

Yeah, I could do that. But I think this mod already does that: https://vborg.vbsupport.ru/showthread.php?t=281087

I haven't tried it to see if it works with mine, but I think it should.

EasyEazy 08-23-2014 02:03 PM

Installed and working great.

Please could we have an option much the same as the calander in vBulletin where we can get it to display like a recurring event. So options such as Daily, Weekly, Monthly then every x amount of days?

Thanks for the mod btw. Great work.

EasyEazy 09-07-2014 08:16 PM

Wouldn't mind paying for the update?

kh99 09-08-2014 10:32 AM

Quote:

Originally Posted by EasyEazy (Post 2514127)
Wouldn't mind paying for the update?

I'm sorry I didn't reply to your previous post. It's already possible to have daily, weekly, or monthly announcements using the "Day of week is" or "Month is" options. When you say "Every X days", do you mean "today and every x days from now on" or something like that? I'm not familiar with calendar events.

EasyEazy 09-08-2014 03:20 PM

Quote:

Originally Posted by kh99 (Post 2514224)
I'm sorry I didn't reply to your previous post. It's already possible to have daily, weekely, or monthly announcements using the "Day of week is" or "Month is" options. When you say "Every X days", do you mean "today and every x days from now on" or something like that? I'm not familiar with calendar events.

Yes that exactly what I mean. On the calendar you can set a reoccurring event with the options

Daily then set it every X amount of days
Weekly then option to set it say every 2 weeks on a set day
Monthly then set which day of the month or the first/second/third/fourth days of the month
And finally the same for yearly.

Im more looking at the weekly option on a set day if that is doable.

Fields 09-09-2014 09:08 AM

1 Attachment(s)
Great, I was looking for this!
Works without any problems under vB 4.2.2.

German translation attached :)

EasyEazy 09-26-2014 12:06 AM

Any update on this?

KGodel 10-18-2014 06:00 PM

Hey KH, any way to add/update the usergroup settings? I'd like to show a notice to all usergroups except x,y, and z. The only way to do this is to make a lot of the same notices for each group I do want to show it to (upward of 15+). Would be a great feature to add! ^^

BasilFawlty 11-23-2014 09:38 PM

Quote:

Originally Posted by KGodel (Post 2519307)
Hey KH, any way to add/update the usergroup settings? I'd like to show a notice to all usergroups except x,y, and z. The only way to do this is to make a lot of the same notices for each group I do want to show it to (upward of 15+). Would be a great feature to add! ^^

Along those lines, I was just trying to figure a way to set a notice that would only be seen by members of a certain group. (I'm not talking about user group, I mean a user-created group). I have a group that is by invite only (e.g., group.php?groupid=XX) and I'd like to put notices there that are ONLY seen by members viewing that group (which means that they are members of that group). I could not see how to do that with the current options available).


All times are GMT. The time now is 05:11 AM.

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.01292 seconds
  • Memory Usage 1,832KB
  • 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_html_printable
  • (14)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
  • (40)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