1
happierr
How can I wrap a few php pages into xoops?
  • 2005/3/12 15:12

  • happierr

  • Just popping in

  • Posts: 26

  • Since: 2004/8/26


I have 4 php pages that query a database for work. They are just informational, but right now they are just out there by themselfs.

I want to make them a "modual" within xoops... Is there an easy wat to do this? No real need for a admin area, I just want the pages to be "in" xoops...

THANKS!

2
rowdie
Re: How can I wrap a few php pages into xoops?
  • 2005/3/12 17:35

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


At the top of the page use this:
include(XOOPS_ROOT_PATH."/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");


[Your page content goes here...]


At the bottom of the page use this:
include(XOOPS_ROOT_PATH."/footer.php");


taken from FAQ: can I include my own html pages in XOOPS?

If you want the pages to appear in the main menu, as if they were modules, follow the instructions in the mypage FAQ

Login

Who's Online

131 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

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

Latest GitHub Commits