The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What is the recommended way to create self referring URLs on these pages.
This page takes arguments and I need to create links that will refer to the page itself. In the example below, how can I create $SName from the variables within PHP Direct-Eval? $a. = '<a href="$SName?cm=pvideo">Video</a>'; Thank you! Rick This works well. Code:
function FindSelf () { $Path = $_SERVER['REQUEST_URI']; $SName = substr($Path, 0, strpos($Path, "&")); if ($SName === "") $SName = $Path; return $SName; } |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|