Edease

About me: Developer / Designer with passion in E-learning & Serious Games
Location:
Email: eddie@edease.nl

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

  • Edease replied on the discussion topic Import deleted group by mysql backup?
    Yes, you are right. But still got those! (Also once a month a complete ftp backup) view reply
  • Edease replied on the discussion topic Import deleted group by mysql backup?
    The backup is too outdated I'm afraid. The best chance I figured is to manually remove all the non-related mysql lines and import it again via myAdmin. (Which would be a huge task considering 280 000 + lines) So we really need to think if it is... view reply
  • Edease added a new discussion topic Import deleted group by mysql backup? in the group Beginning Developers
    Hi Elggers, we came into a situation where a user deleted a group, so sadly this one is not available on the site anymore. This particular group had lots of activity and was also important for other users.  However, we have made mysql...
    • The backup is too outdated I'm afraid. The best chance I figured is to manually remove all the non-related mysql lines and import it again via myAdmin. (Which would be a huge task considering 280 000 + lines) So we really need to think if it is worth the trouble. 

      Lesson well learned. Thanks for the reply!

    • Also all the files added to the group have been removed from the dataroot. So it wouldn't be enough to restore just the database.

    • Yes, you are right. But still got those! (Also once a month a complete ftp backup)

  • Edease replied on the discussion topic Cronjob as admin
    Just exactly what I needed! Many thanks. view reply
  • Edease added a new discussion topic Cronjob as admin in the group Beginning Developers
    Hi Elgg'ers, I was wondering if it is possible to set up a cronjob that runs a script that you can normally only run as admin I use the plugin SNA4elgg, which on the admin page, has it's own section and a download button. I have...
    • Normally you would run this on the backend via control panel from your hosting. Cron isn't an Elgg thing, it's a server thing.

    • You can disable the access level handling within the callback function you register for the cron plugin hook. Then you can access entities during the cronjob execution that would require an admin to be logged in otherwise.

      Register in the init function of your plugin:

      elgg_register_plugin_hook_handler('cron', 'daily', 'my_cronjob');

      and then add the callback function to be executed during the daily cronjob:

      function my_cronjob($event, $object_type, $object) {

          $access = elgg_set_ignore_access(true);
          $access_status = access_get_show_hidden_status();
          access_show_hidden_entities(true);

          <now the code that you want to be executed>

          access_show_hidden_entities($access_status);
          elgg_set_ignore_access($access);
      }

    • Just exactly what I needed! Many thanks.

  • Edease added a new discussion topic Mail all group owners at once in the group Beginning Developers
    Is there a possibility to send out a mail to only all the group owners? I have looked at the settings & plugins but maybe i am overlooking something here.
  • Edease added a new discussion topic 'Speak freely' & discussions in the group Beginning Developers
    Hi all, my goal is for allowing guest comments throughout the site. Matt Beckett already made a great plugin for doing just that (https://community.elgg.org/plugins/763001). The problem I'm running into is that they won't work within group...
  • Edease replied on the discussion topic Best approach for adding splash page
    Thank you Evan, Got the plugin working now. It is actually one of the options, we also think off and test other possibilities (like a section on home, or  a constant note in sidebar). In our team some people are pro and other against the... view reply