Results 1 to 6 of 6

vbseo outgoing link page tracker: how to modify it?

This is a discussion on vbseo outgoing link page tracker: how to modify it? within the General Discussion forums, part of the vBSEO SEO Plugin category; I have vbseo 's outgoing link page tracker installed. I have a link rewrite script that is designed to look ...

  1. #1
    Member
    Real Name
    sfnet
    Join Date
    Aug 2007
    Posts
    73
    Liked
    0 times

    vbseo outgoing link page tracker: how to modify it?

    I have vbseo's outgoing link page tracker installed. I have a link rewrite script that is designed to look for the following link format:

    <a href=

    vbseo's page tracker gives the following link format to URLs:

    <a onclick="pageTracker._trackPageview ('/outgoing/http_www_tdomain_com_url_stuff_');" rel="nofollow" href=http://www.domain.com/url/stuff target="_blank">

    Is it possible to modify a vbseo file to move the 'href' tag in the URL format to the front of the structure just after the '<a' and before the 'onclick=' tag? so that this script can work properly?

    If so, what file would need to be modified. Thank you!

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    You would need to change this line:
    $preurl = preg_replace('#(<a\s)#is', '\\1'.$handlername.'="' . $linkout . '" ', $preurl);
    with:
    $posturl = preg_replace('#(/?>)#is', ' '.$handlername.'="' . $linkout . '" \\1 ', $posturl);

  3. #3
    Member
    Real Name
    sfnet
    Join Date
    Aug 2007
    Posts
    73
    Liked
    0 times
    Thank you!

  4. #4
    Member
    Real Name
    sfnet
    Join Date
    Aug 2007
    Posts
    73
    Liked
    0 times
    What file is this in? The original post that was removed included it.

  5. #5
    Member
    Real Name
    sfnet
    Join Date
    Aug 2007
    Posts
    73
    Liked
    0 times
    Well, I found it in the functions_vbseo_seo.php file. I made the change. However, now I have <a rel="nofollow" href=""

    Anyway to move the rel="nofollow" further back in the URL structure?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    For rel=nofollow replacement, try to change this line:
    $preurl = preg_replace('#(<a\s)#is', '\\1'.$relnofollow.' ', $preurl);
    to:
    $posturl = preg_replace('#(/?>)#is', ' '.$relnofollow.' \\1', $posturl );

Similar Threads

  1. Outgoing Link Adsense - Kann vBSEO das?
    By reimic in forum Deutsch
    Replies: 2
    Last Post: 02-22-2009, 02:26 PM
  2. How to modify the Showpost Link ?
    By debug in forum Troubleshooting
    Replies: 1
    Last Post: 07-24-2008, 10:45 AM
  3. Bad URL on outgoing linkbacks page (RC5)
    By Noodles in forum Bug Reporting
    Replies: 2
    Last Post: 10-16-2006, 12:28 PM
  4. Outgoing Link Not Working
    By Keith Cohen in forum Troubleshooting
    Replies: 2
    Last Post: 07-19-2006, 12:34 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
  •