Results 1 to 14 of 14

Remove target for local links

This is a discussion on Remove target for local links within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; I hate the fact that vB automatically adds target="blank" to all links. I don't mind it so much for external ...

  1. #1
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times

    Remove target for local links

    I hate the fact that vB automatically adds target="blank" to all links. I don't mind it so much for external sites, but when linking within our own sites to other threads and such, I would love to turn it off. Can this be done with vbseo?

  2. #2
    Senior Member Lian's Avatar
    Real Name
    Lian
    Join Date
    Jun 2006
    Location
    Munich, DE
    Posts
    333
    Liked
    0 times
    Open internal links in _self - is this a hack?



    I guess the file class_bbcode.php in includes has to be touched:

    Code:
    // standard URL hyperlink
    return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
    There is the code, which opens a link in an extra (_blank) window.
    Last edited by Lian; 08-25-2006 at 04:21 AM.

  3. #3
    Senior Member majordude's Avatar
    Real Name
    majordude
    Join Date
    Aug 2006
    Posts
    182
    Liked
    0 times
    That "_blank" probably has no effect on seo but it does help keep visitors on your board. Frankly, I am always shocked when I visit a website, click on a link, and I end up on the other site without any way to go back to the first site. It's much better to open a new window.
    .
    Go Packers!

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    except, target is depreciated. It is valid only in current "loose" and "transitional" doctypes.

    I would like to see internal links open in same window (if you want a pop up, CTRL + click). It's a user preference IMO, not a system one.

  5. #5
    Senior Member majordude's Avatar
    Real Name
    majordude
    Join Date
    Aug 2006
    Posts
    182
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    except, target is depreciated. It is valid only in current "loose" and "transitional" doctypes.
    No problem there, vBulletin's default is transitional:

    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    It will be around for years to come.
    .
    Go Packers!

  6. #6
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,484
    Liked
    1 times
    Quote Originally Posted by briansol View Post
    except, target is depreciated. It is valid only in current "loose" and "transitional" doctypes.

    I would like to see internal links open in same window (if you want a pop up, CTRL + click). It's a user preference IMO, not a system one.
    I agree. target should be removed.

  7. #7
    Senior Member majordude's Avatar
    Real Name
    majordude
    Join Date
    Aug 2006
    Posts
    182
    Liked
    0 times
    Yes, internal links should open in the same window, external links with a target=_blank action.
    .
    Go Packers!

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Quote Originally Posted by majordude View Post
    No problem there, vBulletin's default is transitional:

    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    It will be around for years to come.
    And I'm hoping to remove it.

    Transitional is not a doctype to "go for". It's one to use in case you suck at programming and "can't quite get it to validate".

    All the font/size/color things of the post area need to be addressed as well, as they write invalid code, even in xhmlt transitional.

    My board will be 100% xhtml strict by the end of the year, use 1/10th the javascript that it comes with, and about 1/4 the file size.

    Quote Originally Posted by BamaStangGuy View Post
    I agree. target should be removed.
    werd

    Quote Originally Posted by majordude View Post
    Yes, internal links should open in the same window, external links with a target=_blank action.
    internal, yes.
    external, no target.

    Using php, and javasctipt, the widows can be easily called properly.

    Code:
    <?// ------------------------------------------------------------------- 
    // Return a hiperlink to something within the site 
    // E.g: print Link('test.php', 'Link Test'); 
    // E.g: print Link('test.php', 'Link Test', '_blank'); 
    // E.g: print Link('test.php', 'Link Test', '_blank', 'Click here'); 
    // ------------------------------------------------------------------- 
    
    function Link($url, $linktext = false, $target = false, $tit = false) { 
        $l = sprintf('<a href="%s"%s%s>%s</a>', $url,  
              ($target  ? ' onclick="window.open(this.href,'' . $target . '');return false;"' : ''), 
              ($tit  ? ' title="' . $tit . '"' : ''), 
              ($linktext ? $linktext : $url) );     
        return $l; 
    } 
    
    ?>
    


    save that Jaun you'll need it later.
    [/color]

  9. #9
    Senior Member majordude's Avatar
    Real Name
    majordude
    Join Date
    Aug 2006
    Posts
    182
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    My board will be 100% xhtml strict by the end of the year...
    Well, I'm not wasting my time chasing perfection. All you need is to have your code match the doctype and you're fine.

    Google won't give you a gold star because your page is strict... but it will penalize you if you declare your page strict and it isn't. But that goes for any page (you have to match the code to the declaration).

    Personally, I like the flexibility that "transitional" allows.
    .
    Go Packers!

  10. #10
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,484
    Liked
    1 times
    Quote Originally Posted by majordude View Post
    Well, I'm not wasting my time chasing perfection. All you need is to have your code match the doctype and you're fine.

    Google won't give you a gold star because your page is strict... but it will penalize you if you declare your page strict and it isn't. But that goes for any page (you have to match the code to the declaration).

    Personally, I like the flexibility that "transitional" allows.
    but it will penalize you if you declare your page strict and it isn't.
    Prove that please.

  11. #11
    Senior Member rmjvol's Avatar
    Real Name
    Ross
    Join Date
    Jan 2006
    Location
    Neyland Stadium West
    Posts
    196
    Liked
    0 times
    Quote Originally Posted by BamaStangGuy View Post
    Prove that please.
    Why should he?

    A fine point like that isn't something you can prove/disprove easily in a little forum thread about a vbseo feature request.

    If you don't believe it, just ignore it. I'm guessing that majordude doesn't care much if you/we want to listen to that point or not. Especially if he's expected to provide documentation of his methodology for arriving at that point.

  12. #12
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,484
    Liked
    1 times
    Quote Originally Posted by rmjvol View Post
    Why should he?

    A fine point like that isn't something you can prove/disprove easily in a little forum thread about a vbseo feature request.

    If you don't believe it, just ignore it. I'm guessing that majordude doesn't care much if you/we want to listen to that point or not. Especially if he's expected to provide documentation of his methodology for arriving at that point.
    because he flat out said if you do x y will happen.

    He stated it fact.

    The very least he can do is back himself up if he is going to make a claim like that and I don't think asking him is going to far? I don't understand why you felt the need to throw your .02 in here anyway. If he doesn't want to back it up that is fine but I ask him to prove something because I want to see documentation on it. Maybe it is true. If so I want more than just his word.

    What he is saying is that search engines validate your code and then if you have errors penalize you. That is a pretty big thing if it is true.

  13. #13
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Quote Originally Posted by BamaStangGuy View Post
    Prove that please.
    yeah, thats a bag of beans...

    google them selves don't validate, let alone use a doc type...

  14. #14
    Member
    Join Date
    Oct 2005
    Posts
    77
    Liked
    0 times
    Redirect ALL External URLs Posted in Private Forums

    I hate this setting. If we have sites that are affiliated or run as "sisters" to our forum, the URLs are redirected.

    Also, target needs to be removed for any internal URL. It's damn annoying to follow an internal link in a post and pop up a page.

    This is important stuff Juan et al.

Similar Threads

  1. Traffic, BackLinks, & PageRank with Paid "Text" Links
    By Joe Ward in forum General Discussion
    Replies: 3
    Last Post: 08-01-2007, 03:48 PM
  2. Google update! Higher pageranks for vBSEO'd urls
    By Jonathan in forum Analysis: Traffic & SERPS
    Replies: 33
    Last Post: 12-30-2005, 02:28 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
  •