The Arcive of vBulletin Modifications Site. |
|
|
#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 | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|