pianoman993
01-03-2009, 01:52 AM
Hello there Vbulletin experts I have a bit of a problem. I have a page that has $_GET variables in the URL. The problem is that Vbulletin is not recognizing that there are variables there so for instance if my script says print $_GET['variable'] I get nothing. Here's what I got.
I have a custom template named SOUND_SEARCH
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'SOUND_SEARCH'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'TEST',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = array();
$navbits[$parent] = 'Sound Search';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('SOUND_SEARCH') . '");');
?>
A form that submits data
<div style="border:1px solid #333;padding:15px;">
<form name="search" method="get" action="soundsearch.php">
<input type="text" style="width:110px;" name="search_value" /> in
<Select name="category">
<Option value="songs">Songs</option>
<Option value="artists">Artists</option>
</Select>
<input type="submit" name="search" value="search" />
</form>
</div>
A page that receives that data ( the page that will not read the $_GET data )
<?php
echo $_GET['search'];
?>
So basically if my url was www.mysite.com/index.php?variable=helloworld
and I had a template that included a php page that had this:
<?php echo $_GET['search']; ?>
I would get nothing instead of helloworld...
Anybody have any ideas?
Any help would be greatly appreciated, thanks!
- pianoman993
I have a custom template named SOUND_SEARCH
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'SOUND_SEARCH'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'TEST',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = array();
$navbits[$parent] = 'Sound Search';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('SOUND_SEARCH') . '");');
?>
A form that submits data
<div style="border:1px solid #333;padding:15px;">
<form name="search" method="get" action="soundsearch.php">
<input type="text" style="width:110px;" name="search_value" /> in
<Select name="category">
<Option value="songs">Songs</option>
<Option value="artists">Artists</option>
</Select>
<input type="submit" name="search" value="search" />
</form>
</div>
A page that receives that data ( the page that will not read the $_GET data )
<?php
echo $_GET['search'];
?>
So basically if my url was www.mysite.com/index.php?variable=helloworld
and I had a template that included a php page that had this:
<?php echo $_GET['search']; ?>
I would get nothing instead of helloworld...
Anybody have any ideas?
Any help would be greatly appreciated, thanks!
- pianoman993