2
Altered,
I'm not sure if that line is causing the problem or not, but there is another method you could try that might work around this issue. What you can do is download the
PageWrap module.
Change the folder name to whatever you want, like "contact".
Open the xoops_version.php file and change the $modversion['dirname'] = "pagewrap"; to point to the new folder name, like $modversion['dirname'] = "contact";.
Then open index.php and add your include statement, like so.
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
include(XOOPS_ROOT_PATH."/yourscript.php");
include(XOOPS_ROOT_PATH."/footer.php");
?>
Then install the module like you would any other. This should fix the problem because the script will be registered as a module.
After that, just make sure the module is not cached and you should be just fine.
HTH.
James
Insanity can be defined as "doing the same thing over and over and expecting different results."
Stupidity is not a crime. Therefore, you are free to go.