Results 1 to 8 of 8

Thread-Links as Thread-Title

This is a discussion on Thread-Links as Thread-Title within the Bug Reporting forums, part of the vBSEO SEO Plugin category; If you choose a rewritten Thread/Post-Link as Thread-Title, you are redirected to the thread, mentioned as title, instead to the ...

  1. #1
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times

    Thread-Links as Thread-Title

    If you choose a rewritten Thread/Post-Link as Thread-Title, you are redirected to the thread, mentioned as title, instead to the thread itself.

    example:
    http://www.myimg.de/?img=vbseo026b6.png
    title: http://www.klamm.de/forum/externe-loseseiten/351587-offizieller-casino-xxl-thread-kein-supporthread-125.html#post6159866

    link to thread with the above title
    http://www.klamm.de/forum/mod-sprechstunde/354867-http-www-klamm-de-forum-externe-loseseiten-351587-offizieller-casino-xxl-thread-kein-supporthread-125-html-post6159866.html

    ... redirects to
    http://www.klamm.de/forum/externe-loseseiten/351587-offizieller-casino-xxl-thread-kein-supporthread-125.html#post6159866 (the title)

    Theres no possibillity to get to the new thread.
    You have to rename it before.

    Edit: Seems that the problem only occurs if the title is a link with an post-anchor

  2. #2
    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
    It is not a bug at all

    Offizieller Casino-xxl-Thread Kein Supporthread - Seite 125 - klamm-Forum

    conflicts with go to post url

    You can either update your go to post rewrite rules or use a different title.
    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

  3. #3
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    You can either update your go to post rewrite rules
    I have nothing changed @ standard setup of vb 3.8.x.

    With vbSEO turned off it works. (certainly, because you dont have named links ...)
    So - in my opinion - it's a situation you have to consider in the rewrite rules@vbSEO.

    I think the problem, is, that you cant say, if the post-anchor at the end belongs to the title (right) or to the thread (false). Solution: If thread-ID is given (at the beginning, 354867) the thread-ID counts! and if theres a post anchor which doesn't fit this thread-id, it will be ignored. At the moment, the post-jump is more worthy than the thread-id. If the thread-id does not match the post jump, it will be replaced with the "right" thread, leading to this problem.

    Yes: Look at this fancy example
    http://www.vbseo.com/f3/thread-links-thread-title-48144/#post299931
    (this thread, invalid post-anchor -> redirect to matching thread)

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

    try to modify functions_vbseo_createurl.php file:
    find:
    PHP Code:
    if ((preg_match('#[-_\s]\d+$#'$title) || !$title)) 
    replace with:
    PHP Code:
    if ((preg_match('#[-_\s](?:post)\d+$#'$title) || !$title)) 

  5. #5
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    Ahh, the "a"-trick.
    Works like a charm and should be build in in future releases ...
    Thx!

  6. #6
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    OHH
    The post12345 -a trick works ... but the threads, ending with numbers are no longer "a"-t.
    http://www.klamm.de/forum/f13/offizieller-lose-klopper-de-thread-gestartet-02-02-2011-352876-2.html
    instead of
    http://www.klamm.de/forum/f13/offizieller-lose-klopper-de-thread-gestartet-02-02-2011-a-352876.html

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Sorry, there is a missing "?" in code edit:
    PHP Code:
    if ((preg_match('#[-_\s](?:post)?\d+$#'$title) || !$title)) 

  8. #8
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    jep works thx

Similar Threads

  1. Replies: 126
    Last Post: 09-11-2011, 03:40 PM
  2. 'next-thread' non existing thread links inside the sitemap
    By hcristea in forum Troubleshooting
    Replies: 4
    Last Post: 03-27-2009, 08:56 AM
  3. How to make thread description same as thread title?
    By basketmen in forum Template Modifications
    Replies: 0
    Last Post: 03-16-2007, 09:45 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
  •