vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Stop certain forum from showing in what's new posts (https://vborg.vbsupport.ru/showthread.php?t=249136)

Drache 08-22-2010 06:09 PM

Stop certain forum from showing in what's new posts
 
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:
Code:

search.php?{vb:raw session.sessionurl}do=getnew
There are multiple places, at least 6 I belive.

In all of them add
Code:

&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:
Code:

search.php?{vb:raw session.sessionurl}do=getnew
and Replace with:
Code:

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

PHP Code:

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

So I change it to

PHP Code:

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

This is correct?

--------------- Added [DATE]1293085152[/DATE] at [TIME]1293085152[/TIME] ---------------

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


All times are GMT. The time now is 07:25 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
  • Page Generation 0.01035 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete