Topic: Simple module example
car-li
avatar
Freshman
Freshman
Posts: 45

Posted:
13.Apr 2007 - 19:19

Ok like in title I need some realy simple module example. I have some module that work but it's all in one file and don't have eny init or. admin functions for naw.

Example is here is simple picture game that is hided behind pixles (biger) and after day pixls geting smaler, and picture is more clean. Users take a gues about what's on the picture, and user who add picture have button for judge if answer is correct. Next pictur is added by user who add correct answer.

http://www.idrija.ws/skrita.html <- Sory for slv language ... but I don't have this in english.

I wood like to add this in construction that should it be ... that's whay I need some realy simple example ... for begining. :)



edited by: car-li, Apr 13, 2007 - 02:22 PM
AmmoDump

Team Member
Team Member
Posts: 3024

Posted:
13.Apr 2007 - 20:48

http://community.postnuke.com/Downloads-req-viewdownload-cid-3.htm

--
David Pahl
Zikula Support Team
videokid
avatar
Professional
Professional
Posts: 924

Posted:
13.Apr 2007 - 22:59

It's a dead link icon_frown

Quote


Not Found
The requested URL /sf/pn-modules/Example_0750.zip was not found on this server.


- Igor

--
Have a nice day
zikulapro.be is currently running
Zikula 1.0.2
AmmoDump

Team Member
Team Member
Posts: 3024

Posted:
13.Apr 2007 - 23:04

Well, it comes with the PN distribution anywho...

html/modules/Example

--
David Pahl
Zikula Support Team
car-li
avatar
Freshman
Freshman
Posts: 45

Posted:
14.Apr 2007 - 00:10

Yee but that isn't simple ... that example have all files and blocks and so one. I need to see if there is some module allready that is small so I can see how things goes :) In Example is hard to get all things together for me.





edited by: car-li, Apr 13, 2007 - 07:57 PM
AmmoDump

Team Member
Team Member
Posts: 3024

Posted:
14.Apr 2007 - 01:34

http://community.postnuke.com/Wiki-DeveloperDocs.htm


--
David Pahl
Zikula Support Team
pnDev
avatar
Helper
Helper
Posts: 448

Posted:
14.Apr 2007 - 01:48

Example is quite straightforward if you read the docs to get a basic idea of whats going on first.

Code

/**
 * the main user function
 *
 * This function is the default function, and is called whenever the module is
 * initiated without defining arguments.  As such it can be used for a number
 * of things, but most commonly it either just shows the module menu and
 * returns or calls whatever the module designer feels should be the default
 * function (often this is the view() function)
 *
 * @author       The PostNuke Development Team
 * @return       output       The main module page
function Example_user_main()

 */


The comments inside the source are excellent. The module starts at above function. Goodluck.

--
pnDev.com ~ featuring the PostNuke paid services forum
AmmoDump

Team Member
Team Member
Posts: 3024

Posted:
14.Apr 2007 - 01:54

Openstar Module Generator:
http://openstar.postnuke.com/index.php?module=v4bGenMod&func=instructions

--
David Pahl
Zikula Support Team
car-li
avatar
Freshman
Freshman
Posts: 45

Posted:
14.Apr 2007 - 10:21

Geee sory about my english, my english writing is realy bad :).

Yee well I know that Example have that help and so one, but for ppl that doesn't know this framework it's prity useless. Ok not completly useless but it take a lot of time :)

Thanks for all help, I will check that generator ... thanks.