1
Bowromir
PHP Based script/site into Xoops ?
  • 2004/10/8 13:38

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Hi,

I have a rather difficult question I hope someone has enough knowledge to help me out here.

I want to intergrate a php based script into xoops. So a normal non-xoops related php script. There are some modules like tinycontent en freecontent available but what do they do exactly ? Can you just copy the php code into them and then it will all be sorted ? Or should you integrate the non-xoops pages into the site with i-frames ?? which is the best ?? or are there better options ?

Thanks for your help ;)

2
ajuden
Re: PHP Based script/site into Xoops ?
  • 2004/10/8 14:12

  • ajuden

  • Just popping in

  • Posts: 87

  • Since: 2003/4/17


You may want to check out this link:
Xoops HTML Pages. I know that you are not wanting to insert html into a XOOPS page, but putting a php script into a XOOPS page works on the same basic idea. All you really need to do is create a file like this:

include("path/to/mainfile.php");
//This line includes the XOOPS header at the top
//which includes the navigation bars, etc.
include(XOOPS_ROOT_PATH."/header.php");

//The content of your original html file goes here!!
//You can actually enter your php text in here,
//or you could include your file directly like this...
//include("yourfile.php");

//This includes the XOOPS footer at the bottom of the page
include(XOOPS_ROOT_PATH."/footer.php");
?>

Login

Who's Online

226 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 226


more...

Donat-O-Meter

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

Latest GitHub Commits