18
I'm not using templates.
I have setup a php with the normal, mainfile,header, and footer files. All this works ok. Now I want to include a page at the bottom which I have done like this:
include XOOPS_ROOT_PATH."/modules/weiz_cash/users_page.php";
include XOOPS_ROOT_PATH."/footer.php";
In the users_page.php file I have the following:
<?
if ($xoopsUser) {
echo $xoopsUser->getVar("uname"); echo"Cash Investments<br>";
} else {
echo "Anonymous User"; echo "Cash Investments<br>";
?>
Now when I go to display the page I loose my header and footer pluse the content of the second page.
I have the same bit of code in the main page to display user name, is this the problem?
Thanks in advance