The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I have a .php file with that code. My problem: if I go to file.php?do=xxx.. I see the same that's on file.php. This is the code I'm using on that file:
Code:
if ($_REQUEST['do'] == 'xxx')
{
eval('print_output("' . fetch_template('mytemplate') . '");');
}
|
|
#2
|
||||
|
||||
|
I dont understand what you mean, what exactly do you get ?
|
|
#3
|
||||
|
||||
|
try $_GET['do'] instead
|
|
#4
|
||||
|
||||
|
No, to reply to both: I get the same page I have on file.php.
Both with REQUEST and with GET. PS: I have used this to create my page: https://vborg.vbsupport.ru/showthread.php?t=62164. |
|
#5
|
|||
|
|||
|
You probably have another print_output at the end of the page right?
|
|
#6
|
||||
|
||||
|
Yes, I have this code:
Code:
$navbits = array();
$navbits[$parent] = 'My page title';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('mytemplate') . '");');
if ($_GET['do'] == 'faq')
{
eval('print_output("' . fetch_template('mytemplate_faq') . '");');
}
Solved: Code:
if ($_GET['do'] == 'mypage')
{
eval('print_output("' . fetch_template('page_test_1') . '");');
}
else{
eval('print_output("' . fetch_template('page_test') . '");');
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|