Hi all, a plugin question ive been wondering about. What is the
recommended way for a plugin to save longterm non-user configurable
data? Just an example, lets say I want to keep track on if ive shown
a MOTD page to a user, id have to save that information. But some
plugins may have much more extensive needs here. Basically any data
you want to save immediately without going through a save preferences
click.
It might be nice to have some api functions that allow a plugin to
save this kind of data without having to construct your own SQL. Any
ideas about this? Maybe it exists already and I just couldnt find.
Also, looking at the code it seems as if plugins through
save_preferences hook can add saved prefs, but this has a potential
for unintentional overlap. If 2 plugins decide to use the same name,
you'll override a previous config with the same name. Maybe RC should
add the plugin name or something to the prefs key?
Regards,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
I've rewritten my managesieve patch using plugin api and I've found a few issues:
1. Templates from plugin directory. I've commited patch from Roland Liebl
and it's possible now, but... images path is hardcoded to "plugins/plugin_name/...",
and will not work if someone will change plugins_dir.
2. include_script() includes script after rcmail variable initialization.
That's ok, but there's a one situation when it's a problem.
For 'html' output I must write:
$this->rc->output->add_script(sprintf("rcmail.managesieve_updatelist('%s', '%s', %d);",
isset($new) ? 'add' : 'update', $this->form['name'], $fid), 'foot');
instead of more unified form:
$this->rc->output->command('managesieve_updatelist', isset($new) ? 'add' : 'update', $this->form['name'], $fid);
3. Localization folder name should be constant for all plugins (hardcoded in api).
Creating plugins translator will be simpler then.
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
I’ve attached an updated Swedish localization of messages.inc.
Regards,
Jonas Nasholm
Bitfuse Network
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Y7/DpA6h7k5/sv_SE.zip
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Does anyone know why http://roundcubeforum.net is unresponsive?
I seem to get redirected to some gaming website.
I tried asking in the IRC channel last night, but I think everyone was
asleep :-)
Is the forum site run by the roundcube admins? Does anyone know if it will
be coming back?
--
Michael Crumm
mcrumm(a)gmail.com
_______________________________________________
List info: http://lists.roundcube.net/dev/
> Message: 10 Date: Tue, 19 May 2009 15:10:26 +0200 From: till <klimpong(a)gmail.com>
> Subject: [RCD] Cache buster? (Re: Trunk 2501 error javascript in osx)
>> > On Tue, 19 May 2009 14:11:13 +0200, "A.L.E.C" <alec(a)alec.pl> wrote:
>>> >> Sandro Pazzi wrote:
>>> >>
>>>> >>> I've installed the last version and I find this errors in osx firefox
>> > and
>>>> >>> safari.
>>>> >>>
>>>> >>> All works fine in firefox and safari on windows.
>>> >>
>>> >> Css cache issue. Clear browser's cache.
>
> Do we need a cache buster? E.g. skins/default/css/main.css?v=RCVERSION
>
> Or we include the version in the filename for releases?
>
> Thoughts anyone?
>
I think version in the filename is better, that way browsers can cache the css.
The same can be done for js files. When I patched a js file to solve a bug,
that required full refresh in clients; you don't know when the cache will be
invalidated, somehow file mtime is not very reliable (?)
--
Gokdeniz Karadag
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi RoundCube users and list lurkers
We've recently published two new releases of the RoundCube Webmail package.
Version 0.2.2 is a minor update to the stable 0.2 branch. Beside some
bug fixes this version now supports STARTTLS for IMAP connections.
A bit further down the road we have the 0.3-beta version which now
includes the long awaited plugin API. This version is still under
development and we don't recommend to replace a productive version
with 0.3-beta. Nevertheless we'd like you to install and test it and
get the idea of how to write plugins. Read
http://trac.roundcube.net/wiki/Doc_Plugins to get started and find
some sample plugins within the package or more by browsing the SVN
repository: http://trac.roundcube.net/browser/trunk/roundcubemail/plugins
You can download both releases from http://roundcube.net/downloads and
as usual you're kindly requested to submit your reports to our bug
tracker: http://trac.roundcube.net/report
Have a lot of fun!
Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/
I dropped a note to brett [at] ... I'm just a moderator and can't do anything. But it looks like some kind of database injection:
<META HTTP-EQUIV="Refresh"
CONTENT="0; URL=http://xsaimex.mybrute.com/"><br />
<b>Warning</b>: include_once(includes/VBSEO_VB_CONFIG) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in <b>/var/www/vhosts/roundcubeforum.net/httpdocs/vbseo.php ...........
_______________________________________________
List info: http://lists.roundcube.net/dev/
On Tue, May 19, 2009 at 3:10 PM, Sandro Pazzi <sandro(a)idweb.it> wrote:
> On Tue, 19 May 2009 14:11:13 +0200, "A.L.E.C" <alec(a)alec.pl> wrote:
>> Sandro Pazzi wrote:
>>
>>> I've installed the last version and I find this errors in osx firefox
> and
>>> safari.
>>>
>>> All works fine in firefox and safari on windows.
>>
>> Css cache issue. Clear browser's cache.
>
> You are right.
>
> Thanks
>
Do we need a cache buster? E.g. skins/default/css/main.css?v=RCVERSION
Or we include the version in the filename for releases?
Thoughts anyone?
Till
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all,
I've installed the last version and I find this errors in osx firefox and
safari.
All works fine in firefox and safari on windows.
Last release works fine on every enviroment tha I tested was the 2423.
Thanks
--
Sandro Pazzi
IdWeb s.r.l.
Viale Romagna 69/A - 06012 Citta' di Castello (PG)
Tel. 075 851 97 28
Fax 075 851 97 30
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/jk/diAHQBqG/Immagine_1.pnghttp://detached.gigo.com/rc/jk/diAHQBqG/Immagine_2.png
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi Devs,
this is following up of http://lists.roundcube.net/mail-archive/dev/2009-05/0000053.html.
I think it might be a good idea to load plugin configurations from the plugin folder instead of the requirement to edit the main configuration. The main configuration file will get crowdy soon if there will be hopefully lots of plugins.
There was also a request in RoundCubeForum to do so by "corbosman" (http://www.roundcubeforum.net/plug-ins/4699-change-password-hmailserver-5-1…).
Please see attached suggestion and let me know if you will accept the modifications. I'm just in process to update MyRoundCube to use the new Plugin API and have to know if I can rely on this method.
Regards,
Roland
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/cb/J8Um9KKY/rcube_config.php.patch
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/