I have changed the content.functions.php file.
I made a user defined tag 'stat' stated this:
Code: Select all
global $gCms;
define("_BBC_PAGE_NAME", $gCms->variables['page_title']);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
But nothing gets registerd in the bbclone. I have tested it with a file and it works all right. I also tested with:
Code: Select all
define("_BBC_PAGE_NAME", "Test");
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
But still no reaction..
Does the php render different from cms or what should I do? I THINK I have tried everything(absolute path, slashes on different place and so on).
Thankful for any help I can get.
/ Gnolen