Hey :) I'm trying to make my first module. But for some reason the module wont install. What's wrong with my coding? I'm in a reaaally early programmer state :D
I'm trying to get the install script to install two tables, example_characters and example_genres.
Pnint.php;
pntables.php;
I really hope someone can help.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- 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
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 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
Newbie help
-
- Rank: Registered User
- Registered: Sep 12, 2002
- Last visit: Mar 23, 2009
- Posts: 47
-
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
Jeanie
for some reason the module wont install.
This isn't enough information. what errors are you receiving? -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
First impression is that your other functions tables' names doesn't match thoses of your pntables function, should be :
Code
function Example_pntables()
{
$pntable = array();
$Example = pnConfigGetVar('prefix') . '_example_characters';
$genres = pnConfigGetVar('prefix') . '_example_genres';
$pntable['example_characters'] = $Example;
$pntable['example_genres'] = $genres;
$pntable['example_characters_column'] = array('tid' => $Example . '.characterid',
'catid' => $Example . '.categoryid',
'number' => $Example . '.charname');
$pntable['example_genres_column'] = array('
genresid' => $genres . '.characterid',
'genres' => $genres . '.categoryid');
return $pntable;
}
When you have such a problem, printing the SQL queries is a good debugging method.
Maybe your code have other problems, but this one was this first one that I spotted.
--
Visit my live reef aquarium.
My Amazon wish list. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jun 17, 2005
- Posts: 1
Dear PostNuke developers,
I've just setup my company web site based on PostNuke, my boss was delighted with all the potential of PostNuke. But a new chalange was just arrive: I need to create a module that makes a query to a new table with 4 fileds (client, status, contract, email) macthing the email with the user email. to populate this new table I already have a VB6 application. My question is: is there any step by step manual? I try to use the example module, but I'm just a systems technician. Help please.
EG
- Moderated by:
- Support
