1
GadgetMn
Hello World Module
  • 2006/10/28 0:00

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Any chance of a simple "Hello World" module that developers could use as a framework for craeting a new module?

This would be especially useful for developers like me who, while know how to program, need to understand how XOOPS hangs together.

The new docs are a good start, but there is nothing like a well commented piece of code to walk through

This module should:
* Be installable
* Create a table
* Include a template
* Include a block
* Include a menu
* Include an admin section
* Be uninstallable

For example, if the table simply had a text column with "Hello World!" in it, the template and block would render it accordingly and the admin would allow the text to be changed.

Thanks in advance,

GadgetMn

2
WarDick
Re: Hello World Module
  • 2006/10/28 0:54

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


This module should do what you want XBS_ModGen
Urging XOOPS to be the Best It Can Be.
Richard......

3
chippyash
Re: Hello World Module
  • 2006/10/28 9:02

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


WarDick is right, Modgen is exactly what you want. Read the extensive documentation that comes with it first though.

ModGen will create a new shell module for you play with and do what you want. It creates all the necessary files for both user side and admin side pages.

4
GadgetMn
Re: Hello World Module
  • 2006/10/28 11:05

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


This does look like what I have been looking for. I've just downloaded and will give it a try over the w/end.

Shame the name wasn't more meaningful "ModGen" has so many different meanings.

Thanks,

GadgetMm

5
chippyash
Re: Hello World Module
  • 2006/10/28 12:47

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


I'm open to suggestions for names

6
m0nty
Re: Hello World Module
  • 2006/10/28 14:13

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


'skeleton mod' seems appropriate ;)

7
GadgetMn
Re: Hello World Module
  • 2006/10/28 18:18

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Even "Module Generator" would be better than ModGen.

Cheers,

GadgetMn

PS. Having problems installing CDM "Too long comment for table 'xoops_cdm_list'". Will report on your support site.

Login

Who's Online

460 user(s) are online (369 user(s) are browsing Support Forums)


Members: 0


Guests: 460


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