Results 1 to 4 of 4

Exclude certain private forums from using redirect URLs for links?

This is a discussion on Exclude certain private forums from using redirect URLs for links? within the General Discussion forums, part of the vBSEO SEO Plugin category; I have some actual private forums (for moderators and such) where I enjoy using the "Redirect ALL External URLs Posted ...

  1. #1
    Member Viper007Bond's Avatar
    Real Name
    Viper007Bond
    Join Date
    Jan 2008
    Location
    Portland, Oregon, USA
    Posts
    65
    Liked
    0 times

    Exclude certain private forums from using redirect URLs for links?

    I have some actual private forums (for moderators and such) where I enjoy using the "Redirect ALL External URLs Posted in Private Forums" feature.

    However, I also have some "private" forums that aren't really private, they're just registered users only. Is there any way to exclude these couple no-guest forums from having the /redirect-to/ applied to the URLs?
    FinalGear.com Forums -- my site/forums dedicated to Top Gear and Fifth Gear, two UK TV shows

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    The "redirect-to" is applied to all subforums that are not visible to guests for privacy protection.
    You can try this modification in functions_vbseo.php file though:
    find:
    PHP Code:
                if(strstr($preurl,'href') && !$is_public && $vbseo_ext_url
    replace with:
    PHP Code:
                if(strstr($preurl,'href') && !$is_public && $vbseo_ext_url && !in_array($GLOBALS['forum']['forumid'], array(123,124,125))) 
    where 123,124,125 are the forumids you'd like to skip.

  3. #3
    Member Viper007Bond's Avatar
    Real Name
    Viper007Bond
    Join Date
    Jan 2008
    Location
    Portland, Oregon, USA
    Posts
    65
    Liked
    0 times
    Worked like a charm! Thanks!
    FinalGear.com Forums -- my site/forums dedicated to Top Gear and Fifth Gear, two UK TV shows

  4. #4
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,266
    Liked
    586 times
    I'm enjoying your digging into the vBSEO features. vBSEO is a lot more than it appears on the surface.

Similar Threads

  1. Redirect ALL External URLs Posted in Private Forums
    By jim1 in forum General Discussion
    Replies: 3
    Last Post: 07-25-2007, 12:24 PM
  2. Replies: 3
    Last Post: 10-24-2006, 05:34 PM
  3. Redirect ALL External URLs Posted in Private Forums
    By Pagan in forum General Discussion
    Replies: 4
    Last Post: 08-20-2006, 03:49 AM
  4. Redirect all Private Forum Links breaks various other things...
    By Ace Shattock in forum Troubleshooting
    Replies: 5
    Last Post: 11-26-2005, 03:16 PM

Posting Permissions

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