Roundcube Community Forum

 

Sticky Notes Plugin

Started by rosali, February 06, 2010, 02:10:27 AM

Previous topic - Next topic

rosali

There were some requests for Sticky Notes plugin from Squirrelmail users.

I have coded the framework (attached).

I need some help from the professional to get it perfect:

/**
 *
 *  ToDo: Switch button if $count > 0 (need notes button merged with a red exclamation mark)
 *        Limit amount of notes (has to be done in the jquery stuff)
 *        Min width/height when resizing a note (has to be done in the jquery stuff)
 *        More appropriate background than this ugly wooden wallpaper
 *
 **/

Notice: There are two plugins attached (sticky_notes and jquery plugin)!
Regards,
Rosali

rosali

Forgot to mention:

Please remove:   public $task = "dummy";

Forgot to do that (it is debugging code).
Regards,
Rosali

rosali

A question for the professionals ...

Are there any concerns to have a tag for stylesheets in the body section instead of the head?

The background of this question is that I plan to implement some template_object_... hooks in the jquery plugin to get f.e. the datepicker with a template_object instead of having all the stuff in the skin template.
Regards,
Rosali

SKaero

The tag should only go it the header the html won't validate in the body, It may not work in all browser because of that. I'd recommend trying to get it in the header but if you can't try it in the body and see if it works. Nice plugin, can you make the sticky note change color?

rosali

Thanks skaero,

I saw here jQuery Sticky Notes Plugin that it might be also ok in the body section.

Could you please be more detailed what you expect by "change color". Currently it is using a background image. So, I would need new images and I'm not really skilled in image designing.
Regards,
Rosali

SKaero

I was think of option to change the sticky color so I could have a blue, green, yellow, etc. colored sticky to categorize notes.

doctor madness

Hi,

I was ready to learn php just to try to make this plugin ;)
So, I get the archive, i unzipped it, stored both directory (sticky_notes and jquery) in plugins directory,added 'sticky_notes' to my plugins list, but then nothing happened, no "notes" or similar appears. How may I use this pluging ?

SKaero

In the sticky_notes.php remove the line:
public $task = "dummy";its on line 34.

dinhnguunguyen

When I add sticky notes:
1. Roundcube load incorrect in IE (layout is broken and IE diplay error: Webpage error details

Message: Invalid argument.
Line: 88
Char: 9
Code: 0
URI: http://...../skins/default/splitter.js?s=1265005198)
2. Repeat message: Server Error (Ok)
Please help me!

SKaero

Is there anything in your error logs.

rosali

@ doctor madness,

you have to register both, sticky_notes and jquery. Also remove the dummy task in sticky_notes.php as skaero adviced above.
Regards,
Rosali

doctor madness

Hi,

1st of all, I have to admit I forgot to comment the
public $task = "dummy";
So i did it, and I've the notes icon, and when I click on it, i've a wonderful wood paper, and a note. but it's impossible to do anything else than writing in this note. I can't save (there are no button) nor move it.
In the error log file from roundcube, nothing about this problem.
In the error console in FF :
Erreur : _div_wrap.resizable is not a function
Fichier Source : http://my_ip/plugins/sticky_notes/skins/default/jquery.stickynotes.js?s=1265715383
Ligne : 78
and many others

SKaero

Did you run the SQL in SQL/mysql.sql?

doctor madness

Yes, I run the SQL script, the "notes" tables has been created.

danielnowak

Hello,

i am the author of the above mentioned jquery sticky notes plugin and in the company i am working for we are using roundcube. So if you need any help do not hesitate to ask me. the mail group for these kind of issues can be found here: jQuery Sticky Notes | Google Groups