Hello..
I know that it has been alot of threads about how to make a own module, and I have read most of them.. And I have watched the documentation but still, I dont really understand how to do it. The pnRender makes my mind sick, I have no clue how to handle it. Can anybody help me, give som hints, post some really relevant documentation (I have read the Wiki like 10 times, so that isn't needed).
Thank you!:)
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- 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
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 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
- nestormateo responded to »Fillters in Clip« 24. 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
Making a module? (yes, another)
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
You should start with your programing background.. what is it?
I see you only registered today, how familiar are you with PN?
What do you want the module to do?
Compare the different modules out there, see how they function...
And of course just start somewhere... a module doesnt need pnrender to work.. so worry about that last.
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Dec 06, 2006
- Posts: 21
Thanks for answering. I am not familiar with PN, and I my programing background is nothing to cheer about. I know some basic PHP, and a little bit more c++. I have made my script work without PN, and the script is like a trivia with some questions and you click some radiobuttons and see how many correct answers you got. It all uses a mysql database. But its no complicated stuff, I just want it on my PN page, and I want admins to be able to add more questions etc:) -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Well the best advice, I can give is start with the example module. And start making changes to other modules to understand the functionality. Never made my own module, but have modified plenty at one time or another.. sometimes it is easy.. sometimes not.
Anyway good luck.
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Dec 06, 2006
- Posts: 21
I really think its weird..:>
Anyways, question:
If I put up some files and name them like pnuser.php, index.php etc but DON'T have any function named "main" it complains about it, and if i use the main function I can not echo from there, only return. Since I have many things to return it doesn't work for me because I can't return specefic things in like a whileloop..
So how come that like the News module, that don't need the main function to work, and more than that he can also echo. I even tried to copy the whole News sourcecode, but was not able to do it even with that?
I apologize for bad spelling and grammar. Thank you
-
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 111
Read this for how to return your data via pnRender.
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
