I didn't have any luck in the "Post Install Help" Forum, so I thought I'd try here.
I have just started testing nuke for use on my site but need some additional help with Module Development.
At first glance I would assume that a module is as simple as this:
Code:
<?
if(!eregi("modules.php", $PHP_SELF)) {
die("You can't access this file directly")
}
if(!isset($mainfile)){
include("mainfile.php");
}
include("header.php");
***INSERT MY CONTENT HERE***
include("footer.php");
?>
Now, if it really is that simple then I am further ahead than I think I am. What I need to know is if it is exactly this easy to create modules and if all I have to do is creat an "index.php" in /modules/mymodulename and call it a day?
Okay, now in addition to that, what if I have multiple pages that I want to display as part of a single module? Can I create a "Menu" Block and then link to the seperate pages in the module? If so, what would the link look like? http://mysite.com/modules.php?name=my_module ... how does it end to get to 1 of the how ever many pages in the module?
And lastly... Can someone explain functions just a lil better than Guide posted here at Nuke Cops? How are they actually created and used? Where are they stored?
I appreciate any help that I get on this.
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Tue May 13, 2003 9:03 am
please read the idiots guide, it has information on modules development in there.
AI
Dixen Nuke Soldier
Joined: May 07, 2003
Posts: 24
Posted:
Wed May 14, 2003 12:27 pm
*nods* Did that before I posted. Whomever wrote the Guide didn't do a very good job actually explaining the how and why...
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Wed May 14, 2003 12:30 pm
whomever eh? whomever would be me (it does have my name plastered all over it and on the copyright line saying I wrote it)
It was there giving all the basic information. Yes, it's more technical in that section (and in hte blocks development section) than any other section in the guide, but modules development really isn't a task for people who can't grasp the basics of PHP fairly quickly.
The modules development section assumes that people will go away and possibly lookup the PHP documentation too for reference
AI
Dixen Nuke Soldier
Joined: May 07, 2003
Posts: 24
Posted:
Wed May 14, 2003 1:03 pm
*sighs* I meant no disrepect... but if I cannot understand what you have written then there is a significant problem with your documentation.
I program in 7 languages including C, Cobol, Pascal, RPG, Basic, and am quite verse with html, PHP, and MySQL.
I fully admit being a techie and could not document to save my life... but for the absolute life of me I just don't get your documentation in you Guide.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum