Author Topic: Sticky Notes Plugin  (Read 24851 times)

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Sticky Notes Plugin
« on: February 06, 2010, 02:10:27 AM »
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
__________________
MyRoundcube Project (commercial)

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Sticky Notes Plugin
« Reply #1 on: February 06, 2010, 02:33:01 AM »
Forgot to mention:

Please remove:   public $task = "dummy";

Forgot to do that (it is debugging code).
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Sticky Notes Plugin
« Reply #2 on: February 06, 2010, 04:04:55 AM »
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
__________________
MyRoundcube Project (commercial)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Sticky Notes Plugin
« Reply #3 on: February 08, 2010, 02:51:13 AM »
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?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Sticky Notes Plugin
« Reply #4 on: February 08, 2010, 03:12:19 AM »
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
__________________
MyRoundcube Project (commercial)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Sticky Notes Plugin
« Reply #5 on: February 08, 2010, 03:22:48 AM »
I was think of option to change the sticky color so I could have a blue, green, yellow, etc. colored sticky to categorize notes.

Offline doctor madness

  • Jr. Member
  • **
  • Posts: 21
Sticky Notes Plugin
« Reply #6 on: February 09, 2010, 02:26:47 AM »
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 ?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Sticky Notes Plugin
« Reply #7 on: February 09, 2010, 02:56:04 AM »
In the sticky_notes.php remove the line:
Code: [Select]
public $task = "dummy";its on line 34.

Offline dinhnguunguyen

  • Newbie
  • *
  • Posts: 3
Sticky Notes Plugin
« Reply #8 on: February 09, 2010, 03:17:19 AM »
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!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Sticky Notes Plugin
« Reply #9 on: February 09, 2010, 03:28:27 AM »
Is there anything in your error logs.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Sticky Notes Plugin
« Reply #10 on: February 09, 2010, 04:58:50 AM »
@ 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
__________________
MyRoundcube Project (commercial)

Offline doctor madness

  • Jr. Member
  • **
  • Posts: 21
Sticky Notes Plugin
« Reply #11 on: February 09, 2010, 08:46:45 AM »
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Sticky Notes Plugin
« Reply #12 on: February 09, 2010, 09:16:17 AM »
Did you run the SQL in SQL/mysql.sql?

Offline doctor madness

  • Jr. Member
  • **
  • Posts: 21
Sticky Notes Plugin
« Reply #13 on: February 10, 2010, 02:40:14 AM »
Yes, I run the SQL script, the "notes" tables has been created.

Offline danielnowak

  • Newbie
  • *
  • Posts: 1
Author of jquery sticky notes plugin
« Reply #14 on: February 15, 2010, 07:42:45 AM »
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