ToDo/Project List

Creating and modifying plugins.
n2ition
Regular
Posts: 58
Joined: Sun Mar 20, 2005 8:43 pm
Location: Dallas, TX
Contact:

ToDo/Project List

Post by n2ition »

I have just installed a copy of the the ToDo/Project list plugin on my site and thought I do like a couple of the features I was wondering if there was a way to change some of the configuration.

I am using a project tracker from houseblogs.net and really liked it (it is flash based for the graphic itself) but I really like utilizing the s9y plugins when I can.

A couple of suggestions are I have for the continued development of the s9y version are:

1. Make each project tracker configurable in it's own color (rather than one color for all the trackers unless you install the plugin multiple times) I like the ability to have a "master project" tracker in one color and then all "sub-projects" in a second color. (On my siteit would be Office Completion as the master project and all the other projects are sub-projects for the office.)

2. Make the size of the trackers themselves configurable. 160x20 is a really large tracker size. Depending on the space it would be nice to be able to configure the size by either pixel or even a "small" "medium" or "large" radio button selection.

3. The font style and size within the tracker itself. In the current plugin the font size is really disporportionate to the rest of the text on my site.

These are just suggestions. Take em or leave em. I'll keep an eye on the boards to see if any of the changes I need are ever implimented. If not I can stick with the other tracker
The good news is the bad news is wrong! Random Kindness Project
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: ToDo/Project List

Post by garvinhicking »

I just forwarded your issue to the author of that plugin, Steve Tonnessen. Maybe he finds some time to implement it, your wishes do seem quite reasonable :-)

Thanks to Steve for creating the cool plugin!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cottonwood
Regular
Posts: 20
Joined: Mon Apr 25, 2005 6:05 pm

Re: ToDo/Project List

Post by cottonwood »

n2ition wrote: 1. Make each project tracker configurable in it's own color (rather than one color for all the trackers unless you install the plugin multiple times) I like the ability to have a "master project" tracker in one color and then all "sub-projects" in a second color. (On my siteit would be Office Completion as the master project and all the other projects are sub-projects for the office.)
Done. I hate using hex codes for this, but that's what I've done for now. A nicer solution might be a color editor were you can create a list of colors, and then just select one of those colors from a dropdown box for each project.
n2ition wrote: 2. Make the size of the trackers themselves configurable. 160x20 is a really large tracker size. Depending on the space it would be nice to be able to configure the size by either pixel or even a "small" "medium" or "large" radio button selection.
I had already implemented half of this, making the bar width configurable. I've added a bar height variable as well.
n2ition wrote: 3. The font style and size within the tracker itself. In the current plugin the font size is really disporportionate to the rest of the text on my site.
Font size is now a plugin configuration variable. Making the font itself configurable is more problematic. I suppose I could include a selection of truetype fonts with the plugin and select from them, and the plugin user could add their own truetype fonts to a font directory and they would show up as options.
cottonwood
Regular
Posts: 20
Joined: Mon Apr 25, 2005 6:05 pm

Re: ToDo/Project List

Post by cottonwood »

n2ition wrote: 3. The font style and size within the tracker itself. In the current plugin the font size is really disporportionate to the rest of the text on my site.
Okay, full font configuration has been implemented. The next CVS update of the todolist plugin will include 7 fonts that you can pick from and set the display size of. You can also add your own TrueType fonts to the fonts directory and they will show up in the configuration page of the Todo/List plugin.

I don't have CVS access, so these changes won't show up until Garvin checks them in for me.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: ToDo/Project List

Post by garvinhicking »

I've committed the changes to the additional_plugins right now. Should take no more that 24 hours for SF.Net to upgrade...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
n2ition
Regular
Posts: 58
Joined: Sun Mar 20, 2005 8:43 pm
Location: Dallas, TX
Contact:

Post by n2ition »

You guys are AWSOME!

When I get a few minutes I will be installing the new plugin!

By the way cottonwood...I prefer hex colors as the allow me to go with the exact colors I use on my template. If you decide to go with a dropdown menu in the future PLEASE leave the option for hex values as well. :)
The good news is the bad news is wrong! Random Kindness Project
cottonwood
Regular
Posts: 20
Joined: Mon Apr 25, 2005 6:05 pm

Post by cottonwood »

n2ition wrote:You guys are AWSOME!

When I get a few minutes I will be installing the new plugin!

By the way cottonwood...I prefer hex colors as the allow me to go with the exact colors I use on my template. If you decide to go with a dropdown menu in the future PLEASE leave the option for hex values as well. :)
My proposal was that you could create a table of colors (using hex values) and then select from this list of colors for your different tasks. I was just thinking that would be easier than copy-n-pasting #4d6ac2d every time. :)

If you want the latest copy with some database update fixes that Garvin hasn't commited yet, you can get them at:

http://hss-labs.cmsd.bc.ca/serendipity_event_todolist-1.7.tar.gz
rahul

PROJECT / TO DO LIST

Post by rahul »

Hello Dear,

From where can i download the Projects / To Do plug in?
I've recently installed the 0.8 version of serendipity and just was searching the forum for some updations to add / track projects.

Please tell me how can i install / download the projects thing.



Waiting eagerly for the reply.

Regards,
Rahul
rahul

PROJECT / TO DO LIST

Post by rahul »

I installed the latest project plugin.
But i'm not able to add the categories.
Whenever i add the categories it flashes the errors

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 366

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 369

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 372

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 375

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 378

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 386

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 389

Warning: Invalid argument supplied for foreach() in D:\Apache Group\Apache2\htdocs\serendipitydemo\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 392
Manage categories
Category Name
Parent Category
Color
Administer Categories

Category Color

Please suggest me what to do. Is it working fine for everybody else ?
rahul

PROJECT / TO DO LIST

Post by rahul »

Continued....

Actually, this description i forgot to mention.
The error i get as soon as i press the Save button either while adding the projects or while adding the categories.

Also, whenever i add category, it is not being added. It's not displayed in the list that is shown below.

SAVE button is really generating problems for me. Please try to figure it out as soon as possible.

Regards,
Rahul
Guest

Re: PROJECT / TO DO LIST

Post by Guest »

What version of PHP do you have installed? Are you having any other problems with serendipity? Have you been using serendipity successfully in the past and only this one plugin is causing trouble?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: PROJECT / TO DO LIST

Post by garvinhicking »

Rahul, it seems you are using a Windows Apache 2 Installation, this sounds maybe like the root of all your trouble. Did you try Serendipity with a simple Apache1 setup? And which PHP version are you using?

You could temporarily try to edit the plugin file and replace $_POST['serendipity'] with $serendipity['POST'] in all occurences? and if that fails as well, please go to a nopaste service (http://nopaste.php-q.net/) and there post the HTML output of your admin page BEFORE you hit the SAVE button so that we can see how your <form> looks like.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Operator

Another problem with ToDo List

Post by Operator »

Everytime I try to install the ToDo plugin, I get those error messages on top of the page:
Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 38 in C:\xampplite\htdocs\blogs\serendipity\plugins\serendipity_event_todolist\serendipity_event_todolist.php on line 262
I'm using the XAMPP-Lite package for testing purposes. (www.apachefriends.de)
(Apache 2.0.53 + PHP 5.0.4)

What did I do wrong this time? :D Thx in advance :wink:

@Garvin: Anything on that first suggestion here (http://www.s9y.org/forums/viewtopic.php?t=1671)? :)


Greetings



Operator
Guest

Re: Another problem with ToDo List

Post by Guest »

Operator wrote:Everytime I try to install the ToDo plugin, I get those error messages on top of the page:
Okay, that looks like my problem. I wasn't escaping the backslashes that windows systems use for file delimeters.

On line 262 of plugins/serendipity_event_todolist/serendipity_event_todolist.php change:

Code: Select all

if (preg_match('/\.ttf$/i', $font)) {
    $font = preg_replace('#'.dirname(__FILE__).'/fonts/#','',$font);
    $select[$font]=$font;
}
to:

Code: Select all

if (preg_match('#[^/\\\\]+.ttf$i#', $font, $matches)) {
    $font=$matches[0];
    $select[$font]=$font;
}
That should fix that problem.
Operato

THX MAN

Post by Operato »

Wow, thx a great bunch. That really fixed it 8)


Greetings



Operator
Post Reply