Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19

Still missing /forum/ url in copy/paste urls

This is a discussion on Still missing /forum/ url in copy/paste urls within the Bug Reporting forums, part of the vBSEO SEO Plugin category; (54) FIX: Missing /forum/ section in copy/pasted URLs. It's not fixed for the copied and pasted urls from forumdisplay list ...

  1. #1
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times

    Still missing /forum/ url in copy/paste urls

    (54) FIX: Missing /forum/ section in copy/pasted URLs.
    It's not fixed for the copied and pasted urls from forumdisplay list (thread titles) and showpost urls.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    How do we reproduce it?

  3. #3
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Select and copy a thread title from forumdisplay list and paste it to the editor (quickreply) then click preview button or send the post.
    Last edited by NeutralizeR; 11-23-2007 at 11:05 AM.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Thank you, that will be resolved in the next vBSEO build.

  5. #5
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Thank you, that will be resolved in the next vBSEO build.
    C'mon, it's encryiption free now and i don't have to wait till you release a newer version, right?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Ok, here you go
    in functions_vbseo_hook.php file
    FIND:
    PHP Code:
                $_POST['message'] = preg_replace('#(href=")(../)+#''$1'$_POST['message']); 
    REPLKACE WITH:
    PHP Code:
                $vbseo_ref $_SERVER['HTTP_REFERER'];
                
    $pre_repl '';
                if (
    $vbseo_ref && strstr(strtolower($vbseo_ref), VBSEO_HTTP_HOST))
                {
                    
    $pre_repl preg_replace('#/[^/]*$#''/'$vbseo_ref);
                }
                
    $_POST['message'] = preg_replace('#(href=")(../)+#''$1'.$pre_repl.'$2'$_POST['message']); 

  7. #7
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Thank you

  8. #8
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    I've just found another one.

    Copy and paste a thread's url to quickreply and submit the message.

    Select and copy the -linked thread title- from the new submitted message and paste it again to quickreply. Click send or preview button.

    This time forum-name is missing, not the /forum/ section.

  9. #9
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times

  10. #10
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Still missing /forum/ url in copy/paste urls

    test 2

    this forum doesn't have this bug. i guess it's because of the rewrite rules differences with mine.

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Works correctly for me. How can we reproduce the issue?

  12. #12
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Works correctly for me. How can we reproduce the issue?
    Use this thread to test:
    Asla Bitmeyen Konu - Sayfa 151 - MsXLabs

    Username: Tester
    Password: asd123

    Copy and paste a thread's url to quickreply and submit the message.

    Select and copy the -linked thread title- from the new submitted message and paste it again to quickreply. Click send or preview button.

    This time forum-name is missing, not the /forum/ section.

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Please try this code instead of the mentioned above:
    PHP Code:
                $vbseo_ref $_SERVER['HTTP_REFERER'];
                
    $pre_repl '';
                if (
    $vbseo_ref && strstr(strtolower($vbseo_ref), VBSEO_HTTP_HOST))
                {
                    
    $pre_repl preg_replace('#/[^/]*$#''/'$vbseo_ref);
                }
                if(
    $pre_repl != $vbseo_cutbburl.'/')
                {
                
    $_POST['message'] = preg_replace($rs='#((?:href="|\[url="))'.
                    
    '('.preg_quote($vbseo_cutbburl).'/)?([^:"]*?")#i''$1'.$pre_repl.'$3'$_POST['message']);
                } 

  14. #14
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Please try this code instead of the mentioned above:
    PHP Code:
                $vbseo_ref $_SERVER['HTTP_REFERER'];
                
    $pre_repl '';
                if (
    $vbseo_ref && strstr(strtolower($vbseo_ref), VBSEO_HTTP_HOST))
                {
                    
    $pre_repl preg_replace('#/[^/]*$#''/'$vbseo_ref);
                }
                if(
    $pre_repl != $vbseo_cutbburl.'/')
                {
                
    $_POST['message'] = preg_replace($rs='#((?:href="|\[url="))'.
                    
    '('.preg_quote($vbseo_cutbburl).'/)?([^:"]*?")#i''$1'.$pre_repl.'$3'$_POST['message']);
                } 
    Thanks again.

  15. #15
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Missing "/forum/" section in the copied and pasted smilies from the posts.

    > I selected this smiley from the post #7 and pressed CTRL + C

    > I pasted this smiley by pressing CTRL + V

    It's working here as vbulletin installed to the root folder.

    But at my forums:

    http://www.msxlabs.org/forum/images/smilies/biggrin.gif

    http://www.msxlabs.org/images/smilies/biggrin.gif

Page 1 of 2 1 2 LastLast

Posting Permissions

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