Greetings,
I had a problem on my [CYB - advance forum statistics]. I have vBSEO on my forum and made an extension of the statistics on the homepage. The plugin works properly at the home page but there's no url rewrite on the links.
Here's the code:
As you have noticed on the CYB STATISTICS OUTPUT, the echo is typed instead of print_output. Print_output causes the execution to stop after the eval.
The issue is only about the url rewrite.
Your help is greatly appreciated
.
I had a problem on my [CYB - advance forum statistics]. I have vBSEO on my forum and made an extension of the statistics on the homepage. The plugin works properly at the home page but there's no url rewrite on the links.
Here's the code:
PHP:
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'homepage');
// #################### GLOBAL CONNECTION ################################
$curdir = getcwd ();
chdir('/home/xxxxx/public_html/forums');
require_once('/home/xxxxx/public_html/forums/global.php');
chdir ($curdir);
// ################### 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(
'cyb_topstats_stats',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ################### CYB STATISTICS OUTPUT ##########################
eval('echo("' . fetch_template('cyb_topstats_stats') . '");');
The issue is only about the url rewrite.
Your help is greatly appreciated