How to quickly add another user to SamTodo 1.1

I realize I have been taking my time with SamTodo 1.2, so here is a little something you can do until multi-user support becomes native.
Note: Please backup everything (including your database) before trying this!

STEP 1

EDIT _model\global\act_config.php

Add an $account_name2, and $account_password2 underneath the originals so it looks something like this:

STEP 2

EDIT _model\account\act_login.php

Change line 13 to 25 from:

To:

STEP 3

EDIT your samtodo_tasks table
Add a new column named ‘taskCreator’, make it a varchar of length 12 (or however long your username’s max length may be)

STEP 4

EDIT _model/main/act_task_editor.php

Change lines 30 to 38 from:

To:

STEP 5

EDIT same file as above _model/main/act_task_editor.php

Change line 51 to 53 from:

To:

STEP 6

EDIT _view/main/dsp_main.php

Under line 97, which is:

Add:

STEP 7

EDIT same file as above _view/main/dsp_main.php

Under line 121, which is:

Add:

STEP 8

EDIT same file as above _view/main/dsp_main.php

Under line 157, which is:

Add:

STEP 9

EDIT same file as above _view/main/dsp_main.php

Change line 190 from:

To:

Et voilĂ ! You are done.

Additionally you could also add further users by expanding Step 1 and 2.
If you have any questions, let me know!

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>