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

Dizkus

Bottom
Making a module? (yes, another)
  • Posted: 02.11.2006, 03:27
     
    Hjalle
    rank:
    Freshman Freshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    06.12.06
    Posts:
    21
    Hello..

    I know that it has been alot of threads about how to make a own module, and I have read most of them.. And I have watched the documentation but still, I dont really understand how to do it. The pnRender makes my mind sick, I have no clue how to handle it. Can anybody help me, give som hints, post some really relevant documentation (I have read the Wiki like 10 times, so that isn't needed).

    Thank you!:)
  • Posted: 02.11.2006, 03:37
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2973
    You should start with your programing background.. what is it?

    I see you only registered today, how familiar are you with PN?

    What do you want the module to do?

    Compare the different modules out there, see how they function...

    And of course just start somewhere... a module doesnt need pnrender to work.. so worry about that last.

    --
    David Pahl
    Zikula Support Team
  • Posted: 02.11.2006, 03:46
     
    Hjalle
    rank:
    Freshman Freshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    06.12.06
    Posts:
    21
    Thanks for answering. I am not familiar with PN, and I my programing background is nothing to cheer about. I know some basic PHP, and a little bit more c++. I have made my script work without PN, and the script is like a trivia with some questions and you click some radiobuttons and see how many correct answers you got. It all uses a mysql database. But its no complicated stuff, I just want it on my PN page, and I want admins to be able to add more questions etc:)
  • Posted: 02.11.2006, 03:59
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2973
    Well the best advice, I can give is start with the example module. And start making changes to other modules to understand the functionality. Never made my own module, but have modified plenty at one time or another.. sometimes it is easy.. sometimes not.

    Anyway good luck.

    --
    David Pahl
    Zikula Support Team
  • Posted: 02.11.2006, 04:11
     
    Hjalle
    rank:
    Freshman Freshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    06.12.06
    Posts:
    21
    Okay! Is there not any other way I can publish it without using these complicated modules?;/
  • Posted: 02.11.2006, 05:56
     
    Hjalle
    rank:
    Freshman Freshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    06.12.06
    Posts:
    21
    I really think its weird..:>

    Anyways, question:
    If I put up some files and name them like pnuser.php, index.php etc but DON'T have any function named "main" it complains about it, and if i use the main function I can not echo from there, only return. Since I have many things to return it doesn't work for me because I can't return specefic things in like a whileloop..

    So how come that like the News module, that don't need the main function to work, and more than that he can also echo. I even tried to copy the whole News sourcecode, but was not able to do it even with that?

    I apologize for bad spelling and grammar. Thank you
  • Posted: 02.11.2006, 08:11
     
    come
    rank:
    Helper Helper
    registered:
     December 1969
    Status:
    offline
    last visit:
    01.07.08
    Posts:
    137
    Read this for how to return your data via pnRender.

    --
    greetings,

    O. Encke

    ASUS Notebook Forum

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula