Hello,
First nice CMS you got here
Very nice, simple to use, and sweet!!!
Here's my issue. I'm the project admin for Jinzora, a web based media (mainly MP3's) jukebox, similar to Zina and Netjuke (but I think much better
I've had a request to port it to Xoops, and after looking at XOOPS (today was the first time I'd ever heard about it) I decided that would definetly be a good idea, so here I am...
I've read through the module dev quick start, and completed that just fine, but I'm having problem porting my module. Here's what I need to do:
* I need to have a function OPEN the XOOPS header
* I need my code to run
* I need to have a function CLOSE the XOOPS footer
So here's a small sample I tried...
// Let's open the header
openXoops();
// Let's output some stuff
echo "HERE";
// Let's close the footer
closeXoops();
// This function opens the header for the XOOPS CMS system
function openXoops(){
require('../../mainfile.php');
// Include the page header
require(XOOPS_ROOT_PATH.'/header.php');
}
// This fucntion closes the footer for the XOOPS CMS system
function closeXoops(){
// Include the page footer
require(XOOPS_ROOT_PATH.'/footer.php');
}
I installed it, which went fine and created my menu entry, then I went to the page and all I get is:
Fatal error: Call to a member function on a non-object in C:\Program Files\Apache Group\Apache2\htdocs\xoops\kernel\configitem.php on line 286
My app will not use any database table so I don't need to do anything there. One thing to note is that if I do NOT use functions, meaning all the above code just happens straight it works just fine. If I call into functions it dies...
Please help!?!?!? I'd really like to port my module (and write a Postnuke - to - XOOPS converstion guide). I really think the XOOPS community would dig my module
Thanks and sorry for the long post...
Ross
ross@jinzora.orghttp://www.jinzora.org