Hi all.
I've benefitted from this page for quite some time now. I recently upgraded to 3.8.2 and now I'm having problems.
I have an upload applet inside a template called "upload" and I called the php file upload.php - I also added a template "uploaded" which is supposed to be called after the applet runs.
Here is my PHP file.
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'upload'); // 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(
'upload',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'DJ Mix Upload';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('upload') . '");');
if ($_REQUEST['do'] == 'uploaded')
{
eval('print_output("' . fetch_template('uploaded') . '");');
}
?>
going to the upload.php?do=uploaded does NOT pull the uploaded template at all and goes back to the main upload template.
I've tried to add 'uploaded', to globaltemplates and actiontemplates but still nothing
Typing in upload.php?do=uploaded still shows the original template.
Any help would be helpful.
Thanks.