Results 1 to 2 of 2

rel="external nofollow"

This is a discussion on rel="external nofollow" within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; I'd like to be able to use both of these, but currently with the vbSEO rel=nofollow enabled, I'm not able ...

  1. #1
    Senior Member libertylounge's Avatar
    Real Name
    Ken
    Join Date
    Aug 2006
    Posts
    439
    Liked
    0 times

    Lightbulb rel="external nofollow"

    I'd like to be able to use both of these, but currently with the vbSEO rel=nofollow enabled, I'm not able to on external links.

    I have a function placed in vbulletin_global.js that looks like this:

    Code:
    function externalLinks() {
     if (!document.getElementsByTagName) return;              
     var anchors = document.getElementsByTagName("a");       
     for (var i=0; i<anchors.length; i++) {
       var anchor = anchors[i];
       if (anchor.getAttribute("href") &&   
           (anchor.getAttribute("rel") == "external" || anchor.getAttribute("rel") == "external nofollow")
          )
         anchor.target = "_blank";
     }
    }
    window.onload = externalLinks;
    To open it in a new window while remaining code compliant, but vbSEO's function also puts one in there, and can't have 2 rel's..

    With vbSEO one enabled, looks like this:

    Code:
    rel="nofollow" href="http://news.yahoo.com" rel="external nofollow">
    Would be nice if we could have an option to add "external" to open in a new window for external links without having to use _blank.
    The Liberty Lounge Political Forums - Our political forums, your two cents.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,680
    Liked
    157 times
    Hello,

    you can add rel="novbseo" tag to these links to exclude them from being processed by vBSEO:
    <a rel="novbseo" href="http://news.yahoo.com" rel="external nofollow">

    You should also manually enable VBSEO_ALLOW_REL_NOVBSEO option in config_vbseo.php file:
    PHP Code:
        define('VBSEO_ALLOW_REL_NOVBSEO',   1); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Posting Permissions

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