Hi Lynne,
I'm a little confused
I created a plugin and inserted this is the PHP Code box:
PHP Code:
// set name of XML file
$file = "http://example.com/example.ashx?GamerTag=$bbuserinfo[field#]";
// load file
$xml = simplexml_load_file($file) or die ("Unable to load XML file!");
// access XML data
echo "Example 2: " . $xml->PresenceInfo->Example2 . "<br />";
echo "Example:" . $xml->PresenceInfo->Example . "<br />";
Then for the hook location I put the one I made "custom_1". Inside the test template I just have the hook and on the test.php I have:
PHP Code:
($hook = vBulletinHook::fetch_hook('custom_1')) ? eval($hook) : false;
Below the
PHP Code:
require_once('./global.php');
So, the test.php file would look like this at the bottom:
PHP Code:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/class_bbcode.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'test';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('test') . '");');
($hook = vBulletinHook::fetch_hook('custom_1')) ? eval($hook) : false;
?>
Unless what you are saying is put the php I have in the php code box in the php file and then put the variable in the php code box and have the hook in the php file? (Sorry if it sounds all mixed up

)