Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Jan 2004, 20:23
Big J Big J is offline
 
Join Date: Nov 2002
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!
Reply With Quote
  #2  
Old 06 Jan 2004, 19:45
Big J Big J is offline
 
Join Date: Nov 2002
Bump
Reply With Quote
  #3  
Old 06 Jan 2004, 19:51
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
For which vB version? A quick to do it in vB3 is to open search.php and replace line 2036 with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace x with the forumid.
Reply With Quote
  #4  
Old 06 Jan 2004, 21:00
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace x with the forumid.
Might want to tell what the line contains because some people modified their search.php
Reply With Quote
  #5  
Old 07 Jan 2004, 19:17
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
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.
Reply With Quote
  #6  
Old 07 Jan 2004, 20:19
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Replace this line I believe:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 07 Jan 2004, 21:19
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Looks right to me. Thanks Gary
Reply With Quote
  #8  
Old 07 Jan 2004, 23:52
mini2 mini2 is offline
 
Join Date: Nov 2001
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.
Reply With Quote
  #9  
Old 08 Jan 2004, 07:05
accyroy accyroy is offline
 
Join Date: Nov 2003
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..
Reply With Quote
  #10  
Old 08 Jan 2004, 08:17
mini2 mini2 is offline
 
Join Date: Nov 2001
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.
Reply With Quote
  #11  
Old 08 Jan 2004, 19:56
Big J Big J is offline
 
Join Date: Nov 2002
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!

Last edited by Big J : 08 Jan 2004 at 20:20.
Reply With Quote
  #12  
Old 09 Jan 2004, 02:26
accyroy accyroy is offline
 
Join Date: Nov 2003
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!
Reply With Quote
  #13  
Old 18 Mar 2004, 08:23
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 04:48.

Layout Options | Width: Wide Color: