xoops forums

Marco

Home away from home
Posted on: 2006/2/20 22:53
Marco
Marco (Show more)
Home away from home
Posts: 1256
Since: 2004/3/15
#1

How to build your own module ?

Hy,

I'm sure many of us will be happy to see such a documentation.
I'm very pleased to push it back to community.
Thanks to TheCat and Hsalazar for their hard past work on this.

Be carefull, some parts have to be updated :
1. The forms part
foreach ($_POST...)(
$($k)=$v;
is not a secure code.Check QA best practices (Checklist) for that.

2. The forms part again
Sanatization functions used are depreciated, please replace them by actual ones --> check dev wiki
http://dev.xoops.org/modules/phpwiki/ ... KernelDeprecatedFunctions

Don't hesitate to propose some enhancements and corrections, comments are appreciated (Skalpa will push some new documentation as well with Xoops2.3).


Have fun

Marco
QA Team
Do synergy or die.
Posted on: 2006/2/21 0:07
smdcom
smdcom (Show more)
Posts: 901
Since: 2004/4/27
#2

Re: How to build your own module ?

Thanks for sharing Marco!

kurak_bu

Quite a regular
Posted on: 2006/3/10 16:57
kurak_bu
kurak_bu (Show more)
Quite a regular
Posts: 342
Since: 2005/9/5 1
#3

Re: How to build your own module ?

thanks for this, i try to make my own simple module.

kris_fr

Theme Designer
Posted on: 2006/4/24 21:58
kris_fr
kris_fr (Show more)
Theme Designer
Posts: 1009
Since: 2005/12/31
#4

Re: How to build your own module ?

Thanks Marco and Hervet for this good job

kris_fr

Theme Designer
Posted on: 2006/4/24 22:01
kris_fr
kris_fr (Show more)
Theme Designer
Posts: 1009
Since: 2005/12/31
#5

Re: How to build your own module ?

Thanks Marco and Hervet for this good job

Quality ! Quality !
Posted on: 2006/4/25 9:40
jensclas
jensclas (Show more)
Posts: 2089
Since: 2004/10/31
#6

Re: How to build your own module ?

I just tried checking this doc...am looking for some stuff - definitions for the glossary in particular - discovered the file needs to be saved to pc then opened...won't simply open. (didn't have what i am looking for either )

Marco

Home away from home
Posted on: 2006/4/25 9:44
Marco
Marco (Show more)
Home away from home
Posts: 1256
Since: 2004/3/15
#7

Re: How to build your own module ?

yep, CBB1.16a offers that fix
Do synergy or die.

genetailor

Just popping in
Posted on: 2006/4/29 9:13
genetailor
genetailor (Show more)
Just popping in
Posts: 1
Since: 2006/4/29
#8

Re: How to build your own module ?

So perfect job!
thanks Marco!

frankblack

Just can't stay away
Posted on: 2006/4/29 10:45
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#9

Re: How to build your own module ?

The PDF-file needs some updates I think. queryF is not needed when it comes to SELECT statements (only query). If possible queryF should be avoided.

chippyash

Friend of XOOPS
Posted on: 2006/9/29 8:37
chippyash
chippyash (Show more)
Friend of XOOPS
Posts: 501
Since: 2004/1/29
#10

Re: How to build your own module ?

The XBS Modgen module generator will do a good job of creating your module framework for you. Find it in the module repository

Regards
A