The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Switches in pages
Im working on something for my own site and im just curious is all.
Basically i want to use 1 file lets call it wiki.php for example. Going by this thread: here i see and understand how to make the page itself. However i want to create multiple pages in one using templates. So lets say bob(example) goes to wiki.php and selects the option 1, the page stays on wiki.php but the page and url changes directly to: wiki.php?show=1 How would i go about doing this? I do not really want to make separate pages its easier if its all in 1 to be honest, any help would be appreciated. |
#2
|
|||
|
|||
The vbulletin scripts use the "do" to do exactly that. You really just have to write your script with something like:
Code:
if ($_REQUEST['do'] == 'page1') { // do stuff for page one } else if ($_REQUEST['do'] == 'page1') { // do stuff for page two } // etc and for instance if page 1 shows a menu, you just need to make the link href for the choices be something like "wiki.php?do=page2" (or if you want to submit a form, make the action "wiki.php" and include a hidden field with name 'do'). Of course if you want you can use 'show' for your parameter instead of do. |
#3
|
|||
|
|||
Thanks very much
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|