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

Disabling rewrite for some sections of thread URLs

This is a discussion on Disabling rewrite for some sections of thread URLs within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; How to disable url rewriting for the ones below? 'Last Post in Thread' Redirect URL Format 'Newest Post in Thread' ...

  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

    Question Disabling rewrite for some sections of thread URLs

    How to disable url rewriting for the ones below?

    'Last Post in Thread' Redirect URL Format
    'Newest Post in Thread' Redirect URL Format
    'Go To Post in Thread' Redirect URL Format
    Multiple page 'Go To Post in Thread' Redirect URL Format
    'Previous Thread' Redirect URL Format
    'Next Thread' Redirect URL Format

    If there is no function to do this, please add support in the next version.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    You could use the Custom field for each to make them look like the "standard" vBulletin URLs. May I ask why you would want to do this?

  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
    Quote Originally Posted by Keith Cohen View Post
    You could use the Custom field for each to make them look like the "standard" vBulletin URLs. May I ask why you would want to do this?
    Because these urls are hidden to the guests or rel=nofollow added to them and they're using unneccessary cpu power. Why is there a global enable/disable selection for the all thread urls instead of one for each?

  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
    In that case you'll let your users to share original showthread links within your site and other sites.
    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 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 Mert Gökçeimam View Post
    In that case you'll let your users to share original showthread links within your site and other sites.
    Not really.

    I only want to rewrite the single and multi page thread urls.

    Example:
    Code:
     http://www.msxlabs.org/forum/msn-teknik-destek-bilgiler/7635-msn-messenger-live-messenger-windows-live-messenger-teknik-destek.html
    Multipage:
    Code:
    http://www.msxlabs.org/forum/msn-teknik-destek-bilgiler/7635-msn-messenger-live-messenger-windows-live-messenger-teknik-destek-5.html
    ^These two are enough for me.

    Next thread link in this page:
    Code:
    http://www.msxlabs.org/forum/msn-teknik-destek-bilgiler/7635-msn-messenger-live-messenger-windows-live-messenger-teknik-destek-sonraki-konu.html
    Previous thread link in this page:
    Code:
    http://www.msxlabs.org/forum/msn-teknik-destek-bilgiler/7635-msn-messenger-live-messenger-windows-live-messenger-teknik-destek-onceki-konu.html
    Last post in thread link:
    Code:
    http://www.msxlabs.org/forum/msn-teknik-destek-bilgiler/7635-msn-messenger-live-messenger-windows-live-messenger-teknik-destek-mesaj979144.html#post979144
    ^Nobody will share these links and they are already hidden/removed to the guest visitors (bots) and rel=nofollow added to them.

    Thread links, multi-page thread links, message permalinks and the default showpost urls (robot.txt - disallowed - nofollow added) are shared.
    Last edited by NeutralizeR; 03-19-2008 at 03:43 AM.

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

  7. #7
    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
    If you disable the rewrite option on those url's your members will see url's as showthread.php?t=xxx and they will have chance to distrubute these url's
    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

  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
    Quote Originally Posted by Mert Gökçeimam View Post
    If you disable the rewrite option on those url's your members will see url's as showthread.php?t=xxx and they will have chance to distrubute these url's
    I got your point but i have never seen somebody copied a "next thread | previous thread" link before. I think disabling 3-4 rewrite rules for showthread and forumdisplay might effect performance. Especially when you have 3000+ online users.

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Currently it is not allowed to enable/disable any individual URL rewrite, you can comment out the corresponding code in functions_vbseo.php file for that, like:
    PHP Code:
                        if($apars['goto'] == 'nextnewest')
                        {
    ...


  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
    Quote Originally Posted by Oleg Ignatiuk View Post
    Currently it is not allowed to enable/disable any individual URL rewrite, you can comment out the corresponding code in functions_vbseo.php file for that, like:
    PHP Code:
                        if($apars['goto'] == 'nextnewest')
                        {
    ...

    Commenting out those lines will both disable url rewriting and save a little cpu usage, right?

    PHP Code:
    if($apars['goto'] == 'lastpost')
    $newurl vbseo_thread_url($apars[VBSEO_THREADID_URI], ''VBSEO_URL_THREAD_LASTPOST);
    else
    /*if($apars['goto'] == 'nextnewest')
    {
    if(VBSEO_URL_THREAD_NEXT_DIRECT)
    {
    $nthread = vbseo_get_next_thread($apars[VBSEO_THREADID_URI], false);
    $follow = true;
    if($nthread['threadid'])
    {
    $url_script = vbseo_thread_url($nthread['threadid']);
    $intag = function_exists('fetch_censored_text') ? fetch_censored_text($nthread['title']) : '';
    $clear_all_par = true;
    }else
    return '-';
    }else
    $newurl = vbseo_thread_url($apars[VBSEO_THREADID_URI], '', VBSEO_URL_THREAD_NEXT);
    }
    else
    if($apars['goto'] == 'nextoldest')
    {
    if(VBSEO_URL_THREAD_PREV_DIRECT)
    {
    $follow = true;
    $nthread = vbseo_get_next_thread($apars[VBSEO_THREADID_URI], true);
    if($nthread['threadid'])
    {
    $url_script = vbseo_thread_url($nthread['threadid']);
    $intag = function_exists('fetch_censored_text') ? fetch_censored_text($nthread['title']) : '';
    $clear_all_par = true;
    }else
    return '-';
    }else
    $newurl = vbseo_thread_url($apars[VBSEO_THREADID_URI], '', VBSEO_URL_THREAD_PREV);
    }
    }
    else
    */
    if(VBSEO_ENABLE_GARS && isset($apars[VBSEO_PAGENUM_URI_GARS])) 
    Correctly done?

    Edit: White screen, didn't work...
    Last edited by NeutralizeR; 03-20-2008 at 02:11 AM.

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    What is an example URL that results in white screen?

  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
    What is an example URL that results in white screen?
    Sorry, i reverted the changes to keep the site online. msxlabs.org/forum/ and i suppose rest of the pages were effected by this change.

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Try to commenting out the code starting right above this line:
    if(isset($apars['goto']))

  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
    Try to commenting out the code starting right above this line:
    if(isset($apars['goto']))
    This one worked:

    PHP Code:
    if(isset($apars['goto']))
    {
    if(
    $apars['goto'] == 'newpost')
    $newurl vbseo_thread_url($apars[VBSEO_THREADID_URI], ''VBSEO_URL_THREAD_NEWPOST);
    else
    if(
    $apars['goto'] == 'lastpost')
    $newurl vbseo_thread_url($apars[VBSEO_THREADID_URI], ''VBSEO_URL_THREAD_LASTPOST);
    }
    /*else
    if($apars['goto'] == 'nextnewest')
    {
    if(VBSEO_URL_THREAD_NEXT_DIRECT)
    {
    $nthread = vbseo_get_next_thread($apars[VBSEO_THREADID_URI], false);
    $follow = true;
    if($nthread['threadid'])
    {
    $url_script = vbseo_thread_url($nthread['threadid']);
    $intag = function_exists('fetch_censored_text') ? fetch_censored_text($nthread['title']) : '';
    $clear_all_par = true;
    }else
    return '-';
    }else
    $newurl = vbseo_thread_url($apars[VBSEO_THREADID_URI], '', VBSEO_URL_THREAD_NEXT);
    }
    else
    if($apars['goto'] == 'nextoldest')
    {
    if(VBSEO_URL_THREAD_PREV_DIRECT)
    {
    $follow = true;
    $nthread = vbseo_get_next_thread($apars[VBSEO_THREADID_URI], true);
    if($nthread['threadid'])
    {
    $url_script = vbseo_thread_url($nthread['threadid']);
    $intag = function_exists('fetch_censored_text') ? fetch_censored_text($nthread['title']) : '';
    $clear_all_par = true;
    }else
    return '-';
    }else
    $newurl = vbseo_thread_url($apars[VBSEO_THREADID_URI], '', VBSEO_URL_THREAD_PREV);
    }
    }*/
    else
    if(
    VBSEO_ENABLE_GARS && isset($apars[VBSEO_PAGENUM_URI_GARS])) 
    Where is it for the blogs?

    Edit: Found it.

    PHP Code:
    /*if($apars['b'] && $apars['goto'])
    {
    $newurl = vbseo_blog_url($apars['goto']=='next'?VBSEO_URL_BLOG_NEXT:VBSEO_URL_BLOG_PREV, $apars);
    }else*/ 
    Thanks.
    Last edited by NeutralizeR; 03-20-2008 at 11:58 AM.

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    You should comment the code starting with:
    PHP Code:
    if((isset($apars[VBSEO_POSTID_URI]) 

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Anyone using Custom Rewrite Rules to rewrite OpenAds ad urls?
    By echamberlain in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 12-12-2007, 06:24 PM
  2. Replies: 0
    Last Post: 03-23-2007, 03:01 PM
  3. Replies: 13
    Last Post: 01-17-2007, 06:16 AM
  4. Thread preview still enabled after disabling it
    By emin in forum Bug Reporting
    Replies: 2
    Last Post: 01-28-2006, 07:54 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
  •