Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2010, 06:09 PM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 08-23-2010, 02:00 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 10-29-2010, 11:20 AM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-29-2010, 12:36 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe the instructions are the same same for VB4, did you try it?
Reply With Quote
  #5  
Old 12-22-2010, 01:32 PM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-22-2010, 03:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 12-23-2010, 03:10 AM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:48 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.06715 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete