Forums

ToDo plugin released! (23 posts)

  1. pravin
    Member
    Posted 5 years ago #

    I'm happy to announce the public release of my first wordpress plugin - ToDo. This plugin lets you manage your Todo list and display it on your wordpress blog.

    Read more about it at http://www.dustyant.com/posts/todo-plugin-for-wordpress.html. Download it from http://www.dustyant.com/stuff/2007/02/wp-todo.zip.

    It hasn't been widgetized yet. That's next on my ToDo list :P. Please try it out and let me know if it needs more features. Flame away :D

  2. pravin
    Member
    Posted 5 years ago #

    For some reason, the tables aren't created during installation. It works for me. But it doesn't work for a few people.

    Can someone go through the code and tell me why? This is my first plugin so I might not be doing things the way they are supposed to be done. Thanks.

  3. pravin
    Member
    Posted 5 years ago #

  4. LostInNetwork
    Member
    Posted 5 years ago #

    I haven't tried yor plugin yet, but there are three features I would love to see:

    1) Comments field (we would use the comments field for the name of the person responsible for the task, and we could add other notes there too)

    2) Priority field (numeric 1...5; 1=high, 3=normal, 5=low?)

    3) Sorting by any field (object id, task, comment, priority, due date)

    I hope that the due date is not a required field for all tasks.

    I'll install this as soon as it gets widgetised.

  5. LostInNetwork
    Member
    Posted 5 years ago #

    I hope that I will never see:

    Feb-10-2008
    Feb-11-2007
    Feb-12-2008

    The MTH-DD-YYYY date format is just presentation, right? Not the actual data written to the database field?

  6. pravin
    Member
    Posted 5 years ago #

    Thank you for your feedback.

    1. Comments field: I'll add it in the next version. I was also wondering if I should add the author name (for multiple author blogs)
    2. Priority field:Will do.
    3. Sorting: Will do.
    4. The MTH-DD-YYYY is just the presentation format. The time stamp is stored in the DB. Since I haven't added a field for the due-time, it defaults to 12:01am. I'm wondering if I should add the due-time too.
  7. LostInNetwork
    Member
    Posted 5 years ago #

    A few simple things:

    - An update to my request: Comment --> Notes
    "Notes" are more general, IMO...

    - More features:
    $type = 'completed' // Print tasks on an archive page

    - More features:
    $type = 'duetoday' // Show even OLD incomplete tasks
    // such as those due yesterday and
    // last week

  8. LostInNetwork
    Member
    Posted 5 years ago #

    The author name might be a good thing too. WE don't NEED it for anything, but it is nice to know who added a task. Just in case there is something unclear about the task, and one needs to ask... And beeing responsible for the tasks one submit, is A Good Thing in collaborative blogs, as anonymity would make it easier to flood the list with stupid tasks :)

    Due time? Hmm... I can see that some people might benefit from that. You should maybe implement the widget first, then priorization/notes/sorting, then due time.

    You might want to create a complete table with many many fields that you can activate later. This would minimize the need of risky database table structure changes. Someone will ask for some advanced feature anyway, and it is fun if you only need to use 5 sec to "enable" it instead of redesigning the database and program logic. So, put a bit more db fields and selection/sorting features in the code than you initially publish...

  9. LostInNetwork
    Member
    Posted 5 years ago #

    ... but don't make the program code TOO complicated too fast.

  10. pravin
    Member
    Posted 5 years ago #

    Just to keep you updated, I am working on adding those features + widgetizing. I hope to be done with it by tomorrow.

  11. pravin
    Member
    Posted 5 years ago #

    Was busy with life until today. Nearly done. Widgetized too. I'm thinking another few hours.

  12. pravin
    Member
    Posted 5 years ago #

    0.2 available! Features:

    - An integrated panel in wp-admin that lets you add, remove and mark tasks as done.
    - Ability to set,
    1. Due date and time.
    2. User to assign task to.
    3. Priority of task.
    4. Notes.

    - Completely Widgetized! Use todo-plugin as a widget without writing a line of template code.

    Visit: http://www.dustyant.com/posts/todo-plugin-for-wordpress.html

  13. LostInNetwork
    Member
    Posted 5 years ago #

    I installed the plugin and created a page template containing the < ? php pravin_todo(); ? >

    Result:

    Fatal error: Call to undefined function: pravin_todo()

  14. LostInNetwork
    Member
    Posted 5 years ago #

    Codex: Example: add_action('publish_post', array('emailer', 'send'));

    Shouldn't there be something like this at the end of the plugin, or am I doing something wrong?

  15. LostInNetwork
    Member
    Posted 5 years ago #

    The widget works, though.

    (but it has no header so it looks a bit strange)

  16. pravin
    Member
    Posted 5 years ago #

    The function is called pravin_get_todo(). I have mentioned it on the site. But I forgot to change it in the readme file.

    Give me 10 minutes. I'll fix it. I have also added a header called ToDo.

    I'm not sure why you would want add_action('publish_post', array('emailer', 'send')); at the end. Any particular reason for that?

  17. pravin
    Member
    Posted 5 years ago #

    - Added Todo List as the title (later I'll make this configurable)
    - Edited the text that appears at the Manage -> Plugins page to say pravin_get_todo() instead of pravin_todo()

  18. LostInNetwork
    Member
    Posted 5 years ago #

    I just did not understand why the todo-list didn't display on the page. It was just a wild guess (I'm no php coder), that "something must be missing". It's clear now. I had the function name wrong.

  19. LostInNetwork
    Member
    Posted 5 years ago #

    The widget is now ok, but I still can't see the todo-list on my static page. Do I need to add/do anything besides including this:

    ...
    < ? php the_title(); ? >

    < ? php pravin_get_todo(); ? >

    < div class="entrytext" >
    < ? php the_content('<p class="serif">Read the rest of this page »</p>'); ? >
    < / div >
    ...

    (some extra spaces have been added here, to make the markup visible)

  20. pravin
    Member
    Posted 5 years ago #

    Sorry, my bad.

    Change that line to read <?php echo pravin_get_todo(); ?>

    Now I remember why I had thought of having a function called pravin_todo(). I'll make those changes shortly

  21. LostInNetwork
    Member
    Posted 5 years ago #

    It works now.

    No, I did not fight for eleven hours with it ;) - I have to sleep, too. All the fixes were simple and easy.

    A few thoughts:

    Excellent! It is multiuser friendly, and has dual sort keys and all! I like this plug-in very much. Editing tasks could be a little bit easier, though. More on that later. I'll do some testing now :)

    -------
    My further feature requests and such comments go to the comments here: http://www.dustyant.com/posts/todo-plugin-for-wordpress.html

  22. wearethirdeye
    Member
    Posted 5 years ago #

    I am using WordPress 2.1
    This error message shows up under the Manage>ToDo section of my wordpress:

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo' doesn't exist]
    select * from wp_pravin_todo order by status ASC, date_due ASC

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT show_limit FROM wp_pravin_todo_options LIMIT 1

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT show_completed FROM wp_pravin_todo_options LIMIT 1

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT show_duetoday FROM wp_pravin_todo_options LIMIT 1

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT sort_field1 FROM wp_pravin_todo_options LIMIT 1

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT sort_field2 FROM wp_pravin_todo_options LIMIT 1

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT sort_order1 FROM wp_pravin_todo_options LIMIT 1

    WordPress database error: [Table 'nmelinez_wrdp1.wp_pravin_todo_options' doesn't exist]
    SELECT sort_order2 FROM wp_pravin_todo_options LIMIT 1

    If this requires some SQL steps, can you specify what exactly I must do. I'm not very familiar with SQL but I have found where to input the info.

  23. pravin
    Member
    Posted 4 years ago #

    This means that the tables haven't been created. You'll have to create the tables manually. I haven't had time to maintain this plugin because of work. I don't know when I'll find time.

    Till then, please look at the todo_install (something like this) function and run those steps manually.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags