1
Okay heres my problem. I currently run a Call of duty clan. I am trying to intergrate a html based web site, generated by a program called
combatstats, seamlessly into the clans XOOPS site.
So far I have manged to get the index.hmtl page to work this way by inserting
$prepend_dir=XOOPS_ROOT_PATH.($SCRIPT_FILENAME);
if(file_exists("$prepend_dir/mainfile.php"))
include("$prepend_dir/mainfile.php");
elseinclude("../../mainfile.php");
if(file_exists("$prepend_dir/header.php"))
include("$prepend_dir/header.php");
elseinclude(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
$prepend_dir=dirname($SCRIPT_FILENAME);
$mydirname = basename( dirname( __FILE__ ) ) ;
?>
at the begining as well as
$prepend_dir=XOOPS_ROOT_PATH.($SCRIPT_FILENAME);
if(file_exists("$prepend_dir//footer.php"))
include("$prepend_dir//footer.php");
else
include(XOOPS_ROOT_PATH."//footer.php");
include XOOPS_ROOT_PATH.'/include/comment_view.php';
?>
at the end. Putting the original HMTL code in between. I then made the index.html file into index.php
This made the index now look like it belongs to the XOOPS site.
Where my problem begins tho, is when one of the links on the page is selected it opens the link in a blank page, therefore getting rid of all things XOOPS
What I would like to know is if there is away of having the links open within xoops? without having to trowel through all the html pages rescripting them, becouse the html pages will be updated regualy using the combatstats program and as more people use our server more web pages will be made
Any ideas would be appresiated as I've been at this for 3 days now and have run out of ideas, which isn't hard as Im a PHP NOOB