Results 1 to 7 of 7

vBSEO 3.3.2: vB (default) social bookmark rewrite

This is a discussion on vBSEO 3.3.2: vB (default) social bookmark rewrite within the Bug Reporting forums, part of the vBSEO SEO Plugin category; It seems vBSEO doesn't rewrite the URL if there's a space (%20) before {URL} Example: Code: http://twitter.com/home?status={TITLE}%20-%20{URL} Rewrites to Code: ...

  1. #1
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1

    vBSEO 3.3.2: vB (default) social bookmark rewrite

    It seems vBSEO doesn't rewrite the URL if there's a space (%20) before {URL}

    Example:
    Code:
    http://twitter.com/home?status={TITLE}%20-%20{URL}
    Rewrites to
    Code:
    http://twitter.com/home?status=another+test+poll%20-%20http%3A%2F%2Fvampireacademy.net%2Fshowthread.php%3Ft%3D34
    instead of
    Code:
    http://twitter.com/home?status=another+test+poll%20-%20http%3A%2F%2Fvampireacademy.net%2Fanother-test-poll%2F34%2F
    Demo:
    another test poll - Vampire Academy

  2. #2
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    Even though it's for vBSEO 3.3.2, would there be a temporary fix for this perhaps?

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Hello,

    I've flagged this for developer review.

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    I am not actually sure this is a bug Cor. Those variables are not designed to hold spaces.You should use the following format :

    Code:
    http://twitter.com/home?status=%title%-%url%
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  5. #5
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    Hi Mert,

    vBSEO's bookmarking tools actually don't mind the spacing
    Code:
    http://twitter.com/home?status=%title%%20-%20%url%
    After some digging I noticed the spacing isn't what's causing it not to work with the vBulletin (default) bookmarking tools.

    Ie.
    Code:
    http://twitter.com/home?status={URL} TRUE
    http://twitter.com/home?status={TITLE} TRUE
    
    http://twitter.com/home?status={TITLE}{URL} FALSE (which should work)
    http://twitter.com/home?status={TITLE}-{URL} FALSE ("")
    
    http://twitter.com/home?status={TITLE}%20-%20{URL} FALSE
    Edit:
    It's because Twitter doesn't use 2 different identifiers in its URL

    Ie.
    Code:
    http://www.facebook.com/share.php?u={URL}&t={TITLE}
    Also, could you perhaps point me to the file where this is been managed, as I'd like to change the title separator from + to an actual space?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    vBSEO doesn't replace forum URLs *embedded* in other URLs (like in this case, link pointing to twitter), unless the link is one of parameters included in link (and not just a "substring" of a parameter). This is done to avoid possible issues (corrupting links where replacement is actually should not occur) and for performance reasons.
    These "nested" links are handled in functions_vbseo.php file, mainly in this code part:
    PHP Code:
    if(strstr($dec_v,'http:') && (substr($dec_v,0,strlen($vboptions['bburl2']))==$vboptions['bburl2']))
    {
    $dec_v vbseo_replace_urls(''$dec_v);
    $v urlencode($dec_v);

    you can try to replace it with:


    PHP Code:
    if(preg_match('#('.preg_quote($vboptions['bburl2'], '#') . '.*)$#' $dec_v$dec_m))
    {
    $dec_v str_replace($dec_m[1], vbseo_replace_urls(''$dec_m[1]), $dec_v);
    $v urlencode($dec_v);


  7. #7
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    Thanks Oleg, I understand, and it works like a charm! I assume it (vBulletin's default social bookmarking) works a bit different than the vBSEO social bookmarking rewrites, as it works instantly there.
    Code:
    http://twitter.com/home?status=Reading%20%27{TITLE}%27%20{URL}
    Again, much appreciated all!

Similar Threads

  1. Social Bookmark Icons
    By dieselpowered in forum Bug Reporting
    Replies: 4
    Last Post: 12-23-2009, 11:34 PM
  2. PR3 Social Bookmark site
    By iahead in forum Link Building
    Replies: 12
    Last Post: 07-04-2009, 10:47 PM
  3. Social Bookmark, VbDynamic and VBSeo
    By JWL in forum General Discussion
    Replies: 9
    Last Post: 02-23-2009, 03:28 PM
  4. Social Bookmark URL trouble
    By sGroup in forum Troubleshooting
    Replies: 2
    Last Post: 06-05-2008, 05:34 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
  •