The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
page within a page?
if i've got a page that does what it's meant to do, how do i go about making it have &page=whatever ?
would i need to enclose it all in a switch function or can i add some sort of if statement? |
#2
|
||||
|
||||
It really all depends how you want it to work, for example:
PHP Code:
|
#3
|
||||
|
||||
hmm, sorry a little confused, this is my first attempt at a vB hack really
basically i got a bunch of code on the page which calls how the main page looks but i wanna add main.php&page=rules would i just add that into the bottom of the main script? |
#4
|
||||
|
||||
You're being vague still.
The parameters in a URL, which are variables, can be used in php like this: PHP Code:
|
#5
|
||||
|
||||
Assuming you already have all the PHP in place to do the main page, all you would need is somthing like:
PHP Code:
|
#6
|
||||
|
||||
PHP Code:
|
#7
|
|||
|
|||
PHP Code:
|
#8
|
||||
|
||||
i thought i would've ended up doing something like that, thanks filburt
arghhh, i suck at php, this is what i tried PHP Code:
|
#9
|
||||
|
||||
*bump plea for help*
|
#10
|
||||
|
||||
You might want to remove that big eval(" ") around everything
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|