Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2445)
Important Note!Mod is not developed for a while. Then, it will be re-write!
To-Do ListThis modification is for your "to do" list, you can see what you need to do, you can mark as done or delete. This for people who forget what to do!
Language Support:English, Turkish
Do you want to translate this modification into your language? Click me! (http://www.simplemachines.org/community/index.php?topic=369039.0#translate_me)
Changelog:v2.0:
- Complate re-write.
- Default ve Curve compability added
- BBC allowed.
- Paging index added
- Some permissions (view, can add) was added
- Phrase added to menu which shows how much thing you do today.
v1.1:
- Mark as done and delete images added instead of links.
- 2.0 RC3 support.
v1.0:
- First release.
Originally created by Berat "grafitus" Dogan (http://www.simplemachines.org/community/index.php?action=profile;u=113776)
Excelent mod ;)
Is this in the main forums menu or just admins?
Quote from: Brack1 on March 05, 2010, 06:15:30 PM
Is this in the main forums menu or just admins?
The main forum menu because it's right before the Logout button
Nice mod ;)
Quote from: 4kstore on March 05, 2010, 05:42:37 PM
Excelent mod ;)
Thanks. :)
Quote from: Brack1 on March 05, 2010, 06:15:30 PM
Is this in the main forums menu or just admins?
On the forum main menu and edit the profile authority can be seen by anyone.
Quote from: NIBOGO on March 05, 2010, 10:15:18 PM
Nice mod ;)
Thanks, NIBOGO.
I'm glad you like it...
Nice mod. Cong.
Is there an alarm on this mod?
Very good mod..
Quote from: akbora on March 06, 2010, 01:09:29 PM
Is there an alarm on this mod?
Oh, no. But can be add in later versions (Time unclear).
Thanks.
Thanks grafitus,
1. Pop up alarm todos on the day. like microsoft outlook
2. Mark as Done may be italik or strike.
I hope I will add your suggestions.
Thanks again.
Can it be set so it shows in admin area only?
Quote from: Brack1 on March 06, 2010, 07:09:12 PM
Can it be set so it shows in admin area only?
I'm sorry. Modification can make own page (?action=todo) views.
Good job and Excellent mod ;)
Updated to SMF 2.0 RC3!
good work .
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg46.imageshack.us%2Fimg46%2F3326%2Fmodofthemonth.png&hash=b002a51935168bfa0b5d180d6368d8d3366b850c) (http://www.simplemachines.org/community/index.php?topic=369545.0)
Oh my god! I was happy. :D Thanks for your choosing me...
Russian translation:
this for languages-utf8.xml (encoded to UTF8 w\o BOM)
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// To-Do List
$txt['to_do'] = 'Список дел';
$txt['to_do_empty'] = 'Список дел пуст!';
$txt['to_do_add'] = 'Новая запись';
$txt['to_do_del'] = 'Удалить';
$txt['to_do_mark_do'] = 'Отметить как выполненное';
$txt['to_do_unmark_do'] = 'Отметить как невыполненное';
$txt['to_do_ok'] = 'Добавить';
$txt['to_do_subject'] = 'Тема';
$txt['to_do_due_time'] = 'Крайний срок';
$txt['to_do_priority'] = 'Приоритет';
$txt['to_do_priority0'] = 'Низкий';
$txt['to_do_priority1'] = 'Обычный';
$txt['to_do_priority2'] = 'Высокий';
]]></add>
</operation>
</file>
and this for languages.xml (encoded to ANSI):
<file name="$languagedir/Modifications.russian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// To-Do List
$txt['to_do'] = 'Список дел';
$txt['to_do_empty'] = 'Список дел пуст!';
$txt['to_do_add'] = 'Новая запись';
$txt['to_do_del'] = 'Удалить';
$txt['to_do_mark_do'] = 'Отметить как выполненное';
$txt['to_do_unmark_do'] = 'Отметить как невыполненное';
$txt['to_do_ok'] = 'Добавить';
$txt['to_do_subject'] = 'Тема';
$txt['to_do_due_time'] = 'Крайний срок';
$txt['to_do_priority'] = 'Приоритет';
$txt['to_do_priority0'] = 'Низкий';
$txt['to_do_priority1'] = 'Обычный';
$txt['to_do_priority2'] = 'Высокий';
]]></add>
</operation>
</file>
Russian translation added!
Thanks Bugo...
Heh, I wrote that translation files need to be placed in different files! With different encodings. Otherwise, when using conventional (non-UTF8) Russian translation, people will see it - see the screenshot.
Quote from: akbora on March 06, 2010, 05:14:38 PM
Thanks grafitus,
1. Pop up alarm todos on the day. like microsoft outlook
2. Mark as Done may be italik or strike.
Or a small icon to blink near the 'To-Do list' button at the menu on the day.
@Bugo, I'm sorry. I hope my editor problematic. :/
@searchgr, Hımm.. I will evaluate. ;)
QuoteOn the forum main menu and edit the profile authority can be seen by anyone.
Can't find out how to stop everyone from putting a to-do in this. Only have admin rights on the forum and can not tell if a guest or regular member can see or post. could you please clarify where these things could be set or if everyone has access or read only access.
Hello, :)
Installed this with the package manager with not one problem.
Tested with the following results:
It does not function on these themes Bright Forest, Core, Mystic Jade. :-[
It does function on these themes Curve, Super Tema, :D
Verified by using the Parse. ;)
Any thoughts?
Thank you in advance.
Be Well,
Cloud Walker
I don't have any thought. Can you attach screenshots? (For Bright Forest, Core, Mystic Jade themes)
nice mod grafitus, spanish_es and spanish_latin:
$txt['to_do'] = 'Lista de cosas por hacer';
$txt['to_do_empty'] = '¡La lista está vacia!';
$txt['to_do_add'] = 'Nueva nota';
$txt['to_do_del'] = 'Borrar';
$txt['to_do_mark_do'] = 'Marcar como hecho';
$txt['to_do_unmark_do'] = 'Marcar como no hecho';
$txt['to_do_ok'] = 'Agregar';
$txt['to_do_subject'] = 'Asunto';
$txt['to_do_due_time'] = 'Fecha';
$txt['to_do_priority'] = 'Prioridad';
$txt['to_do_priority0'] = 'Baja';
$txt['to_do_priority1'] = 'Normal';
$txt['to_do_priority2'] = 'Alta';
$txt['permissionname_to_do'] = 'Ver la lista de cosas por hacer';
can be used for utf8 also ;)
a tip if anybody wants to use the smf permission system with this mod:
Open ./Sources/ToDo.php.
global $context, $txt, $scripturl;
isAllowedTo('to_do');
Open ./Sources/Subs.php.
'href' => $scripturl . '?action=todo',
'show' => $context['allow_edit_profile'],
'href' => $scripturl . '?action=todo',
'show' => allowedTo('to_do'),
open /Themes/deault/language/Modifications.yourlanguage.php
$txt['to_do_priority2'] = 'High';
$txt['permissionname_to_do'] = 'see the to do list';
open /Sources/ManagePermissions.php
'search_posts' => array(false, 'general', 'view_basic_info'),
'to_do' => array(false, 'general', 'view_basic_info'),
;)
Quote from: grafitus on April 08, 2010, 09:36:22 AM
I don't have any thought. Can you attach screenshots? (For Bright Forest, Core, Mystic Jade themes)
Grafitus,
Thanks for replying.
Here are the screen shots. :)
Core doesn't show that the mouse was over To-Do List other than slight darkening :-\
Same with Bright Forest, when "you" mouse over, font darkens. :-\
While Super Tema is diffficult to read it shows the Add To Do :D
And clear as day on Curve. ;D
Cloud 8)
This is very interesting. No such problem on my localhost. :/ Only To-Do page looks badly table. Because I've not coded to Core theme (and homies). ^^
Okay,
As you already know I am running SMF ver 2.0RC3
I have loaded the theme called Yem Yeþil. It is approved for SMF ver 2.0RC3.
I was pleased to see that Add To Do functioned normally :D (see screen-shot)
However, I also loaded another theme called Helios Multi. It is also approved for SMF ver 2.0RC3.
The Add To Do did NOT function. :(
Just trying to help you out with more information.
Be Well,
Cloud 8)
Grafitus want me add this to this topic ( he muted )
Open ./Themes/default/ToDo.template.php file.
global $txt, $todo, $context, $scripturl, $settings;
global $txt, $todo, $context, $scripturl, $settings;
$button = array(
'add' => array('text' => 'to_do_add', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=todo;sa=add', 'active' => true),
);
echo template_button_strip($button, 'right');
Quote from: Antes on April 18, 2010, 12:19:12 PM
Grafitus want me add this to this topic ( he muted )
Open ./Themes/default/ToDo.template.php file.
global $txt, $todo, $context, $scripturl, $settings;
global $txt, $todo, $context, $scripturl, $settings;
$button = array(
'add' => array('text' => 'to_do_add', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=todo;sa=add', 'active' => true),
);
echo template_button_strip($button, 'right');
Antes,
Thanks for posting!! ;D
Did this. :D
IT WORKED!!!! :o YAY!!! ;D ;D ;D ;D
Thanks again!
Be Well,
Cloud 8)
Quote from: akbora on March 06, 2010, 05:14:38 PM
Thanks grafitus,
1. Pop up alarm todos on the day. like microsoft outlook
2. Mark as Done may be italik or strike.
What about grafitus? This mod will be greater with features sure according to me? We no need microsoft outlook any more after this.
Sorry, I can't do that nowadays... Because I've exams and I'm some sick.
it would be great if you add the suggested code by 130860 at #26, so we can use permissions
This really seems like a great mod, however.. I would like to use this also for my team, So that they have there own to do list.
It would be great however that the admin can see by the teammembers, what the points are and even can add it to the list.
If you think that the list also should be used personal... then maybe there should also be a part in it where teammembers can put things down privatly.
And also... why not make this as a gadget for the profile area for the members? I have a lot of custom coding on the profile area, and it would be nice if the members can choose if they also want this option for there own on the profilepage...
MissyNL, I've not tried it. But it should work reasonably...
- Team members gather in a group. (Get the group ID)
- A register new member who will be add/delete to-do on To-Do List. (This could be you) (Get the member ID)
- Make the following coding:
Open ./Sources/ToDo.php file.
loadTemplate('ToDo');
$id_member = $context['user']['id'];
loadTemplate('ToDo');
$request = $smcFunc['db_query']('', '
SELECT id_member
FROM {db_prefix}members
WHERE id_group = {int:id_group}',
array(
'id_group' => 15, // YOU SHOULD CHANGE HERE WITH COMMON GROUP ID!
)
);
$group_members = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$group_members[] = $row['id_member'];
$smcFunc['db_free_result']($request);
if (empty($group_members))
return array();
if (in_array($context['user']['id'], $group_members))
$id_member = 12; // YOU SHOULD CHANGE HERE WITH NEW MEMBER ID OR YOURSELF MEMBER ID!
else
$id_member = $context['user']['id'];
I hope it works... Otherwise, you'll wait two weeks. (I've exams.)
Quote from: Bugo on March 18, 2010, 01:14:26 PM
Heh, I wrote that translation files need to be placed in different files! With different encodings. Otherwise, when using conventional (non-UTF8) Russian translation, people will see it - see the screenshot.
Please use two separate files — for ANSI and UTF-8 (w\o BOM) languages.
Okay man. :) No problem. But I've rewritten To-Do List. When I add new language entries soon, I'll do a new translation pack. ;) BTW, if you have a new feature request, you share with me. ;D
Feature requests? Hmm...
Re-ordering items on the to-do list (up/down arrows/buttons) would be a nice feature, and/or to be able to order them so that the most important items are higher up...
Quote from: grafitus on May 28, 2010, 03:27:02 PM
Okay man. :) No problem. But I've rewritten To-Do List. When I add new language entries soon, I'll do a new translation pack. ;) BTW, if you have a new feature request, you share with me. ;D
it have news features? or just a rewritten for optimization?
Quote from: Liam. on May 28, 2010, 08:15:34 PM
Feature requests? Hmm...
Re-ordering items on the to-do list (up/down arrows/buttons) would be a nice feature, and/or to be able to order them so that the most important items are higher up...
Mmm. I will think. But I'm hopeless, because, there may be some problems to be too much data.
Quote from: luuuciano on May 28, 2010, 10:37:18 PM
it have news features? or just a rewritten for optimization?
In fact, no more new features...
- Default (Core) and Curve theme support
- Added use of BBC tags
- Added paging feature.
- A counter indicating how many jobs was added on the day.
So there will be no organization? (Another feature I would probably use, but am not desperate to, is having list categories)
I think that personally, the major feature missing from this, is organising the list...
A way to select wich members can see/use it is useful too
excellent mod, will come in really usefull for me as i always forgetting things.
The pop up suggestion on the day is a great idea, and also maybe extended notes for the reminder (for example i will use this to remember online events. a notes section would be good to save passwords i may need for the event etc)
two thumbs up!
A complete rewrite... Cheers, I'm using it on my site now ;)
Error log:
Quote8: Undefined variable: context
File: ***/Themes/default/languages/Modifications.english.php
Line: 37
Add global $context; there ;)
Also, empty fields in Permissions tab (see screnshot).
Quote from: Bugo on June 03, 2010, 09:09:28 AM
Error log:
Quote8: Undefined variable: context
File: ***/Themes/default/languages/Modifications.english.php
Line: 37
Add global $context; there ;)
Okay. ;)
Quote from: Bugo on June 03, 2010, 09:09:28 AM
Also, empty fields in Permissions tab (see screnshot).
Mmm... This issue only gives "Simple" view. Anyway, it's solved!
Thanks man! :)
I guess, I'll release a update soon. :)
Quote from: grafitus on June 03, 2010, 10:30:52 AM
I guess, I'll release a update soon. :)
In addition, at your leisure, add this: «error="skip"» into line in modification.xml
<file name="$languagedir/Modifications.turkish.php">
Because not all have this file :)
Oh, yes. Thank you. :)
thank you so much.. now i really will use this mod :D
awsome!!
If I enter 2010 10 10 as due date... then is showed as october 9...
why is that?
btw, there is no way to edit items?
(just add, delete, and change status?)
Quote from: luuuciano on June 04, 2010, 09:40:36 PM
If I enter 2010 10 10 as due date... then is showed as october 9...
why is that?
Mmm. Interesting... Turning the UNIX time before the date, and then showing in this way I guess. I'll research it.
Quote from: luuuciano on June 04, 2010, 09:40:36 PM
btw, there is no way to edit items?
(just add, delete, and change status?)
In fact, I've not seen need for it. But it isn't difficult to add. I going to add it for you. :)
btw Im having a lot of this errors:
Undefined index: to_do
file: /home/username/public_html/foros/Sources/Subs.php
Line: 4435
and
Undefined variable: context
File: /home/cba2kes/public_html/foros/Themes/default/languages/Modifications.english.php
Line: 244
luuuciano, Bugo (http://www.simplemachines.org/community/index.php?action=profile;u=229017) found the second bug. Thanks for the other!
btw, I always thought that to-do was a mod for a communitary todo list... but, after to use it for a while... it is just a personal todo list?
If I add tasks... Im the only person that can see it, and I can not see tasks added by others...
I have Ver 2.0 installed on SMF 2 RC3 and using the Mobile_alt Theme from Crip.
Now I have currently one entry in my To-Do List but the Menu tab shows To-Do List[0] and does not show what I expect which should be To-Do List[1]
Screenshot attached
snifftheglove, it showing correct. There is shows only need to do that day. So, will be show as To-Do List [1] at 01.10.2010 Friday.
Thank you for explaining.
Quote from: snifftheglove on July 27, 2010, 11:21:49 AM
I have Ver 2.0 installed on SMF 2 RC3 and using the Mobile_alt Theme from Crip.
Now I have currently one entry in my To-Do List but the Menu tab shows To-Do List[0] and does not show what I expect which should be To-Do List[1]
Screenshot attached
Ah, I see this was my problem as well. I would really prefer there to be no dates, and the list just holds whatever I have to do in total.
doesn't say "To-Do List" just a number
Hello, grafitus. You made the excellent mod, but could you improve it a little bit?
I mean, It would be wonderful if you add some new features to it. For example, the admin of the forum make task for a specific moderator (or to all of them). In other words 'ToDo'-list visible for all moderators AND a possibility to gain tasks from the admins.
Of course I wish you make it for all groups that the admins can create, not only from the admins.
PS: By the way, do you still support your mod? And will you make any new expansions for it in future?
This mod is awesome, thanks for making it!
I agree, being able to set tasks for users would be pretty awesome also. Would let me bother my staff ha ha.
Just a heads up this mod breaks my shoutbox...
$txt['to_do_empty'] = !$context['user']['is_admin'] ? 'To-Do List is empty!' : 'To-Do List is empty! Are you free man? :)';
[28-Dec-2012 01:42:53 America/New_York] PHP Notice: Undefined index: user in /Themes/default/languages/Modifications.english.php on line 837
I fixed it but....What is the point of it anyway? I thought these were individual? Like I had my own and my members had their own, and so on?
jade maybe explain what you did to fix it so in case others get same issue
I removed everything but the text string
$txt['to_do_empty'] = 'To-Do List is empty!';
i got these failed tests when trying to install this mod. running smf 2.0.9.
this has happened when installing other mods as well. someone told me that there might be problems between mods and that i should edit or manually install subs.php. what exactly does this mean though- how can i manually install and what should i look to edit? thanks in advance for your help
Hi vkash!
Take a look at this couple of resources:
http://wiki.simplemachines.org/smf/Error_in_mod_installation
http://wiki.simplemachines.org/smf/Manual_installation_of_mods
Hope that helps
Quote from: luuuciano on November 13, 2014, 06:54:25 AM
Hi vkash!
Take a look at this couple of resources:
http://wiki.simplemachines.org/smf/Error_in_mod_installation
http://wiki.simplemachines.org/smf/Manual_installation_of_mods
Hope that helps
That does. Thanks!
hi, i followed the instructions in the error in mod installation article and went ahead and installed the mod. i then went into my ftp and added the recomended code that my package installer told me to add. however, i cannot see the todo list tab in my forum nor can i find it anywhere for that matter. any help? here is a screen shot of the code i added (the todo array)
here is the code that was recommended to be changed in the install manager:
find:
'mlist' => array(
'title' => $txt['members_title'],
replace:
'todo' => array(
'title' => function_exists('get_today_todos') ? get_today_todos() : '',
'href' => $scripturl . '?action=todo',
'show' => $context['allow_view_todolist'],
'sub_buttons' => array(
'add' => array(
'title' => $txt['to_do_add'],
'href' => $scripturl . '?action=todo;sa=add',
'show' => allowedTo('add_new_todo'),
'is_last' => true,
),
),
),
'mlist' => array(
'title' => $txt['members_title'],
Well tried to install this on SMF 2.0.9 and got a mess...
Parse error: syntax error, unexpected 'n' (T_STRING) in /././public_html/forum/Sources/Subs.php on line 2460
my line 2460 in
$month = date('n');
help?
Got this error in my Logs.
Quote from: ariescapes on December 21, 2015, 05:24:08 AM
Apply Filter: Only show the error messages of this URLhttp://www.*******.com/index.php?action=admin;area=logs;sa=errorlog;descApply Filter: Only show the errors with the same message8: Undefined index: is_adminApply Filter: Only show the errors from this file File: /home/***/888/Themes/default/languages/Modifications.english.php
Line: 148
When I go there:
$txt['to_do_empty'] = !$context['user']['is_admin'] ? 'To-Do List is empty!' : 'To-Do List is empty! Are you free man? :)';
Which is This Mod:
Quote11. To-Do List 2.0 [ Uninstall ] [ List Files ] [ Delete ]
Not sure how to edit this one.
Why not do what Jade did, and just remove the admin check altogether?
http://www.simplemachines.org/community/index.php?topic=369039.msg3462340#msg3462340
I can't see any use to the alternative message you have in that variable.
$txt['to_do_empty'] = 'To-Do List is empty!';
$txt['to_do_empty'] = 'To-Do List is empty! Are you free man? :)';
If I find some time I will update this mod soon
Makes sense. The language files i'm the least familiar with so help is always nice. Thanks!
And it seems to have taken care of my problem! w00t!