Log in

View Full Version : Exclude a forum from 'Todays Posts'


Cust0ms
07-20-2008, 07:28 PM
Hello,
Is it possible to exclude posts written in 'XXXX' forum from 'Todays Posts' list?

For example I have an "Off-topic" forum, that is getting several post per day, but I really don't want to have it take up half of the 'Todays Posts' results since the topics are irrelevant my site.

Thanks!

KW802
07-20-2008, 11:39 PM
Create a new plugin...

Hook Location: search_start
Title: Exclude Off-topic from Today's Posts
Plugin PHP Code:if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily')
{
$_REQUEST['exclude'] .= ',99';
}Change the "99" number in the PHP code to be the forum ID of your off-topic forum.

AMcKay
07-20-2008, 11:43 PM
You can just edit the URL instead. Here's a guide on the subject:

http://www.vbulletin.com/forum/showthread.php?t=172811

KW802
07-21-2008, 03:22 AM
You can just edit the URL instead. Here's a guide on the subject:

http://www.vbulletin.com/forum/showthread.php?t=172811A limited solution.

Keesa
07-21-2008, 06:16 AM
Also, when I tried that, it kept attaching an SID and would not remember the URL. I will watch this thread to see how the plugin works for someone else because I have never done one before and I am a scaredy cat. :erm:

Cust0ms
07-21-2008, 07:54 AM
Thanks!
Next question: is it possible to exclude from 'Totays Posts' results post written by specyfic user?

dimab
07-23-2008, 02:37 PM
this is perfect!
this should be made into a product!!

thanks

kau
09-10-2008, 08:51 PM
There was a plugin for 3.5 that did this and you could select in your UserCP which forums you wanted to show up. Anyone know where that plugin is?

basskiller
09-21-2008, 04:39 PM
I will add.. if your running VBSEO, you have to turn it off to get the true forum ID number to get the above plugin to work

Thanks!!!

TheLab
09-26-2008, 08:16 AM
I will add.. if your running VBSEO, you have to turn it off to get the true forum ID number to get the above plugin to work

Thanks!!!

And how do you exclude forums from todays post with vbseo?

Thanks.

swatkins
10-05-2008, 06:35 PM
There was a plugin for 3.5 that did this and you could select in your UserCP which forums you wanted to show up. Anyone know where that plugin is?

I would like to see this also...

Lynne
10-05-2008, 07:30 PM
I would like to see this also...
Use the search button and you just may find it.... Selective Forum Filter (https://vborg.vbsupport.ru/showthread.php?t=132279&highlight=forum%2A)

basskiller
12-11-2008, 08:55 PM
And how do you exclude forums from todays post with vbseo?

Thanks.

turn off the vbseo.. then go to your forum to get the number id of that specific forum/forums you wish to exclude.. Then add them to your plugin and turn the vbseo back on.. works like a charm

glennybee
12-11-2008, 10:18 PM
You don't need to turn off vbseo, just go to the Forum Manager page and hover your cursor over the forum title, it will tell you the id in the status bar at the bottom of your browser.

dodgechargerfan
06-23-2010, 01:24 PM
Just tried it in vB4 and it sort of worked.

The issue is that the "getnew" now returns no new posts at all when there are some new posts.
Should we need to amend this plug-in code to include the conditional that is now part of the "New Posts" link in vB4?

do=getnew&contenttype=vBForum_Post

I tried putting the entire string 'getnew&contenttype=vBForum_Post' in to the plugin and it stopped working all together - i.e. it didn't exclude the forums.

I suspect that the & is breaking the code, but am not sure how to work around it.