![]() |
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.
|
can you add option to show only on forumhome
|
Quote:
Quote:
|
Thanks! Will be looking forward to it.
Quote:
I am really hoping to be able to exclude notices and ads on certain subforums :) |
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. |
Great! That would really help me immensely!!! Looking forward to your good news!!
Quote:
|
Keeping my fingers crossed on this.
|
Yeah, sorry. Which is it that you're waiting for, the "not in this forum" or the ads?
|
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:
|
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!
|
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). |
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 :)
|
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> 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> |
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)?
|
I could do that, if I can find patterns to match the user agent string for each version.
|
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 |
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. |
Quote:
Quote:
|
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.
|
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. |
Quote:
|
I appreciate it.
Thank you for the quick reply and the consideration. |
Brilliant thank you very much for sharing it with us.
Mick |
Thank you for the Mod. Can you also add the mod to show the notice for user who just registered?
|
Quote:
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. |
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. |
Add also "show to user registered on a x social group" this could be very good for advertising
|
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.
|
Quote:
|
KH99 thanks a bunch that is what I was looking for :D :up:
|
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. ^^
|
Quote:
I haven't tried it to see if it works with mine, but I think it should. |
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. |
Wouldn't mind paying for the update?
|
Quote:
|
Quote:
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. |
1 Attachment(s)
Great, I was looking for this!
Works without any problems under vB 4.2.2. German translation attached :) |
Any update on this?
|
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! ^^
|
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|