The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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.. |
#2
|
|||
|
|||
![]()
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). |
#3
|
|||
|
|||
![]()
Thank you so much..
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|