Roundcube Community Forum

 

Misc Questions

Started by techdude, June 20, 2009, 10:02:11 PM

Previous topic - Next topic

techdude

This might sound stupid...but how do I add a plugin to the main.inc.php file?  I understand that you place it in the plugins folder and then you need to add something to the main.inc.php file but I don't know where or how to add it to the main config file.

I see the following in the main config file...do I put something there?


// use this folder to search for plugin sources
$rcmail_config['plugins_dir'] = 'plugins/';

// List of active plugins. Add the name of a directory found in 'plugins_dir'
$rcmail_config['plugins'] = array();

JohnDoh

Hi, you need to add the name of the directory you added in the plugins folder to the array in $rcmail_config['plugins'].

For example say you installed the password plugin, you have put a directory called password in the plugins folder so now you goto your main.inc.php and set $rcmail_config['plugins'] = array('password');. If you have multiple plugins when you set it like this: $rcmail_config['plugins'] = array('plugin1','plugin2','plugin3');.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

rosali

@techdude:

Please notice: There were major changes in RoundCube since v03beta. Please use current SVN trunk release instead of beta to make sure that plugins work as expected! I see you are using beta release because $rcmail_config['plugins_dir'] = 'plugins/'; has been removed meanwhile.
Regards,
Rosali

wesleyh

Hi list,

I installed rcu 0.3-RC1. Everything works fine, when I add the
Language Selection plugin I can login with en_US, but when I select
any other language it just doesn't do anything. I already tried adding
the taskbar and the captcha
plugins because I've seen some warnings about that in the error_log.
This fixes the warnings but not the issue.

Someone had an idea?

Thanks,
Wesley Hof,
Unix system engineer,
KPN Belgium.

rosali

Please install exactly that SVN revision which the package is designed for. Refer to link posted @ myroundcube - Project Hosting on Google Code [Project Home].
Regards,
Rosali

wesleyh

Hi, I just downloaded the tar.gz 0.3-RC1 and the latest trunk of plugins, so that is nog enough?

rosali

No, there is a great difference between 0.3-RC1 and current SVN trunk version which is heading up to stable. My plugins are compatible with the SVN version posted on the project page.
Regards,
Rosali

wesleyh

Hi Rosali,

Thanks for your reply. I don't get it to work with the lang_sel plugin.

I installed roundcubemail-trunk-r2907-20090901 and took the lang_sel plugin from the r-2908 trunk. I removed the captcha line in the config because I only what the lang sel and the tasksbar.

For some reason when I login in en_US it works, all other languages get me on the same page again. Can you please give me a practical example on how to get this to work ?

Many thanks in advance already for the great plugin development.

-W

rosali

#8
http://mail4us.net/

It is recent SVN trunk with all my plugins enabled. Disable hmail specific plugins, plugins which need database adjustments and those you simply don't want to use and report when the error occurs.

To reproduce the issue is the half way to the solution.
Regards,
Rosali

wesleyh

Rosali,

That I know, but can you tell me exactly what svn roundcube trunk that is and which plugin trunk ? I cannot find a rc version and plugings trunk with exactly the same version (I now have r2907 roundcube and 2908 plugins)

W

rosali

Only the default password plugin was effected by changes in r2908. So it's ok to use SVN r2907 and r2908 plugins.
Regards,
Rosali

wesleyh

ok, that is what I'm doing now. I disables captcha and taskbar in the lang_sel config. But still only english works ... all the rest gets me to te same page.

Any ideas what I'm doing wrong ?

W

rosali

Should not be related to your problem, but don't change this. It tells the plugin which localizations of other plugins have to be loaded.

Any chance to give me remote access (http to the webmail and full ftp to roundcube folder)? PM'me!
Regards,
Rosali

rosali

@ weslyh solved by r2916 release
Regards,
Rosali

rosali

starter - will be deleted
Regards,
Rosali