Avinty Lanaikey

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

  • Beginning Developers

    Beginning Developers

    This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking

Activity

  • Avinty Lanaikey added a new discussion topic reference.elgg.org in the group Beginning Developers
    The reference site http://reference.elgg.org/ has been out of order for some weeks. The main page remains formally accessible but empty, no description of functions. This list of functions is missing now.  
    • I've updated the config. Hopefully it should update the site tonight with new branches.

      Not everyone would make use of an IDE. Maybe beginners will do their first steps without.

      true

      And even after years of coding on Elgg stuff I'm still not using one and definitely don't need it with my style of work...

      Once you start you'll never want to go back ;) Having autocomplete on functions is soooo usefull

    • Supporting and nurturing new users is essential for the long-term success of the Elgg framework.  If anything, I would like the Elgg community to reaffirm its commitment to supporting new users ... going well beyond refeference.elgg.org and learn.elgg.org.

      Any contributions are always welcome. This can also be in how we could improve the beginner experience. Please post your suggestions op https://github.com/elgg/elgg

    • After some more changes the reference should work again. (Until it breaks again)

  • Avinty Lanaikey replied on the discussion topic Language selection upon registration
    The original Language Selector plugin https://elgg.org/plugins/384977 is incompatible with new versions. It still contains the outdated start.php instead of elgg-plugin.php. And the GitHub/RiverVanRain... view reply
  • Avinty Lanaikey replied on the discussion topic Language selection upon registration
    Well. In the end, it appeared the fault was a missing registration of the action in elgg-plugin.php, therefore not inaccessible in the system. It was found out that other fields like the name were not modifiable from inside the code either. The... view reply
  • Avinty Lanaikey added a new discussion topic Language selection upon registration in the group Beginning Developers
    In order to make the system really multilingual, according to everyone's preference, I've decided to add the language selection element directly to the initial registration form. Otherwise available in the user settings. This was done...
    • Well. In the end, it appeared the fault was a missing registration of the action in elgg-plugin.php, therefore not inaccessible in the system. It was found out that other fields like the name were not modifiable from inside the code either. The solution was to add the action with ['access' => 'public'] to elgg-plugin.php. The elgg_call function is even not necessary. Now it's functioning.
       

    • The original Language Selector plugin
      https://elgg.org/plugins/384977
      is incompatible with new versions. It still contains the outdated start.php instead of elgg-plugin.php.
      And the GitHub/RiverVanRain variant
      https://github.com/RiverVanRain/language_selector/tree/3.3
      couldn't be activated. It throws a fatal error:

       

      Call to undefined function ColdTrick\LanguageSelector\elgg_unset_plugin_setting()
      
      Log at time 2022-02-22T23:26:56+00:00 may have more data.
      
      #0 [internal function]: ColdTrick\LanguageSelector\Settings::invalidateSetting(Object(Elgg\HooksRegistrationService\Hook))
      #1 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/HandlersService.php(62): call_user_func(Array, Object(Elgg\HooksRegistrationService\Hook))
      #2 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php(69): Elgg\HandlersService->call(Array, Object(Elgg\HooksRegistrationService\Hook), Array)
      #3 /var/www/elgg/vendor/elgg/elgg/engine/lib/elgglib.php(513): Elgg\PluginHooksService->trigger('action_button', 'plugin', Array, '<a title="Deakt...')
      #4 /var/www/elgg/vendor/elgg/elgg/views/default/object/plugin/full.php(80): elgg_trigger_plugin_hook('action_button', 'plugin', Array, '<a title="Deakt...')
      #5 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include('/var/www/elgg/v...')
      #6 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile('object/plugin/f...', Array, 'default', true)
      #7 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView('object/plugin/f...', Array, 'default')
      #8 /var/www/elgg/vendor/elgg/elgg/views/default/object/plugin.php(24): elgg_view('object/plugin/f...', Array)
      #9 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include('/var/www/elgg/v...')
      #10 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile('object/plugin', Array, 'default', true)
      #11 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView('object/plugin', Array, 'default')
      #12 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(613): elgg_view('object/plugin', Array)
      #13 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(1331): elgg_view_entity(Object(ElggPlugin), Array)
      #14 /var/www/elgg/vendor/elgg/elgg/views/default/page/components/list.php(77): elgg_view_list_item(Object(ElggPlugin), Array)
      #15 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include('/var/www/elgg/v...')
      #16 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile('page/components...', Array, 'default', true)
      #17 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView('page/components...', Array, 'default')
      #18 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(758): elgg_view('page/components...', Array)
      #19 /var/www/elgg/vendor/elgg/elgg/views/default/admin/plugins.php(28): elgg_view_entity_list(Array, Array)
      #20 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include('/var/www/elgg/v...')
      #21 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile('admin/plugins', Array, 'default', true)
      #22 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView('admin/plugins', Array, 'default')
      #23 /var/www/elgg/vendor/elgg/elgg/views/default/resources/admin.php(29): elgg_view('admin/plugins', Array)
      #24 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include('/var/www/elgg/v...')
      #25 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile('admin/plugins', Array, 'default', true)
      #26 /var/www/elgg/vendor/elgg/elgg/engine/lib/views.php(377): Elgg\ViewsService->renderView('resources/admin', Array)
      #27 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(211): elgg_view_resource('admin', Array)
      #28 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(122): Elgg\Router->prepareResponse(Object(Elgg\Http\Request))
      #29 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(102): Elgg\Router->getResponse(Object(Elgg\Http\Request))
      #30 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(419): Elgg\Router->route(Object(Elgg\Http\Request))
      #31 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(310): Elgg\Application->run()
      #32 /var/www/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(360): Elgg\Application::route(Object(Elgg\Http\Request))
      #33 /var/www/elgg/index.php(8): Elgg\Application::index()
      #34 {main}
    • This plugin isn't compitable with Elgg 4.

      You can use it as an example for development.

      Any contributions are welcome ;)