vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can i change this Url (https://vborg.vbsupport.ru/showthread.php?t=274124)

s.sami 11-16-2011 12:41 PM

How can i change this Url
 
hi everyone

as you know threads url is like this /showthread.php?t=20409 how can i change "t" instead of "b"
like this /showthread.php?b=20409

Thanks..

kh99 11-16-2011 03:33 PM

Do you want to allow ?b=20409 in addition to t? You could edit includes/class_core.php, and around line 1500 make this change (add the part in red):

Code:

        /**
        * Translation table for short name to long name
        *
        * @var    array
        */
        var $shortvars = array(
                'f'    => 'forumid',
                't'    => 'threadid',
                'b'    => 'threadid',
                'p'    => 'postid',
                'u'    => 'userid',


If you add the 'b' line after the 't' line, if they happen to both be present the 't' value will be used. If you'd rather have the 'b' value used in that situation, you can switch the order of those lines.

If you want to replace all 't' with 'b', you'd have to find everywhere a thread link is created and change it, then change 't' to 'b' instead of adding a line (but if you already have a site running you probably don't want to do that, you'll break all links to threads, including from search engines).

s.sami 11-16-2011 06:31 PM

Thank you so much..


All times are GMT. The time now is 09:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00947 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete