RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > API Based Plugins

For more information about the ads and why they're here, please see the FAQ

Reply
  #1  
Old 02-06-2010, 06:10 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,681
Default Sticky Notes Plugin

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)!
Attached Files
File Type: zip sticky_notes.zip (943.1 KB, 63 views)
__________________
Regards,
Rosali

__________________
MyRoundcube Project http://myroundcube.googlecode.com
MyRoundcube Online Demo http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube
Mailing List http://mail4us.net/?_action=plugin.nabble
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-06-2010, 06:33 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,681
Default

Forgot to mention:

Please remove: public $task = "dummy";

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

__________________
MyRoundcube Project http://myroundcube.googlecode.com
MyRoundcube Online Demo http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube
Mailing List http://mail4us.net/?_action=plugin.nabble
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-06-2010, 08:04 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,681
Default

A question for the professionals ...

Are there any concerns to have a <link ..> 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 http://myroundcube.googlecode.com
MyRoundcube Online Demo http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube
Mailing List http://mail4us.net/?_action=plugin.nabble
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-08-2010, 06:51 AM
skaero's Avatar
Super Moderator
 
Join Date: Jun 2006
Location: USA - New Mexico
Posts: 1,378
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default

The <link> 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?
__________________
SKaero.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-08-2010, 07:12 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,681
Default

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 http://myroundcube.googlecode.com
MyRoundcube Online Demo http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube
Mailing List http://mail4us.net/?_action=plugin.nabble
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-08-2010, 07:22 AM
skaero's Avatar
Super Moderator
 
Join Date: Jun 2006
Location: USA - New Mexico
Posts: 1,378
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default

I was think of option to change the sticky color so I could have a blue, green, yellow, etc. colored sticky to categorize notes.
__________________
SKaero.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 02-09-2010, 06:26 AM
Registered User
 
Join Date: Dec 2009
Posts: 21
Default

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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 02-09-2010, 06:56 AM
skaero's Avatar
Super Moderator
 
Join Date: Jun 2006
Location: USA - New Mexico
Posts: 1,378
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default

In the sticky_notes.php remove the line:
Code:
public $task = "dummy";
its on line 34.
__________________
SKaero.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 02-09-2010, 07:17 AM
Roundcube Newcomer
 
Join Date: Feb 2010
Posts: 3
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 02-09-2010, 07:28 AM
skaero's Avatar
Super Moderator
 
Join Date: Jun 2006
Location: USA - New Mexico
Posts: 1,378
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default

Is there anything in your error logs.
__________________
SKaero.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community