1
basza
include page help
  • 2005/7/28 21:46

  • basza

  • Just popping in

  • Posts: 73

  • Since: 2004/6/21


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

2
Gambero[removed]
Re: include page help

Can you please provide a link because I would really like to see how does it look without templates ?

Thanks!

3
basza
Re: include page help
  • 2005/7/28 22:22

  • basza

  • Just popping in

  • Posts: 73

  • Since: 2004/6/21


Sorry I can't give you a link due to the fact that I have kinda sorted it out, and have mylook again.

It's only the module files that don't work of smarty template files. If you want I can still send a link here but I have a long way to go on site.

Login

Who's Online

235 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits