1
marckd
module creation tutorial
  • 2008/9/22 19:09

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


hello! and before you tell me to look in this site for the tutorials, etc... I had, and some of the links seem dead, and same goes when looking in google

can you recommend me a good and complete tutorial? also if structure automaization software would be nice, or something like that

thanks in advance1

2
Mamba
Re: module creation tutorial
  • 2008/9/22 19:26

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Which links were dead, so we can fix them?

In the meantime check this one
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
iunderwood
Re: module creation tutorial

The Kaotik tutorials are pretty good, but one thing I've found is that they try to do too much stuff at once, which can be difficult to manage if you're new to module development.
++I;
Resized Image

4
marckd
Re: module creation tutorial
  • 2008/9/23 1:29

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


thanks for that! seems nice at first glance

https://xoops.org/modules/smartfaq/faq.php?faqid=172
here there are some links that refeer to nowhere

5
marckd
Re: module creation tutorial
  • 2008/9/24 19:06

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


0k, I have learnt the basics! but how do I create the admin section??

I managed to restrict the access just for the admin, but I can't manage to put the left module menu nor the top there, I am using
require_once '../../../include/cp_header.php' ;

but can't see it, anyone can help me?

thanks

6
zyspec
Re: module creation tutorial
  • 2008/9/24 20:35

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


There's still a few things you'll need to do...

1) Modify your module's ./xoops_version.php file to let XOOPS know you have an admin section for the module. Something like:
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";

where admin/index.php has the main admin code. The admin/menu.php tells XOOPS what menu options are available for your module. It's easiest to view an existing module to get the idea of how this works.

2) In your admin/index.php file you'll need to add
xoops_cp_header();
before the code you want to display and
xoops_cp_footer();
after your code.

Hopefully this helps guide you in the right direction.

7
marckd
Re: module creation tutorial
  • 2008/9/25 17:15

  • marckd

  • Just popping in

  • Posts: 86

  • Since: 2006/3/16


awesome! that did the trick! :)

thank you zyspec

Login

Who's Online

380 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 380


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