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

Dizkus

Bottom
Simple module example
  • Posted: 13.04.2007, 19:19
     
    car-li
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    01.12.07
    Posts:
    45
    Ok like in title I need some realy simple module example. I have some module that work but it's all in one file and don't have eny init or. admin functions for naw.

    Example is here is simple picture game that is hided behind pixles (biger) and after day pixls geting smaler, and picture is more clean. Users take a gues about what's on the picture, and user who add picture have button for judge if answer is correct. Next pictur is added by user who add correct answer.

    http://www.idrija.ws/skrita.html <- Sory for slv language ... but I don't have this in english.

    I wood like to add this in construction that should it be ... that's whay I need some realy simple example ... for begining. :)



    edited by: car-li, Apr 13, 2007 - 02:22 PM
  • Posted: 13.04.2007, 20:48
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2975
    http://community.postnuke.com/Downloads-req-viewdownload-cid-3.htm

    --
    David Pahl
    Zikula Support Team
  • Posted: 13.04.2007, 22:59
     
    videokid
    rank:
    Professional Professional
    registered:
     March 2003
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    901
    It's a dead link icon_frown

    Quote


    Not Found
    The requested URL /sf/pn-modules/Example_0750.zip was not found on this server.


    - Igor

    --
    Have a nice day
    zikulapro.be is currently running
    Zikula 1.0.2
  • Posted: 13.04.2007, 23:04
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2975
    Well, it comes with the PN distribution anywho...

    html/modules/Example

    --
    David Pahl
    Zikula Support Team
  • Posted: 14.04.2007, 00:10
     
    car-li
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    01.12.07
    Posts:
    45
    Yee but that isn't simple ... that example have all files and blocks and so one. I need to see if there is some module allready that is small so I can see how things goes :) In Example is hard to get all things together for me.





    edited by: car-li, Apr 13, 2007 - 07:57 PM
  • Posted: 14.04.2007, 01:34
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2975
    http://community.postnuke.com/Wiki-DeveloperDocs.htm


    --
    David Pahl
    Zikula Support Team
  • Posted: 14.04.2007, 01:48
     
    pnDev
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    23.08.08
    Posts:
    448
    Example is quite straightforward if you read the docs to get a basic idea of whats going on first.

    Code

    /**
     * the main user function
     *
     * This function is the default function, and is called whenever the module is
     * initiated without defining arguments.  As such it can be used for a number
     * of things, but most commonly it either just shows the module menu and
     * returns or calls whatever the module designer feels should be the default
     * function (often this is the view() function)
     *
     * @author       The PostNuke Development Team
     * @return       output       The main module page
    function Example_user_main()

     */


    The comments inside the source are excellent. The module starts at above function. Goodluck.

    --
    pnDev.com ~ featuring the PostNuke paid services forum
  • Posted: 14.04.2007, 01:54
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2975
    Openstar Module Generator:
    http://openstar.postnuke.com/index.php?module=v4bGenMod&func=instructions

    --
    David Pahl
    Zikula Support Team
  • Posted: 14.04.2007, 10:21
     
    car-li
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    01.12.07
    Posts:
    45
    Geee sory about my english, my english writing is realy bad :).

    Yee well I know that Example have that help and so one, but for ppl that doesn't know this framework it's prity useless. Ok not completly useless but it take a lot of time :)

    Thanks for all help, I will check that generator ... thanks.

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula