Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Module Developer's Forum?
  • Posted: 25.04.2004, 03:47
     
    dyksjare
    rank:
    Freshman Freshman
    registered:
     April 2004
    Status:
    offline
    last visit:
    29.04.04
    Posts:
    4
    Is there a module developer's forum somewhere?

    I am trying to create a new module based on the core 'Downloads' module; however, I cannot get my new module to read the pnTables.php file in it's directory. Where is the function which includes these pnTables files? It worked once during the pnInit process, but after that cannot find the table definitions
  • Posted: 25.04.2004, 06:11
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    If you are creating a module using the Downloads module that comes with .726 as a base then don't, it isn't API compliant. Look at the Example module or the Template module. Preferrably the Example module since that is the form all . 8 modules will be taking.

    -Chris
  • Posted: 26.04.2004, 06:18
     
    dyksjare
    rank:
    Freshman Freshman
    registered:
     April 2004
    Status:
    offline
    last visit:
    29.04.04
    Posts:
    4
    Hmm.

    Is there any information posted about what specifically about the Downloads module is not API complient? A lot of the functionality I require already exists in the downloads mod. I think I'm going to continue making a module based on downloads (with the addition of pninit, pntables, delete.php, etc.) as long as I can get it to include pnTables.php somehow.
  • Posted: 26.04.2004, 06:27
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    Pretty much everything between
    The file structure is not correct, the function names are not nessecarily correct, the file names are wrong.
  • Posted: 26.04.2004, 06:59
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    Nobody is going to stop you from creating a module using the Downloads module as a base. We're just warning you that the day may come (sooner than later) when your module no longer works. If you want to read in the table information then make a call to pnModDBInfoLoad($modname, $directory); Where $modname is the name of the module that you want to load the table information for and $directory is the directory where to find the module (ie. newdowloadmodule). NOTE: The directory parameter is optional, but will save you an extra database call if you can supply it.

    Your table data must be in the correct format and be in a file called pntables.php located in the root of your module tree. (i.e. modules/newdownloadmodule/pntables.php ).

    -Chris
  • Posted: 26.04.2004, 11:33
     
    Landseer
    rank:
    Developer Developer
    registered:
     January 2003
    Status:
    offline
    last visit:
    27.11.08
    Posts:
    851
    As a first step in module development you should go to docs.postnuke.com and see the Module Developers Guide. It will answer a lot of questions that may arise and will teach you to create API-compliant modules.

    Then grab the Example module (or Template module, but I'd prefer the first one) and start customizing it.

    Frank

    --
    "He is not dangerous, he just wants to play...."
  • Posted: 28.04.2004, 09:41
     
    dyksjare
    rank:
    Freshman Freshman
    registered:
     April 2004
    Status:
    offline
    last visit:
    29.04.04
    Posts:
    4
    Thanks all.

    Perhaps foolishly, I pushed on as this module is really quite a minor change in terms of functionality and UI from the core downloads module.

    I've released an alpha version via sourceforge and put together a small project page for it:
    http://www.shef.ca/projects/pnPublications

    I'll maintain this going forward and/or discontinue the project if this functionality is brought into the core in future releases.

    JD.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula