Author Topic: new plugin: message highlighting  (Read 72891 times)

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
new plugin: message highlighting
« Reply #60 on: March 29, 2011, 06:01:08 AM »
I released a new version 1.1 that works with RC 0.5. You can get it here:  Roundcube Plugins | Underwater World

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
new plugin: message highlighting
« Reply #61 on: March 29, 2011, 06:34:39 AM »
Sorry, released another version right away. 1.11.  This fixes the issue from the thread above regarding not finding CC.   This was due to RC not fetching the CC header for the message list. I add it now to the headers to be fetched, and that fixes the issue.

Offline leduc

  • Newbie
  • *
  • Posts: 4
new plugin: message highlighting
« Reply #62 on: April 05, 2011, 11:27:02 AM »
Hello, this plugin runs really great, but I have a request :

Is it possible to use your plugin in complement to the flags plugin ?

This plugin put flags in the headers message but don't color the row.

To make like the flags in Thunderbird.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
new plugin: message highlighting
« Reply #63 on: April 05, 2011, 11:33:13 AM »
Quote from: leduc;34108
Hello, this plugin runs really great, but I have a request :

Is it possible to use your plugin in complement to the flags plugin ?

This plugin put flags in the headers message but don't color the row.

To make like the flags in Thunderbird.

Sounds like you want this plugin: http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/8207-new-plugin-beta-labels.html

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
new plugin: message highlighting
« Reply #64 on: April 06, 2011, 09:05:50 PM »
Cant you just use both plugins? One for flags, one for colors?

xpresshred

  • Guest
new plugin: message highlighting
« Reply #65 on: April 09, 2011, 02:20:46 AM »
Hi,thanks for sharing the information here....

Denver industrial paper shredder
       Denver Paper Shredding

Offline leduc

  • Newbie
  • *
  • Posts: 4
new plugin: message highlighting
« Reply #66 on: April 13, 2011, 05:35:09 AM »
I already use both, but the flags plugin doesn't colorised row.

In fact, I would now how to get the header flag  from Imap to add in your plugin, anybody know ?

And after configure the color for the different flag with the plugin like any other possibility (object, from ... and flag :) ).

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
new plugin: message highlighting
« Reply #67 on: April 13, 2011, 07:54:18 AM »
so you want row colors based on flags? You'd have to ask the flags plugin author to add row colors.

Offline Joinon

  • Newbie
  • *
  • Posts: 1
chinese translation
« Reply #68 on: May 21, 2011, 12:54:27 AM »
Hi, this is the chinese translation for V1.11
« Last Edit: May 21, 2011, 01:13:15 AM by Joinon »

Offline Mighty

  • Jr. Member
  • **
  • Posts: 12
new plugin: message highlighting
« Reply #69 on: July 25, 2011, 06:25:45 PM »
Color picker still doesn't work in Firefox v5.0 release.

I'm an experienced programmer, but new to JQuery.  I've skimmed the code, but nothing obvious is jumping out at me.  I threw a debug statement into the Save method and apparently the color array is coming back empty.

Can anyone point me at a quick fix?  Maybe a pointer to a likely area that might cause this issue?  Or, to an alternate color picker that will slip in easily?

I may just rip out the picker and change it to a text field, for now.  Didn't think of that last night when I was tired.

Anyway.  Maybe the author can take a look at this.  Or, if anyone has any suggestions and I get it working then I'll post back with my changes.

Drake

P.S. Oh, yeah.  Brand new install, 0.5.3.  message_highlight is the first plugin I have installed.  It's the only one installed, so far.
« Last Edit: July 25, 2011, 06:44:04 PM by Mighty »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
new plugin: message highlighting
« Reply #70 on: July 26, 2011, 12:25:31 AM »
Cor, there is another bug.

If I have only one highlight definition and try to delete it, I get back an empty settings iframe. When entering the highlight settings section again. The item is shown again. So, it looks like it isn't possible to delete the last remaining item.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Mighty

  • Jr. Member
  • **
  • Posts: 12
new plugin: message highlighting
« Reply #71 on: July 26, 2011, 02:28:39 AM »
Here's a brute-force workaround for Firefox, to remove the color picker and just have a text box.  I only had to touch three spots in the file message_highlight.php:

Line 25:
Comment out the color picker Javascript file
Code: [Select]
// myt    $this->include_script('colorpicker/mColorPicker.js');

Line 109:
Change the control to a text field
Code: [Select]
// myt    $color = html::tag('input', array('id' => uniqid() ,'name' => '_mh_color[]' ,'type' => 'color' ,'text' => 'hidden', 'class' => 'mh_color_input', 'value' => $color));
$color = new html_inputfield(array('name' => '_mh_color[]', 'class' => 'rcmfd_mh_input', 'type' => 'text', 'autocomplete' => 'off', 'value' => $color));


Line 121:
Change the method to extract the data from the control
Code: [Select]
// myt      html::span('mh_color', Q($this->gettext('mh_color'))) .
// myt      $color .
      $color->show() .


These changes will work in any browser that Roundcube works in to begin with.

Just as a bit of feedback.  I was able to try the color picker, even though it wouldn't actually save the values.  I found it pretty awkward to use.  When typing in values, if I accidentally moved the mouse over the swatch while moving to the "Add Row" or "Save" buttons it would change the value, losing my data.  If I clicked outside of the picker to make it go away, it would often discard my change.  And just trying to decide exactly where to click in the box didn't seem to have enough feedback.  It felt random.

Golden Rule of Programming:  Don't lose the user's data.

I don't know if you've seen Squirrelmail's message highlight color picker.  It's pretty brute-force, but very easy to use.  In addition to the text field to type in a value, there are either 32 or 64 common colors shown as labels to radio buttons.  It takes up a lot of screen space, and it's not elegant, but it's bullet-proof.  And, it makes it much easier to repeat colors from one entry to the next.

And I guess this would count as a feature request.  One other thing that their picker had was a label you could add to each highlight entry.  I would use this as a reminder of what a particular entry was there for, so that I didn't have to look at the match criterion and try to decipher it and remember what I was checking for.

Drake

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
new plugin: message highlighting
« Reply #72 on: July 26, 2011, 07:50:58 AM »
On which OS do you see these issues? On OSX with Firefox 5.01 it works for me.  The color picker isnt the greatest, but i couldnt immediately find a nicer one. It would be nice if roundcube offered a default color picker to use. I think the squirrelmail solution is ugly as sin and not suitable for a modern webmail client like roundcube :)  

One thing I dont understand though. In my browser (FF 5.01 on OSX 10.6.8) the color picker disappears once I pick a color. It doesnt linger around for you to accidentally hover over it. And if you actually click on a color in a row that already exists, and hover over the picker, the color picker will indeed change colors, but the moment the mouse moves out of the picker, your color goes back to normal. This is how it should work, and how it works for me right now. I never intend to change anything unless you click to pick the color.

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
new plugin: message highlighting
« Reply #73 on: July 26, 2011, 07:58:20 AM »
Quote from: rosali;35871
Cor, there is another bug.

If I have only one highlight definition and try to delete it, I get back an empty settings iframe. When entering the highlight settings section again. The item is shown again. So, it looks like it isn't possible to delete the last remaining item.


Can you explain this a bit more? I can delete the last remaining item just fine. Once the last remaining item is deleted, you're presented with an empty row that you can fill out. Sort of a first row that you can fill out to start.  I did not know of a better way to do that. I think I copied some of these UI choices from the sieve filter plugin.

Offline Mighty

  • Jr. Member
  • **
  • Posts: 12
new plugin: message highlighting
« Reply #74 on: July 26, 2011, 03:21:56 PM »
Quote from: corbosman;35884
On which OS do you see these issues?

 
I'm running Win7 64-bit.

Yeah, I expected it to go away when I picked a color, or typed in a value and hit enter.

It sounds like this behavior is related to the empty color array.  It's never executing the code to actually pull the value out of the control and hide it.

I'm comfortable just typing in the hex values, so my text field hack works for me.  I've already got my highlights moved over from my old system.  I'm subscribed to this thread, so if you come up with something that you'd like me to test then I'm happy to do that for you.

Drake