Results 1 to 7 of 7

How to exclude forums from Get New Posts

This is a discussion on How to exclude forums from Get New Posts within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hi I saved this tidbit of text in my surfing, basically its a way of using the new posts and ...

  1. #1
    Member Array PromotePoker's Avatar
    Real Name
    Jason
    Join Date
    Mar 2006
    Location
    Las Vegas, Nevada
    Posts
    43
    Liked
    1 times

    How to exclude forums from Get New Posts

    Hi

    I saved this tidbit of text in my surfing, basically its a way of using the new posts and excluding a forum. My applogies for not listing the original source, didn't seem to save it :(:

    search.php?$session[sessionurl]do=getnew
    and replace with:
    HTML Code:
    search.php?$session[sessionurl]do=getnew&exclude=XX where XX is your news forum ID.

    So to exclude one forum is easy, just replace XX with the forum id, but what formatting would I use to exclude, multiple forums? For example forums 5,22,23,24


    Any help would be appreciated,

    thanks,
    Jason

    Last edited by PromotePoker; 03-23-2008 at 11:08 AM.
    Poker Forums - "I'm Not Lucky, I Have Good Karma!"

  2. #2
    Senior Member Array
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    345
    Liked
    1 times
    Code:
    http://www.yoursite.com/search.php?do=getnew&exclude=11,22,33,44

  3. #3
    Member Array PromotePoker's Avatar
    Real Name
    Jason
    Join Date
    Mar 2006
    Location
    Las Vegas, Nevada
    Posts
    43
    Liked
    1 times
    Thanks, that was easy enough . I actually thought of trying the commas, but I'm not a coder, I'm a direction follower

    Thanks again,

    Jason
    Poker Forums - "I'm Not Lucky, I Have Good Karma!"

  4. #4
    Junior Member Array
    Real Name
    Angus
    Join Date
    Jan 2007
    Posts
    12
    Liked
    0 times
    A question about this - I would ask over at vB but often they are unhelpful and also it could potentially be vbSEO-related. I have done this change through the admincp, however, rather than going to:

    http://www.mysite.com/search.php?do=...de=21,22,33,44

    (<td class="vbmenu_header"><a href="search.php?$session[sessionurl]do=getnew&exclude=21,22,23,24")

    it simply goes to http://www.mysite.com/search.php?searchid=727

    Does anyone know the reason for this? Would be greatly appreciated!

  5. #5
    nfn
    nfn is offline
    Senior Member Array
    Real Name
    Nuno
    Join Date
    Feb 2008
    Location
    Portugal
    Posts
    276
    Liked
    1 times
    Hi,

    You can use a plugin to do this without change the html code.

    Create a new plugin like this:

    Product: vBulletin
    Hook: search_getnew_start
    Name: Exclude Forums from New Posts
    Execution Order: 5
    PHP Code: $vbulletin->GPC['exclude'] .= ',1,2,3,4,5';
    The numbers are the forum id's you want to exclude.

    That's all!

  6. #6
    Junior Member Array
    Real Name
    Angus
    Join Date
    Jan 2007
    Posts
    12
    Liked
    0 times
    Quote Originally Posted by nfn View Post
    Hi,

    You can use a plugin to do this without change the html code.

    Create a new plugin like this:



    The numbers are the forum id's you want to exclude.

    That's all!
    Works like an absolute charm - thank you so much!

  7. #7
    Junior Member Array
    Real Name
    Richard
    Join Date
    Oct 2007
    Posts
    1
    Liked
    0 times

    How to exclude forums from Get New Posts

    That's great. Any idea on how tro set up that same plug in the version 4 as there is no hook by that name.

    I am trying to exclude certain forums from both the "New Posts" and "What's new" links on the navbar

Similar Threads

  1. Exclude Forums from "Get New Posts"
    By dutchbb in forum Off-Topic & Chit Chat
    Replies: 7
    Last Post: 02-17-2009, 08:33 AM
  2. Exclude certain private forums from using redirect URLs for links?
    By Viper007Bond in forum General Discussion
    Replies: 3
    Last Post: 01-24-2008, 08:31 PM
  3. Exclude certain forums?
    By madsun in forum Troubleshooting
    Replies: 2
    Last Post: 08-26-2007, 02:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •