elgg 1.8.1 plugin development

thanks to this helpful community i learned to create a 'hello world' plugin

im working of a new plug in -- but ...

this plugin of mine will have a CLICK HERE link ....

what i want to do is for that link to surf user over to an area as wide as the comment entry data

meaning, as wide to cover width of left column and center column (but not right column)

unless .....

do you know if there is a way to make a plugin MORE WIDER?

what say ye?

  • Make 'PlugIn wider' ? do you mean widget ?

  • the plugin will display a CLICK HERE link, then when you click it a wide area displays ..... perhaps you call it a widget ..... nevertheless, i just need to display a wide area along wit the top navigation (header and footer)

    in brief: i just want to display a blank page with header/footer

    thanks

     

  • Just a Blank Page ? For any particular reason/purpose ? I used to have a template page (called it index_Custom) coded with basic php and some Elgg calls - for FBFK stuff (Elgg.1.5 tho) - and sadly, never got to try that to upgrade up to 1.6, 1.7++ ;-( My purpose was to basically have a template handy to code anything new for PlugIns or new features and soon.

     

     

  • the reason for it is ... to use it as the foundation for several plugin ideas i want to develop

    in other words...

    I want a blank page -- with header, navigation, and footer of elgg -- that says Hellow World

    maybe a good samaritan can create it for me, and i can take it from there

    thanks

  • On Elgg 1.8.1 and above:

    1. create a directory in mod that you be your new plugin

    2. copy the files in documentation/examples/plugins into your new plugin directory

    3. update the init function in your start.php based on the name of your plugin and update the manifest

    4. register a page handler function in your init: http://docs.elgg.org/wiki/Engine/Controllers/PageHandler

    5. create your page handler function using the member's plugin as a guide. See mod/members/start.php

  • THIS IS MY start.php

    but nothing happens. I just want a blank page that says hello world
    and the elgg site header, nav menu, and footer,to also shows up.
    I need it XYZ to also be list as part of the core menu (if possible).

    where do i place the echo 'Hello World' at?

    ========================================================

    <?php
    /**
     * THIS IS MY BLANK PAGE PLUGIN CALLED XYZ
     */

    elgg_register_event_handler('init', 'system', 'XYZ');

    function XYZ() {
       
    elgg_register_page_handler('members', 'members_page_handler');

        $item = new ElggMenuItem('members', elgg_echo('members'), 'members');
        elgg_register_menu_item('site', $item);

       
    }
    ====================================================

    if someone can just code the start.php i can take it from there and created useful plugins

  • UPDATE:

    this is what i have now .... but it displays a blank page, i mean a real blank page

    nothing shows up .... nothing

     

    <?php
    /**
     * THIS IS MY BLANK PAGE PLUGIN CALLED XYZ
     */

    elgg_register_event_handler('init', 'system', 'XYZ');

    function XYZ() {
       
    elgg_register_page_handler('XYZ', 'XYZ_page_handler');

        $item = new ElggMenuItem('XYZ', elgg_echo('XYZ'), 'XYZ');
        elgg_register_menu_item('site', $item);

       
    }

    function XYZ_page_handler($page) {

    // not sure if the following line is right

        $base = elgg_get_plugins_path() . 'XYZ';

    // what i put here to display A BLANK PAGE that says hello world
    // and also has the elggsite header, nav menu, and footer
    // ????

     

        return true;
    }

  • i still dont get the header, nav menu, right side column, and footer

    ... all i get is a trulyt bank page

  • Hi Prieto,

    Please have a look at my plugin.

    http://community.elgg.org/pg/plugins/project/799029/developer/Purus/live-news-18

    Is that what you require? Having header, footer, nav menu, right side column and a page where you can have your texts..?

  • I did it!!

    i just need to know HOW to gt rid of the ALL |MINE | FRIENDS tabs

    please advise

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.