I made some changes to the plugin doc to reflect recent changes. Hope
everyone is ok with them.
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
I've a problem with loading the plugin local config file.
My config (config.inc.php) in the root dir of my plugin:
<?php
// enable / disable yubikey authentication
$rcmail_config['yubikey'] = TRUE;
// yubikey API key & ID needed to access the web service API
// can be had at: https://api.yubico.com/get-api-key/
$rcmail_config['yubikey_api_id'] = '';
$rcmail_config['yubikey_api_key'] = '';
?>
When I'm calling $this->load_config('config.inc.php') or $this-
>load_config(), the function always returns false and I found the
following error message in the error log ...
[01-Jun-2009 11:26:44 +0200] PHP Error: Failed to load config from /
Users/oliver/Sites/trunk/roundcubemail/plugins//yubikey_auth/
config.inc.php (GET /~oliver/trunk/roundcubemail/?
_task=settings&_action=keep-
alive&_t=1243848404670&_remote=1&_=1243848404671&_unlock=0)
I first tought that the double slash in the path was wrong and so I
changed the code in rcube_plugin.php to ....
//$this->home = $api->dir . DIRECTORY_SEPARATOR . $this->ID;
$this->home = $api->dir . $this->ID;
... but now I'm getting the same error message with the correct path ...
Error message:
[01-Jun-2009 11:35:55 +0200] PHP Error: Failed to load config from /
Users/oliver/Sites/trunk/roundcubemail/plugins/yubikey_auth/
config.inc.php (GET /~oliver/trunk/roundcubemail/?
_task=settings&_action=logout)
Does anybody has some idea about this issue?
Regards,
Oliver
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi Devs,
do you plan to implement the following (IMO standard) features during v0.3 development or should they better be implemented as a plugin?
#1 - Forward message as attachment
#2 - Copy message to folder (currently only "move" is available)
#3 - Attach vCard according to identity
#4 - Select Range/Invert Selection in message list (I like it and am used to that feature from Squirrel)
#5 - Expand/Collapse all folders in folder list
I'm in process to update MyRoundCube - which has all those features - to use your fantastic plugin API.
I have to take care about my ressources and won't spend time on things which might be already on your ToDo's.
Thank you.
Regards,
Roland
_______________________________________________
List info: http://lists.roundcube.net/dev/
Plugin WIKI page is great. Thanks a lot! People already started to add their plugins there!
Regards,
Roland
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi Cor,
thanks for your advise ... i will change my plugin tomorrow.
When I add my plugin to repo, where should I store the plugin code?
Regards,
Oliver
Am 31.05.2009 um 23:31 schrieb Cor Bosman:
> Only thing id change is use your own config.inc.php file and call
> $this->load_config(). That way the central config.inc.php doesnt get
> cluttered with plugin config settings.
>
> I just changed the plugin doc to reflect this recent addition to the
> API.
>
> Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
I've ported the Yubikey authentication plugin by dirkm to the new
plugin api.
Please have a look at my code and give me some advice for improvement.
Regards,
Oliver
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/eu/OPlltg5z/yubikey_auth.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/
Hi all, there doesnt seem to be a repository yet for plugins using the API.
Right now there are the example plugins in SVN, and i know of a few plugins
made by others, but id like to see a central spot where one can find API
plugins. What ideas are floating around for this? The moment 0.2.2 comes
out, I hope a lot of people will start making proper plugins..
Regards,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
First, apologise if this is already possible. I had a look at the
include_script function in the API and I don't think it is.
I am wondering what everyone thinks about allowing plugins to include
scripts from the core (like list.js) rather than having to copy them into
the plugin dir?
The possible problem with this is that if something changes in one of the
core JS files then its possible the plugin might need to be updated to work
with it. The advantage is that plugin maintainers would have one less file
to worry about.
Any one got any thoughts?
Thanks
Phil
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
I’ve attached an updated Swedish localization of labels.inc and
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/vj/EtxJSybT/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/
Hi all, i probably want to do something that isnt going to work well
anyways, but maybe someone has a good idea.
Through the api (message_headers_output) im adding a button next to
the address-add button on the From line. This second button adds the
sender to a centralized whitelist. To be nice, I want to remove the
button immediately after clicking, and thats all working fine. Just a
bit of JS to remove the button.
If a user is already in the whitelist (which i load on login_after), i
dont add the button, and if you click on the button I make sure the
whitelist is reloaded so future emails of this same sender dont get
the button either.
Im running into a little problem. message_headers_output is not always
called. If I read the next email, then go back to the previous email
where I just clicked the button (which was removed), the button re-
appears. This is not due to anything wrong with the plugin code, but
because RC sends Etags and If-Modified headers which my browser
happily uses to show me a cached version of the previous header.
Im assuming this is wanted behavior. The more caching the better I
guess, but in this case its biting me. Is there anyway I can prevent
this from happening? Or should I just give up on trying to show the
right thing?
(the same can be said for the addressbook-add button.. why show it if
you're already in the addressbook).
Any tips appreciated,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/