FAQs
| Browse in : |
All
> FAQs
> PostNuke Development |
- I am trying to write an upgrade function for [modulename] and it failed, but now the module is registered with the new version number. How do I change the registered version number so that I can test my script?
- On converting a phpNuke module: how do I get it to see the global.php file in lang/eng?
- When I install [module], it does not create the tables for the module but it does indicate successful installation. What is wrong?
- When should I use a Radio button vs. a Checkbox?
- Why does my site redirect the browser to the index page of the site when I try to access the admin link for [modulename]?
- Why don't my SQL statements display the fields or tables named?
I am trying to write an upgrade function for [modulename] and it failed, but now the module is registered with the new version number. How do I change the registered version number so that I can test my script? by 2
Change the version listed in the pnversion.php file for the module to the previous version and regenerate the module list. After upgrading the module, it will have the previous version number. Changing the version number back to the new one again will enable you to try running the upgrade script again.
On converting a phpNuke module: how do I get it to see the global.php file in lang/eng? by 2
Make sure that at least one of the module files (possible each display function) calles modules_get_language(). That function needs to know the value of $ModName to get the language constants correctly.
When I install [module], it does not create the tables for the module but it does indicate successful installation. What is wrong? by 2
Most likely, [module] has a syntax error somewhere. To tell for sure, the quickest way is to edit your site's root/modules/Modules/pnadminapi.php file and take the \@\ off the beginning of the lines that include the initialized module's pninit.php file.
When should I use a Radio button vs. a Checkbox? by 2
Radio buttons are used interchangeably with dropdown fields. Each allows the form submitter to choose from a list of options. The the list of options is binary (yes|no), it is better to use a checkbox instead of a radio button.
Why does my site redirect the browser to the index page of the site when I try to access the admin link for [modulename]? by 2
Check the entry for [modulename] in the modules table. The [type] field must be set as 2 in order to access the admin API for compliant modules. Sometimes, during module list regeneration, a module may be set to [type] of 1, which causes the root index.php to utilize older module call methods.
Why don't my SQL statements display the fields or tables named?
If you encounter SQL statements that do not translate pntables data, it is because the information for the tables was not loaded before pntables was built. Check your code. In many cases, the issue is caused by not calling pnModAPILoad for the appropriate module before assigning pnDBGetTables to pntables.