The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
|||
|
|||
![]()
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']"> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> <else /> Code:
<if condition="$show['member']"> <td id="newposts" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="2">$vbphrase[new_posts_nav]</a><script type="text/javascript">vbmenu_register("newposts"); </script></td> <else /> Code:
<!-- NAVBAR POPUP MENUS --> Code:
<div class="vbmenu_popup" id="newposts_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">NIncluding Shopping</a></td></tr> <tr><td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew&exclude=x" accesskey="2">Excluding Shopping</a></td></tr> </table> </div> 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! |
#3
|
||||
|
||||
![]()
You can also add a new plugin.
Hook Location: search_start Title: Exclude from New Posts Plugin PHP Code: PHP Code:
|
#4
|
||||
|
||||
![]()
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.) |
#5
|
|||
|
|||
![]()
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! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|