1
I will have multiple XOOPS site (A, B and C). Each of these sites will include some pages that are going to be the same for each of the sites. So sites A, B and C will all include file.php. The reason for this is that if file.php changes, it will automatically be picked up by all of the sites.
Here’s the problem I am having. I want the pages to be included in Xoops. I’ve searched through these forums and found several solutions. I’ve modified the main menu template file to directly access the file and put the appropriate header and footers includes to wrap my html. I’ve also used TinyContent and created an item on the main menu also. Both work, kind of.
If I have the following file, the text between the
shows as expected within Xoops.
include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
WEBSITE TERMS OF USE AGREEMENT
AND
DISCLAIMER OF LIABILITY
include(XOOPS_ROOT_PATH."/footer.php");
?>
However, if I add an include statement under the tag as shown below to include the common text, the entire files shows up by itself (outside of Xoops). The include works because I see the text from the .inc file that sits on antoher server, but I lose the Xoops.
include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
WEBSITE TERMS OF USE AGREEMENT
AND
DISCLAIMER OF LIABILITY
include(XOOPS_ROOT_PATH."/footer.php");
?>
Hopefully, someone can point out the obvious to me. Thanks for any responses.
- The New Guy