The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How do I create a page within a page for example: www.example.com/example.php?do=news
Or something like: www.example.com/example.php?action=news I really need this soon so any help appreciated. |
#2
|
|||
|
|||
![]()
Use php $_GET['do'] and $_GET['action'] to get the query string.
Use an if condition...if ($_GET['do'] == 'something') { DO THIS } else { DO THIS } etc Of course, this would be done in php. |
#3
|
|||
|
|||
![]() Quote:
I tried this many times without anything at all working Quote:
|
#4
|
|||
|
|||
![]()
$_REQUEST is a very different function than $_GET.
Not sure what exactly you want to do with the code, so I won't tell you want to evaluate inside or anything...but to do something based on the query string use the code PHP Code:
|
#5
|
|||
|
|||
![]() Quote:
PHP Code:
|
#6
|
|||
|
|||
![]()
You leave the '?' out of the $_GET command.
I advise you ask someone to do this for you, as you don't know PHP. You cant use bb code in php, nor html (directly). Although a relatively simple task, would take awhile to explain from scratch, especially when unaware of your intentions. I would advise checking out some php tutorials. |
#7
|
||||
|
||||
![]()
Don't put the question mark in the if statement ('newsmain1' only) Try your if statement with that correction.
|
#8
|
|||
|
|||
![]() Quote:
And that's about it so I'm pretty sure somebody has a code for that. |
#9
|
|||
|
|||
![]() PHP Code:
Or fetch a template instead. |
#10
|
|||
|
|||
![]() Quote:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|