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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Simple module example
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Well, it comes with the PN distribution anywho...
html/modules/Example
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 37
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 -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
-
- Rank: Softmore
- Registered: Jul 16, 2004
- Last visit: Oct 21, 2009
- Posts: 406
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. -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Openstar Module Generator:
http://openstar.postnuke.com/index.php?module=v4bGenMod&func=instructions
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 37
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.
- Moderated by:
- Support
