News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

To-Do List

Started by Diego Andrés, March 05, 2010, 05:12:48 PM

Previous topic - Next topic

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.

searchgr

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.

grafitus

@Bugo, I'm sorry. I hope my editor problematic. :/

@searchgr, Hımm.. I will evaluate. ;)

aussieherps

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.
http://aussieherps.com">snakes lizards spiders turtles and much more

Siirist

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
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

grafitus

I don't have any thought. Can you attach screenshots? (For Bright Forest, Core, Mystic Jade themes)

mirahalo

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.

Code (find) Select
global $context, $txt, $scripturl;

Code (add after) Select
isAllowedTo('to_do');

Open ./Sources/Subs.php.

            
Code (find) Select
'href' => $scripturl . '?action=todo',
'show' => $context['allow_edit_profile'],


         
Code (replace with) Select
'href' => $scripturl . '?action=todo',
'show' => allowedTo('to_do'),



open /Themes/deault/language/Modifications.yourlanguage.php


Code (find) Select
$txt['to_do_priority2'] = 'High';


Code (add after) Select
$txt['permissionname_to_do'] = 'see the to do list';



open /Sources/ManagePermissions.php

Code (find) Select
'search_posts' => array(false, 'general', 'view_basic_info'),


Code (add after) Select
'to_do' => array(false, 'general', 'view_basic_info'),




;)

Siirist

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)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

grafitus

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). ^^

Siirist

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)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Antes

Grafitus want me add this to this topic ( he muted )

Open ./Themes/default/ToDo.template.php file.
Code (find) Select
global $txt, $todo, $context, $scripturl, $settings;
Code (replace) Select
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');

Siirist

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.
Code (find) Select
global $txt, $todo, $context, $scripturl, $settings;
Code (replace) Select
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)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

akbora

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.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

grafitus

Sorry, I can't do that nowadays... Because I've exams and I'm some sick.

luuuciano

it would be great if you add the suggested code by 130860 at #26, so we can use permissions
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

MissyNL

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...
Sorry for my poor English, but i think it's probably better then your Dutch :)

grafitus

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.
Code (Find) Select
loadTemplate('ToDo');

$id_member = $context['user']['id'];

Code (Replace and edit the required fields) Select
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.)

Bugo

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.

grafitus

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

Liam.

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...

Advertisement: