All Site 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
  • RvR replied on the discussion topic Customize logout
    Or something else... Learn, try, search view reply
  • RvR replied on the discussion topic Customize logout
    In this case you should use a hook. My suggestion is a new Class: start.php elgg_register_plugin_hook_handler('register', 'menu:topbar', [\MyPlugin\Menus::class,... view reply
  • RvR replied on the discussion topic Customize logout
    Use menu hook. Another way is: elgg_register_action('logout', __DIR__ . '/actions/tsnlogout.php'); So, you don't need to add the menu's hook. 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
  • RvR replied on the discussion topic Fatal Error on cron/monthly/ - Unknown storage engine 'archive'
    https://stackoverflow.com/questions/1458122/enabling-archive-engine https://stackoverflow.com/questions/26996618/install-mariadb-archive-engine Or use the suggested plugin, and delete the system log archives tables manually from your... view reply
  • yamayama added a new discussion topic Save uploaded files in the group General Discussion
    ファイルプラグインで次のいずれかを実行できますか?   ①アップロードしたファイルを削除または上書きして編集できるのは、管理者のみです。(アップロードされたユーザーは、アップロードしたファイルを削除または上書きできません)   ②アップロードされたユーザーは、アップロードしたファイルを削除または上書きして編集できます。ただし、削除したファイルまたは上書きされる前のファイルはサーバーに残ります。
  • yamayama joined the group General Discussion
  • I checked with my host. It is a shared plan, which does not support archive.  It only supports the following DB engines.  CSV MyISAM MEMORY SEQUENCE Aria InnoDB   Any suggestion how to overcome? Thank... view reply
  • RvR replied on the discussion topic Customize logout
    In first, elgg-plugin.php is not an Elgg 2 file but Elgg 3. For custom Elgg 2 action you need to register it in your start.php. 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.

  • Tank you but the problem is that the monthly cron is not triggered view reply
  • RvR replied on the discussion topic Fatal Error on cron/monthly/ - Unknown storage engine 'archive'
    I don't know how to fix it but I suggest to disable system log on your site. You can use this plugin. view reply
  • Elgg 2.3.13 I receive the following error on my-site/cron/monthly/ Any suggestion how to fix? Thank you An exception occurred while executing 'ALTER TABLE elgg_system_log_1573844974 engine=archive': SQLSTATE[42000]: Syntax...
  • Merchantfred added a new discussion topic Node.js Vs PHP in the group Beginning Developers
    what's your opinion, which should I use between two giant programming languages Node.js Vs PHP?
  • Magic joined the group Form and related plugins