Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • TCB replied on the discussion topic Customize logout
    Thanks for the help, yes learn,try,search is the best approach, some of these items have required a quick turnaround so sometimes the research time makes it difficult to hit some deadlines.. It doesn't feel good asking for solutions without... view reply
  • TCB replied on the discussion topic Customize logout
    Also, I tried to add an image to my topbar menu that will link to another page.  I have factChain-Pen-badg3.png located in my /var/www/html/mod/fc-plugin/graphic/factChain-Pen-badge3.png and have the following code in start.php: $text =... view reply
  • TCB replied on the discussion topic Customize logout
    ok.. so now, I'm looking for an easy way to remove the original logout menu.  I see elgg_unregister_menu_item and tried: elgg_unregister_menu_item('topbar', 'account/logout'); but that didn't work.. Guessing I need... view reply
  • TCB replied on the discussion topic Customize logout
    found it... nevermind :-)  added 'parent_name' property when registering the menu item. view reply
  • TCB replied on the discussion topic Customize logout
    currently reading documentation at:  http://reference.elgg.org/lib_2views_8php.html#aad8e0d385f58c77851953a5f7f8c5f27 view reply
  • TCB replied on the discussion topic Customize logout
    Thanks,, that worked.. another question regarding my custom logout.  I'd like to update the account menu to point to that new logout action.  currently I have this in my start.php:   $item =... view reply
  • TCB added a new discussion topic Customize logout in the group Plugin Development
    I'm using Elgg 2.3.14 and looking to override/extend the logout action to include some custom code.  My plugin /var/www/html/mod/my-plugin/actions/logout.php has been created which has my custom code... however none of my code is being...
    • ok.. so now, I'm looking for an easy way to remove the original logout menu.  I see elgg_unregister_menu_item and tried:

      elgg_unregister_menu_item('topbar', 'account/logout');

      but that didn't work.. Guessing I need to somehow get the parent item and then somehow call out the child 'logout' item in order to remove it?

    • Also, I tried to add an image to my topbar menu that will link to another page.  I have factChain-Pen-badg3.png located in my /var/www/html/mod/fc-plugin/graphic/factChain-Pen-badge3.png and have the following code in start.php:

      $text = elgg_view('output/img', array(

      'src' => elgg_get_site_url(). 'mod/fc_plugin/graphic/factChain-Pen-badge3.png',

      'alt' => '', 'class' => '',

      'title' => '',

      'width' => '',

      'height' => '',

      ));

      elgg_register_menu_item('topbar', array(

      'name' => 'factChainPen',

      'href' => 'https://mytesturlFC.com',

      'text' => $text,

      'priority' => 1000,

      'section' => 'alt',

      ));

      doesn't appear at all :-(

    • Thanks for the help, yes learn,try,search is the best approach, some of these items have required a quick turnaround so sometimes the research time makes it difficult to hit some deadlines.. It doesn't feel good asking for solutions without being thorough first so I know where you're coming from.  So thanks for all the help you've provided thus far. This is my first project with elgg and php so it has definitely been a learning experience.

  • :-| ugh.. sorry RvR, don't know why I didn't do the search first. view reply