vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to hide certain forums from appearing from "view new posts" function? (https://vborg.vbsupport.ru/showthread.php?t=59749)

Big J 01-05-2004 07:23 PM

How to hide certain forums from appearing from "view new posts" function?
 
Hello,

Does anyone know of a way to make it so specific forums do not appear in the list when users use the 'view new posts' function?

Thanks!

Big J 01-06-2004 06:45 PM

Bump

assassingod 01-06-2004 06:51 PM

For which vB version? A quick to do it in vB3 is to open search.php and replace line 2036 with:
PHP Code:

WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x

Replace x with the forumid.

Gary King 01-06-2004 08:00 PM

Quote:

Originally Posted by assassingod
For which vB version? A quick to do it in vB3 is to open search.php and replace line 2036 with:
PHP Code:

WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x

Replace x with the forumid.

Might want to tell what the line contains because some people modified their search.php :)

assassingod 01-07-2004 06:17 PM

I had to copy that from another screen and I couldn't remember the entire line so the line number had to do. If someone can post the entire line for me then i'll add that to my post.

Gary King 01-07-2004 07:19 PM

Replace this line I believe:

PHP Code:

        WHERE forumid IN(" . implode(', ', $forumids) . "


assassingod 01-07-2004 08:19 PM

Looks right to me. Thanks Gary

mini2 01-07-2004 10:52 PM

I excluded my off topic and banter forum from being searchable (and thus also showing in new posts), and set up a public group called OT&B Fans that people could join which would allow you to search the forum/view it in new posts if you wanted to.

Seemed like a decent compromise.

accyroy 01-08-2004 06:05 AM

mini2, could you please help out a new VB'er. This is exactly what I want to do with my forums but don't know what/where to change things! cheers..

mini2 01-08-2004 07:17 AM

This was on vBulletin 3, so if you're on vBulletin 2 I cant help, if you're on three, let me know and I'll post a brief "how to", it's very easy.

Big J 01-08-2004 06:56 PM

Thanks for the feed back everyone! I'm running 2.2.9. i would like it so people can still use the search functions, just have it hidden from the "View New Posts" feature. If there's no way around it, then I guess I'll just have to make it so people cant search it.

Thanks again everyone!

accyroy 01-09-2004 01:26 AM

Quote:

Originally Posted by mini2
This was on vBulletin 3, so if you're on vBulletin 2 I cant help, if you're on three, let me know and I'll post a brief "how to", it's very easy.

I'm on VB3 so if you could post the quick how to it would be grand!
Thanks!

Steve St.Lauren 03-18-2004 07:23 AM

For vB2.x look in the search.php file for:

$action=="getnew"

scroll down about 19 lines and you'll see two lines that start with:

$wheresql.=

Below those two lines add:

$wheresql.=" AND thread.forumid<>##";

replace ## with the forumid of the forum you don't want to include in view new posts. You can put multiple forums multiple forums in there by adding another AND thread.forumid<>## inside the quotes. You can find the forum ID by going to that forum and looking in the url. You can also do the same thing in the "View Today's Active Threads" for users not logged in by searching for:

$action=="getdaily"

in the same file and making the same changes.


All times are GMT. The time now is 03:15 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.01059 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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