Task Plugin

Hi. I installed the task plugin but it does not work for elgg 1.8.15. like it is shown on the sreenshots :/ I am new to elgg and also not so good  at programming. I dont know how to change the code so that it works for my version... Is there anybody who could adapt the code or tell me how I could do taht? Its very important for me. please help... 

  • what do you mean by 'try to another use....'? i dont understand.. 

  • Unfortunately, a spammer...

    But you could "try to use another task plugin". In a comment on the tasks plugin page there's a link to https://github.com/lorea/tasks. I don't know if this alternative tasks plugin is working but you can give it a try. Though I should mention that it is licensed under the AGPLv3 license.

    For getting the other tasks plugin to work you would need to work on three things: the input form, the action that processes the input and the output view.

    The input form is /tasks/views/default/forms/tasks/edit.php. If you don't like the input form in it's present form, you would need to modify it accordingly. The types of the input fields are defined in tasks_init() in start.php.

    The input is processed in the action tasks/actions/tasks/edit.php. If you don't change anything in the input form you might not need to change anything there either. Though it might be worth to check at least if the input data is indeed saved correctly.

    The output is done by the view tasks/views/default/object/task/task_top.php. I think the main problem of the plugin in its current state is here. The input might already be correctly saved. But it simply is not shown then.

    I don't have the time to work on the tasks plugin myself right now. But I don't think it's too difficult to fix it. You might want to look at the views code of other plugins to get an understanding of what need to be done. Maybe the pages plugin bundled with Elgg (which the tasks plugin is based on) will already give you some indication.

  • The plugin on https://github.com/lorea/tasks does not work for me either ... 

    Thank you for the description how to proceed. Taht is very usefull for me. I am happy with the current input form. The only thing I wish is a output. So I will try to fix it. 

  • I believe Lorea uses a fork of the elgg core, so their plugins may not work with elgg without some modifications.

  • @ Matt Beckett Thank you for the information.

    @iionly I think that the input data is saved correctly because when I click on the edit task button the data I have saved before is shown to me. 

    I looked into the task_top.php file but could not find the reason for not showing the data from the form start, end, type, status, ... .

    task title, task text and tags are shown.

  • @alpik, you want to use http://gitorious.org/lorea/tasks

    The Github mirror might not be up-to-date.

    Lorea plugins work on stock Elgg 1.8.15 as far as I know. Since 1.8, Lorea thrives to NOT fork Elgg core at all. It led to an increased collaboration with Elgg team (mostly via @sembrestels) to include changes directly in core instead of the Lorea code. *Some* patches might remain in Lorea for upcoming changes, but I'm not aware of any specific patch to Elgg core anymore.

  • ok, thanks for the update, I hadn't looked at any Lorea plugins since 1.7 due to the forking.  Good to know.

  • Thank you for the response. But in both cases (using https://github.com/lorea/tasks or http://gitorious.org/lorea/tasks ) I get this following message on my side when i click on the 'add task' button:

    Sorry. We could not find the page that you requested.

    An idea why?

  • what's the url you get when you click add task?