Ok...
I have completely coded my own module. It is called pnComic, and allows for the uploading, editing, displaying and deleting of a webcomic...
In this module I have ALL of the code pretty much finished. I have even gone in and started cleaning up and commenting out the code even better.
Well, in the middle of all this, I decided I would start getting my first.php block designed. I have dubbed it dailyblock for displaying the most recent comic uploaded. Now then, when I go into ADMINISTRATION -> BLOCKS -> ADD NEW BLOCK I see it added into the list...
It shows up as
pnComic/
But that is it... When I create it, I set it as a CENTER block... and when I visit HOME I get:
Unknown blocktype: dailyblock!
This block doesn't seem to exist. Please check corresponding blocks directory.
Is there a certain way that you set up a Modules blocks? Some esoteric incantation I am missing, or did my Module Designers Guide have the foreward by Cthulhu ripped out?
Help me Mr. Popeil... I'm in trouble... Need your assistance on the double...
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink
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« 10:33 PM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- 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
The block for my module isn't working...
-
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
-
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
I found the answer...
Apparently, if your block has functions with names like:
function modulename_thisblock_init()
Then you must name your block file: this.php
You WOULD think this would be listed SOMEWHERE in the documentation... But noooooooo....
Thanks tho... Everything works now...
Now I am trying to implement NEXT and PREV comics as buttons...
Peace!
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 379
- Moderated by:
- Support
