vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Exclude a forum from 'Todays Posts' (https://vborg.vbsupport.ru/showthread.php?t=185868)

Cust0ms 07-20-2008 07:28 PM

Exclude a forum from 'Todays Posts'
 
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:
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

Quote:

Originally Posted by AMcKay (Post 1580243)
You can just edit the URL instead. Here's a guide on the subject:

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

A 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

Quote:

Originally Posted by basskiller (Post 1627083)
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.


All times are GMT. The time now is 06: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.01024 seconds
  • Memory Usage 1,729KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete