The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help with new pages
Well I want to create a new page. I've done it many times with the extension.php
Well Now I want to it with say Code:
index.php?do=Rules Code:
rules.php |
#2
|
|||
|
|||
If I understand you correctly, you want to know how to read the parameters from the url? If you write a script called index.php, then in your browser you enter "http://mydomain/dir/index.php?do=Rules", in index.php you can look at $_GET['do'] or $_REQUEST['do'] to see the value of do ($_REQUEST is a combination of form fields and url fields, but unless you're submitting a form it doesn't matter which one you look at).
The vbulletin code has a function called clean_gpc() that gets the values and makes sure they are the right type, then puts them in the $vbulletin->GPC[] array. You can look at any of the vbulletin scripts to see how that's done. Hopefully I've tried to answer the right question. |
#3
|
||||
|
||||
You can see an example of vbulletin using $_REQUEST['do'] in the profile.php page and many other default vbulletin pages.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|