vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Restricting a Forum from appearing in New Posts (https://vborg.vbsupport.ru/showthread.php?t=197754)

Erika 12-01-2008 04:12 PM

Restricting a Forum from appearing in New Posts
 
I am looking for help in restricting one single forum and it's post from appearing in the 'New Posts' section.

The forum I want to restrict is viewable to the all members and guests of the site, but there are automatic posts that occur that are bugging my users when they go to read 'New Posts' - they are flooded with the automatic posts from this forum.

Any help would be appreciated!

Lynne 12-01-2008 05:12 PM

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"

Erika 12-02-2008 01:44 AM

I am not sure how to do this - I am in the search.php file and I don't know how to add that line or where to add it? Sorry, I'm a bit of a novice with VB.

Dismounted 12-02-2008 02:07 AM

You don't need to edit anything in the PHP file. Just edit the template with the link to the page.

Lynne 12-02-2008 02:29 AM

Most likely this is in your navbar template. Look for this link and modify it as explained above (it may be in more than one place):

HTML Code:

<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>

Erika 12-02-2008 04:38 PM

Thank you very much - I have used your info and solved my issue!


All times are GMT. The time now is 05:34 PM.

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.01060 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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