Results 1 to 10 of 10

Why doesn't vBSEO include thread prefixes in URLs on forumhome?

This is a discussion on Why doesn't vBSEO include thread prefixes in URLs on forumhome? within the Bug Reporting forums, part of the vBSEO SEO Plugin category; I have enabled vbulletin's thread prefixes in my forum and I have also enabled the vBSEO -option to include those ...

  1. #1
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times

    Why doesn't vBSEO include thread prefixes in URLs on forumhome?

    I have enabled vbulletin's thread prefixes in my forum and I have also enabled the vBSEO-option to include those thread prefixes in the URLs. This is working on most places in my forum and the URLs look like this:
    http://www.myforum.com/forumtitle/threadid-threadprefix-threadtitle.html

    But on forumhome, the links to the latest threads in the subforums look like this:
    http://www.myforum.com/forumname/threadid-threadtitle.html (=no prefix included)

    What causes this difference and how can I enable urls including thread prefixes on forumhome?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    are you running the latest vBSEO version? (if not, can you try 3.5.0RC2?)
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Hello ,

    I just tested and this works correct on my test installations. If you are receiving this error with RC2 please create a support ticket so we can check.
    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

  4. #4
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    I am using the latest stable version vBSEO 3.3.2. I don't want to install beta-software on my forum. If this should not be a bug, then please move this thread to the troubleshooting-section.

  5. #5
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    I have tested a little bit more. The problem is not limited to the forumhome-page. The problem seems to be in the functions vbseo_thread_url_row_spec() and vbseo_thread_url_row(). Whenever these functions are called in the forumbits-templates, the thread prefix is missing in the url. But on all other sections of my forum (showthread, showpost etc) the thread prefixes in the urls are working fine.

  6. #6
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    Allright folks... I have installed a new and clean vbulletin 3.8.5 and a new and clean vBSEO 3.3.2 on 5 different servers with 5 very different server configurations and I can reproduce this behaviour described above on every single one of them. These servers have very different configurations from mysql 4-5, php from 5.2 - 5.3 running as mod_php, fastcgi etc, OS is Debian, Gentoo and others. And even on shared hosting servers the problem is the same.
    And you want to tell me that everything is working fine on all your test installations? Please show me an example of a webserver running vbulletin and vbseo and that does not show this bug.

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please try to modify functions_vbseo.php file:
    find:
    foreach($threadcache as $tid => $tar)
    {
    $vbseo_gcache['thread'][$tar['threadid'] ? $tar['threadid'] : $tid] = $tar;
    if($found_object_ids['thread_last'] && in_array($tar['threadid'], $found_object_ids['thread_last']))
    $found_object_ids['user_names'][] = $tar['lastposter'];
    }
    replace with:
    $threadcache_ids = array();
    foreach($threadcache as $tid => $tar)
    {
    $tid = $tar['threadid'] ? $tar['threadid'] : $tid;
    $vbseo_gcache['thread'][$tid] = $tar;
    if($found_object_ids['thread_last'] && in_array($tar['threadid'], $found_object_ids['thread_last']))
    $found_object_ids['user_names'][] = $tar['lastposter'];

    if(!VBSEO_URL_THREAD_PREFIX || $vbseo_gcache['thread'][$id]['prefixid'])
    $threadcache_ids[] = $tid;
    }
    $found_object_ids['thread_ids'] = array_diff($found_object_ids['thread_ids'], $threadcache_ids);
    in functions_vbseo_vb.php file:
    find:
    if (isset($vbseo_gcache['thread'][$id])) continue;
    replace with:
    if (isset($vbseo_gcache['thread'][$id]))
    {
    if(!VBSEO_URL_THREAD_PREFIX || $vbseo_gcache['thread'][$id]['prefixid'])
    continue;
    }else
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #8
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    I have added these modifications and still can't see thread prefixes in the urls in the forumbits-sections.

  9. #9
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    Could it be that you forgot one line your first quote regarding functions_vbseo.php?
    If I add your modifications, it would produce these two lines:
    PHP Code:
    $found_object_ids['thread_ids'] = array_diff($found_object_ids['thread_ids'], $threadcache_ids); 
    $found_object_ids['thread_ids'] = array_diff($found_object_ids['thread_ids'], array_keys($threadcache)); 
    If I remove the second (almost duplicate) line and then it seems to work. Is that correct or did I get something wrong?

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Sorry for delay, yes this is correct.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Replies: 2
    Last Post: 01-26-2009, 03:07 PM
  2. The option: If you have vBSEO, include old urls?
    By larrymax in forum General Discussion
    Replies: 2
    Last Post: 05-02-2008, 08:47 AM
  3. Replies: 6
    Last Post: 03-11-2008, 06:46 PM
  4. Thread prefixes extension
    By sinucello in forum vBSEO.com Styles
    Replies: 0
    Last Post: 11-02-2007, 05:11 PM

Tags for this Thread

Posting Permissions

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