![]() |
Exclude forum from New Posts
Thanks to the excellent suggestion from KW802 of making a plugin in this thread I have been able to exclude one of my forums from New Posts.
However, I would like to give my members the option of selecting whether or not to see this forum in New Posts. This means that I need to make a drop down menu in the navbar under New Posts; one selection would say "exclude shopping", one selection would say "include shopping". The problem is twofold: where to edit a drop down menu for New Posts, and then, how to attach the plugin that excludes shopping to that navbar selection. Any ideas out there? |
First of all, there isn't a drop down menu for New Posts so you would need to create one. Open the navnar template.
Find: Code:
<if condition="$show['member']"> Code:
<if condition="$show['member']"> Code:
<!-- NAVBAR POPUP MENUS --> Code:
<div class="vbmenu_popup" id="newposts_menu" style="display:none"> I always test new things on a default style that is not selectable to normal members before implementing it on my main board. Good luck! |
You can also add a new plugin.
Hook Location: search_start Title: Exclude from New Posts Plugin PHP Code: PHP Code:
|
Back on my 3.0 board, I created a profile field (fieldx) for the users and they could put in forumids they wanted excluded, ie. 3,4,7 - it had to be in that specific format (no spaces) and then I added a dropdown for New Posts with a new Your Search link that went to
search.php?$session[sessionurl]do=getnew&exclude=$bbuserinfo[fieldx] (I think that's what I did - I don't use that anymore.) |
These are all great suggestions. I was able to make the changes the board needed. Thanks so much to all of you!
--------------- Added [DATE]1233618515[/DATE] at [TIME]1233618515[/TIME] --------------- Now, a related question! What code would give me, in a drop down box, a third selection of New Posts called Only Shopping. This New Posts choice would have posts only from one category of the forum - the Shopping category. The forum ID of this category is 27 Thanks for your help, all your suggestions were great and they worked! --------------- Added [DATE]1233618552[/DATE] at [TIME]1233618552[/TIME] --------------- Now, a related question! What code would give me, in a drop down box, a third selection of New Posts called Only Shopping. This New Posts choice would have posts only from one category of the forum - the Shopping category. The forum ID of this category is 27 Thanks for your help, all your suggestions were great and they worked! |
All times are GMT. The time now is 01:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|