Log in

View Full Version : Turn off forum from the New Post


Mellymonster
03-23-2009, 01:09 AM
How do you turn off a forum area to be displayed in the new post link?

Lynne
03-23-2009, 03:21 AM
To exclude forums in the New Posts button, you may add "&exclude=xx" or "&exclude=xx,yy,zz" (separate the forumids by commas) to the end of the New Posts url... ie. "/forums/search.php?do=getnew&exclude=xx" This would normally be in the navbar template. I think it occurs in a couple of places there, so you will need to edit each of those urls.

BlueNinjaGo
03-23-2009, 12:11 PM
I had this same problem last week, followed Lynne's advice, and it worked perfectly. If you have any more questions about where the code is or anything like that, feel free to PM me about...

Mellymonster
03-23-2009, 03:27 PM
hmmm I did that, my code looks like this

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew&amp;exclude=72,114,73,74,75,76,77,81,78,79,8 0" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td class="vbmenu_control"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew&amp;exclude=72,114,73,74,75,76,77,81,78,79,8 0" accesskey="2">$vbphrase[new_posts_nav]</a></td>

But it is not working, I can still see those forums showing up on the new posts...

Lynne
03-23-2009, 03:42 PM
Look at the page source. Are the exclude lines there?

Mellymonster
03-23-2009, 03:47 PM
No in the source it shows
<td><a href="search.php?do=getnew" accesskey="2">New Posts</a></td>

BlueNinjaGo
03-23-2009, 04:17 PM
<a href="search.php?$session[sessionurl]do=getnew&amp;exclude=374,376,392,393" accesskey="2">$vbphrase[new_posts_nav]</a>


That's why I have and it works just fine...

Lynne
03-23-2009, 04:44 PM
No in the source it shows
If it's not showing up, then either you didn't modify the correct link in the template, or you didn't modify the correct template for your style.

Mellymonster
03-23-2009, 05:41 PM
Thanks guys, I got it working :)