• [Plugin] Simple TODO List for Admin CP v0.23b 5 0 5 1
Currently:  

Author Topic: [Plugin] Simple TODO List for Admin CP v0.23b  (Read 120273 times)

0 Members and 1 Guest are viewing this topic.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Plugin] Simple TODO List for Admin CP v0.23b
« on: November 14, 2007, 01:40:12 PM »
UPDATE 21.07.2008 >>> v0.23b


1.)
place todo.php into your admin/plugins folder (todo.zip attached on bottom from this post)

2.)
into includes/constants.php add anywhere

Code: [Select]
define('TODO_TABLE', $table_prefix.'todo');


3.)
BACKUP YOUR DATABASE FIRST!
place install_todo.php where your 4images config.php file is (install_todo.zip attached on bottom from this post)


run > http://www.yourhome.com/4images/install_todo.php
DELETE this file when it was succesfull

 3a.
 OR
 for phpmyadmin gurus
 4images_todo_SQL is for phpmyadmin to create new table 4images_todo (if prefix (4images_) not match please change)


4.)
into lang/english/admin.php

add this anywhere (english language)
Code: [Select]
//-----------------------------------------------------
//--- START TODO LIST LANGUAGE PACK -------------------
//-----------------------------------------------------
$lang['field_todo_id_contains'] = "TODO ID contains";
$lang['field_todo_name_contains'] = "TODO Name contains";
$lang['field_todo_description_contains'] = "TODO Description contains";
$lang['field_todo_done_contains'] = "TODO done contains";
$lang['field_todo_name'] = "TODO Name";
$lang['field_todo_description'] = "TODO Description";
$lang['field_todo_done'] = "Mark TODO as done";
$lang['field_create_date'] = "TODO created on";
$lang['field_create_date_before'] = "TODO created date before";
$lang['field_create_date_after'] = "TODO create date after";
$lang['field_should_date'] = "TODO target date";
$lang['field_should_date_before'] = "TODO target date before";
$lang['field_should_date_after'] = "TODO target date after";
$lang['field_done_date'] = "TODO done on";
$lang['field_done_date_before'] = "TODO done date before";
$lang['field_done_date_after'] = "TODO done date after";
$lang['todo_done'] = "TODO successfully closed";
$lang['todo'] = "TODO";
$lang['nav_todo_search'] = "TODO search";
$lang['nav_todo_edit'] = "TODO edit";
$lang['nav_todo_add'] = "TODO add";
$lang['todo_edit_success'] = "TODO successfully edited";
$lang['todo_delete_success'] = "TODO deleted from TODO List";
$lang['delete_todo_confirm'] = "Do you want do delete selected TODO's?";
$lang['todo_delete_error'] = "Delete Error";
$lang['todo_add_success'] = "TODO('s) added";
$lang['todo_add_error'] = "Add error";
$lang['todo_nr']   = "TODO Nr.";
$lang['num_addnew_todo_desc'] = "How much TODO's want you to add ? ";
$lang['todo_show'] = "Show";
//-----------------------------------------------------
//--- END TODO LIST LANGUAGE PACK ---------------------
//-----------------------------------------------------

german language (deutsche sprache)
ins lang/deutsch/admin.php
Code: [Select]
//-----------------------------------------------------
//--- START TODO LIST LANGUAGE PACK -------------------
//-----------------------------------------------------
$lang['field_todo_id_contains'] = "TODO ID enthält";
$lang['field_todo_name_contains'] = "TODO Name enthält";
$lang['field_todo_description_contains'] = "TODO Beschreibung enthält";
$lang['field_todo_done_contains'] = "TODO erledigt enthält";
$lang['field_todo_name'] = "TODO Name";
$lang['field_todo_description'] = "TODO Beschreibung";
$lang['field_todo_done'] = "Markiere TODO als erledigt";
$lang['field_create_date'] = "TODO erstellt am";
$lang['field_create_date_before'] = "TODO erstellt: Datum vor dem";
$lang['field_create_date_after'] = "TODO erstellt: Datum nach dem";
$lang['field_should_date'] = "TODO erledigen bis";
$lang['field_should_date_before'] = "TODO erledigen: Datum vor dem";
$lang['field_should_date_after'] = "TODO erledigen: Datum nach dem";
$lang['field_done_date'] = "TODO erledigt am";
$lang['field_done_date_before'] = "TODO erledigt: Datum vor dem";
$lang['field_done_date_after'] = "TODO erledigt: Datum nach dem";
$lang['todo_done'] = "TODO erfolgreich abgeschlossen";
$lang['todo'] = "TODO";
$lang['nav_todo_search'] = "TODO suchen";
$lang['nav_todo_edit'] = "TODO editieren";
$lang['nav_todo_add'] = "TODO zufügen";
$lang['todo_edit_success'] = "TODO erfolgreich bearbeitet";
$lang['todo_delete_success'] = "TODO aus der TODO Liste gelöscht";
$lang['delete_todo_confirm'] = "Wollen Sie diese(s) TODO('s) wirklich löschen?";
$lang['todo_delete_error'] = "Fehler beim Löschen des(r) TODO('s)";
$lang['todo_add_success'] = "TODO erfolgreich hinzugefügt";
$lang['todo_add_error'] = "Fehler beim Hinzufügen des TODO";
$lang['todo_nr']   = "TODO Nr.";
$lang['num_addnew_todo_desc'] = "Wieviele Todo's willst du zufügen ? ";
$lang['todo_show'] = "Anzeigen";
//-----------------------------------------------------
//--- END TODO LIST LANGUAGE PACK ---------------------
//-----------------------------------------------------


ONLY for UPDATE from v0.1 to v0.2
BACKUP YOUR DATABASE FIRST!
place update_todo_from_v0.1_to_v0.2.php where your 4images config.php file is (update_todo_from_v0.1_to_v0.2.zip attached on bottom from this post)
run > http://www.yourhome.com/4images/update_todo_from_v0.1_to_v0.2.php
DELETE this file when it was succesfull

replace language packs to be v0.23b conform...
« Last Edit: July 21, 2008, 05:57:09 PM by Nicky »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
[Plugin for 1.7.4] Simple TODO List
« Reply #1 on: November 14, 2007, 11:58:19 PM »
Thank you very much Nicky.
It is very nice of you to do that.

I just intalled it and it is working almost the way I want it.
Good luck with the gallery,
Cruxy  :D
« Last Edit: November 15, 2007, 07:42:42 AM by Nicky »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
[Plugin for 1.7.4] Simple TODO List
« Reply #2 on: November 15, 2007, 12:10:43 AM »
Hallo Nicky,

... Thema teilen (über deinem Post ... ;)) ... und als MOD in Mods & Plugins (Releases & Support) verschieben ...
... könnte ich auch machen ... doch es ist dein MOD ...  :mrgreen:
... Danke ...
« Last Edit: November 15, 2007, 07:42:56 AM by Nicky »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #3 on: November 15, 2007, 07:44:30 AM »
jaja, ist schon gut.. muss ich alles selber machen :) *war nur scherz*
gerade erledigt und betreff geändert.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.421
    • View Profile
    • 4images - Image Gallery Management System
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #4 on: November 15, 2007, 12:46:03 PM »
Thanks Nicky!
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

rinaldos

  • Guest
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #5 on: November 16, 2007, 12:14:27 PM »
Hallo Nicky,
Das script läuft wunderbar. Vielleicht kannst du es erweitern.
Wenn man auf TODO List klickt, das du dann direkt angezeigt bekommst, welche Sachen noch offen sind und erst dann die Auswahl zum suchen / hinzufügen kommt.


Gruß
Ingo

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #6 on: November 17, 2007, 08:00:14 PM »
hi rinaldos,

ich kümmere mich drum heute oder morgen
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #7 on: November 17, 2007, 08:09:11 PM »
please re-download todo.zip
and replace it.

found a bug.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #8 on: November 19, 2007, 10:20:48 AM »
rinaldos request done..

please re-download todo.zip
and replace it.

replace lang file too.

cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

rinaldos

  • Guest
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #9 on: November 19, 2007, 10:30:35 AM »
Wow,
das ging super schnell. Habe es mir auhc schon draufgepackt und muss sagen, es arbeitet einwandfrei. Also meine bisherigen 5 todo's werden gut angezeigt :-)
Danke dir dafür......

Gruß
Ingo

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List
« Reply #10 on: November 19, 2007, 10:34:20 AM »
todo.php
line 456
Code: [Select]
            LIMIT 20";

20 entries will be showed on home site, if you want more or less change it

rinaldos,
gerne, kein problem.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline m.a

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List for Admin CP
« Reply #11 on: November 22, 2007, 03:14:12 AM »
Danke Nicky! :thumbup:

ich habe eine Frage!
Wie kann ich die grosse von textarea ($textarea_size) ändern?

Danke im Voraus
m.a


Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List for Admin CP
« Reply #12 on: November 22, 2007, 07:48:18 AM »
hi m.a

öffne die admin/admin_global.php

zeile 81
Code: [Select]
if (strstr(getenv("HTTP_USER_AGENT"), "MSIE")) { // Browser Detection
  $textinput_size = "50";
  $textinput_size2 = "30";
  $textarea_size = "50";
}
else {
  $textinput_size = "30";
  $textinput_size2 = "17";
  $textarea_size = "28";
}

ändere für MSI
Code: [Select]
  $textarea_size = "50";

oder andere browser
Code: [Select]
  $textarea_size = "28";

auf eine grössere zahl (MSI z.b.: 120).

LG
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline m.a

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List for Admin CP
« Reply #13 on: November 22, 2007, 03:40:57 PM »
Hi Nicky,
danke danke!

Ich meine aber mehr die Grösse von textarea in todo.php.
Eine Änderung in admin/admin_global.php wirkt aber die gesamte textarea ($textarea_size) in Admin-Bereich!
Ich kann auch damit eine grössere textarea bekommen und so fast zufrieden! aber!
Geht nur allein die Grösse (textarea) von todo.php ändern?

Danke dir nochmal im Voraus
m.a

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Plugin for 1.7.4] Simple TODO List for Admin CP
« Reply #14 on: November 22, 2007, 03:48:17 PM »
ok :)

füge in der todo.php unter
Code: [Select]
require(ROOT_PATH.'admin/admin_global.php');

dies:
Code: [Select]
$textarea_size_todo = "120";


suche nach (kommt 2 mal vor)
Code: [Select]
, $textarea_size

ersetze es mit
Code: [Select]
, $textarea_size_todo

voilla :)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi