Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: cornfeed on December 06, 2011, 11:03:57 PM

Title: cPanel Filters Plugin
Post by: cornfeed on December 06, 2011, 11:03:57 PM
I have been working on a new plugin for the last week that will allow people to manage their cpanel filters from within the roundcube settings area.
I based everything off of managesieve and sieverules.
So far everything looks pretty good, and I have everything working except the save function.
From what I can tell, the plugin is not adding a gui_object properly.

In the Javascript, when I try to set the form field "_fid" to the value of the selected list item, rcmail.gui_objects turns up null.

Here is a link to the code (http://www.alltechservices-ia.com/download/cpanel_filters.zip)

I would also be open to any suggested cleanups, but am first concerned with getting this save function to work properly.

Thanks in advance
Title: cPanel Filters Plugin
Post by: SKaero on December 07, 2011, 02:42:11 AM
I haven't had time to test the code but you may want to try using jQuery to set the value of the field:
$('input[name=_fid]').val(value);
Title: cPanel Filters Plugin
Post by: cornfeed on December 07, 2011, 03:29:48 PM
That did it, thanks.
Still curious why it can not find the object though....
Title: cPanel Filters Plugin
Post by: cornfeed on December 13, 2011, 08:19:57 AM
So I have almost everything completely working except the save function. I can save the filters, but I have no clue how to handle the page refresh.

Any ideas will be appreciated. I have moved the code in prep for adding to the Wiki. https://github.com/cornfeed/cpanel_filters
Thanks
Title: cPanel Filters Plugin
Post by: SKaero on December 14, 2011, 06:46:43 AM
What do you want the page refresh do to?
Title: cPanel Filters Plugin
Post by: cornfeed on December 14, 2011, 07:50:41 PM
Currently: When you hit save, it loads the settings page inside the frame used for my filterediting and then reloads the whole page.
What I Want: Save, Update the list on the left hand side, and then reload the same filter for further editing.

Right now the plugin is *functional* with jquery validation and a small bit of server side validation.
Title: cPanel Filters Plugin
Post by: niculin on February 10, 2012, 12:08:27 PM
this project is still alive? it's a very good plugin!
Title: cPanel Filters Plugin
Post by: maryus_soryn on February 21, 2012, 06:43:16 AM
The link doesn't work .

Can you copy the plugyn again please?

Thank you
Title: Re: cPanel Filters Plugin
Post by: paZ on September 14, 2012, 12:45:03 PM
the right link is https://github.com/cornfeed/cpanel_filters (https://github.com/cornfeed/cpanel_filters)

By the way..with the new skin of Roundcube cpanel_filters is unusable :( (with the old skin works perfectly).
ALSO there is a bug that i found, when you deliver to a mail in a folder, the plugin add every time the INBOX. prefix also when the folder isn't in the INBOX. but is in the root.

(sorry for english)
best regards
paZ