| Topic: | Simple module example |
|---|---|
|
car-li
Freshman
Posts: 45 Posted: |
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
Posts: 3024 Posted: |
http://community.postnuke.com/Downloads-req-viewdownload-cid-3.htm -- David Pahl Zikula Support Team |
|
videokid
Professional
Posts: 924 Posted: |
It's a dead link Quote
- Igor -- Have a nice day zikulapro.be is currently running |
|
AmmoDump
Team Member
Posts: 3024 Posted: |
Well, it comes with the PN distribution anywho... html/modules/Example -- David Pahl Zikula Support Team |
|
car-li
Freshman
Posts: 45 Posted: |
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
Posts: 3024 Posted: |
http://community.postnuke.com/Wiki-DeveloperDocs.htm -- David Pahl Zikula Support Team |
|
pnDev
Helper
Posts: 448 Posted: |
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
Posts: 3024 Posted: |
Openstar Module Generator: http://openstar.postnuke.com/index.php?module=v4bGenMod&func=instructions -- David Pahl Zikula Support Team |
|
car-li
Freshman
Posts: 45 Posted: |
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. |