Log in

View Full Version : Stop certain forum from showing in what's new posts


Drache
08-22-2010, 06:09 PM
Is there a mod that would allow me to stop certain forum from showing up in New post?

BirdOPrey5
08-23-2010, 02:00 AM
You don't need a mod to do this- there is a thread with how to instructions on vbulletin.com. I don't know if it's exactly the same way but on vB 3.x you just edit the links in the navbar template and add &exclude=X to the end of the link URL- where X is the forum id of the forum you want to exclude... if multiple forums use commas, example: &exclude=2,3,4

Drache
10-29-2010, 11:20 AM
thanks for the help. do you know the instruction for vb4 on how to do this?

I would like to stop certain forums and it's child forums from showing in new posts and what's new but still include them in the search results.

I know there is an option to stop certain forums from showing up in new post but then it will also stop them from showing in search results. that's what I don't want to happen.

Is there a way to fix it?

BirdOPrey5
10-29-2010, 12:36 PM
I believe the instructions are the same same for VB4, did you try it?

Drache
12-22-2010, 01:32 PM
Could you please tell me where to insert the code to? I went to nav bar template but couldn't find the code for new post and what's new button.

BirdOPrey5
12-22-2010, 03:22 PM
Open your navbar template...

Use the "find" feature in your browser to find all instances of:

search.php?{vb:raw session.sessionurl}do=getnew

There are multiple places, at least 6 I belive.

In all of them add

&exclude=2,3,4


Where 2, 3, and 4 are the forum id's of the forums you want to exclude... edit them to your needs obviously...

Another option would be to copy your entire template into a good text editor and do a "Find and Replace"

Find:

search.php?{vb:raw session.sessionurl}do=getnew

and Replace with:

search.php?{vb:raw session.sessionurl}do=getnew&exclude=2,3,4

Drache
12-23-2010, 03:10 AM
Thanks. I am going to try it now.

Sorry 1 more question. If have a parent forum with many sub forums in it that I don't want it to show up in new post. Do I need to enter all sub forums IDs or I can just enter the parent forums ID it will also include all the subforums?

My code looks like this

<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{vb:rawphrase new_posts_nav}</a></li>

So I change it to

<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;exclude=2,3,4;content type=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>

This is correct?

--------------- Added 1293085152 at 1293085152 ---------------

Done testing. This worked very well for me. Thank you very much BirdOprey5