The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
PHP URL variables
I want to load a 2nd version of one of our pages, and change a bit of text for the 2nd version. The regular version of the page will remain the same, but the 2nd page will load with a URL variable and I'll run if/then code that will change the text if the variable is present. How do I do this in one of the VB templates, for instance FORUMHOME?
Here's the PHP I'd run outside of the template: <?php $source = $_GET['source']; if (isset($source)) { echo "This source is set so I will print paragraph 2."; } else { echo "The source is not set so I will print paragraph 1."; } ?> Any help would be greatly appreciated! Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|