Where do I write which blocks I want a module to have?
Edit: I have come a bit further, the block is there but it says "Unknown blocktype", how do i change this?
edited by: runekinn, Apr 11, 2007 - 12:36 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
Add blocks to module
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Block control configure the blocks to display in each modules
at the admin like, but the message "Unknown blocktype"
means to me that there is a little error in the block code...
This block is yours?
or is a Core Block?
--
- Mateo T. -
Mis principios... son mis fines -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Apr 11, 2007
- Posts: 3
Yes, it's my own block and my own module. I'm trying to learn postnuke so that I can change a module called pnTresMailer into something I need for a project. So I thought writing my own module would be a good start, but I'm having trouble finding the information I need. It's a shame Introduction to Module Writing in the Wiki is just an empty page.
EDIT: I don't know if I should post these questions in another thread, but until someone tells me otherwise I'll stick to this(it's related). I'm looking at the pnlogin block in the pnRender module and on line 45 it says "function pnRender_pnloginblock_display($row)", where does the variable $row come from?
edited by: runekinn, Apr 12, 2007 - 12:57 PM -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: May 18, 2010
- Posts: 985
oops, I completely misunderstood this one... I thought you were looking for certain blocks to show up in a module.
Sorry about that.
BTW, I think pnTresMailer isn't a good start, I think that module is not API compliant.
- Igor -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
About your edited question
I'm not sure
but it can be an API argument with the block info
when it calls to blocks($side) in pnBlocks.php
See te code, and you will find in pnBlockShow function in /includes/pnBlocks.php
this: return $displayfunc($blockinfo);
and in your case displayfunc of the block is: pnRender_pnloginblock_display
and blockinfo is &blockinfo[title], &blockinfo[content], &blockinfo[bid], etc.
--
- Mateo T. -
Mis principios... son mis fines
- Moderated by:
- Support
