The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
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 Code:
<?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') . '");'); ?> Code:
<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> Code:
<?php echo $_GET['search']; ?> and I had a template that included a php page that had this: Code:
<?php echo $_GET['search']; ?> Anybody have any ideas? Any help would be greatly appreciated, thanks! - pianoman993 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|