+ Reply to Thread
Results 1 to 8 of 8

Thread: how to install the unix-name to config

  1. #1
    zultan is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Exclamation how to install the unix-name to config

    Need help, please!

    I downloaded a plugin, and I know I have to upload via ftp to my "plugin" folder on my server. I also noticed that I have to then..."have to activate it by adding its unix-name to the array of the config option plugins in your local config/main.inc.php file. Only plugins enabled by config will be loaded and executed."

    How do I do that last step...I am a newby to roundcube...where do I get the unix file to add to the config/main.inc.php file? I have already downloaded and unzipped the plugin,

    Thank you!

    Zultan

  2. #2
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    it means the "real" name of the folder, on windows this would be called the DOS name. its basically the name you see when you do a command line listing of the plugins dir.
    Roundcube Patches: Sieverules, SpamAssassin Prefs, and more…

  3. #3
    zultan is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Dear JohnDoh,

    Thank you, I see...okay, let me ask a little more specifically then...I use windows OS...I downloaded the zip file for a plugin...let's say...the one for flagging emails for spam...I unzipped it, and then moved the plugin folder via ftp to my server under the "plugins" folder in roundcube.

    I have that part done...but then I see that you have to also add the plugin to the config. file labeled main.inc.php. So, what exactly do I put in this file, where do I find it, and is it located in the original plugin folder?

    Thank you for being patient with me, and understanding. I really appreciate the help, alot!

    Zultan

  4. #4
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    ./config/main.inc.php:
    PHP Code:
    // List of active plugins (in plugins/ directory)
    $rcmail_config['plugins'] = array(
      
    "<name of plugin 1 (=foldername of plugin)>",
      
    "<name of plugin 2>",
      
    "<etc.>"
    ); 
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  5. #5
    zultan is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Rosali, JohnDoh

    Thank you both so much, I think I understand now! You both have been a great help! I appreciate both of you, have a great day, this issue is solved.

    Zultan

  6. #6
    MarvinFS is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Please assist!

    I got probs activating plugins on my FreeBSD 7.2, with latest rcube installed, which i've d/led from site.
    i've tried the following in config:

    $rcmail_config['plugins'] =array('additional_message_headers','archive','hel p');

    and in other way:

    $rcmail_config['plugins'] = array(
    "filesystem_attachments",
    "archive",
    "help",
    "show_additional_headers",
    "managesieve",
    "subscriptions_option",
    "markasjunk",
    "userinfo",
    "emoticons",
    "vcard_attachments",
    "additional_message_headers",
    "contextmenu",
    "sieverules");


    neither works...

    all other things such as ldap address book and mail stuff are working just great. Is there are some ways to debug plugin loading process?

    Regards,
    MarvinFS
    Last edited by MarvinFS; 09-11-2009 at 09:50 AM.

  7. #7
    MarvinFS is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    debug_level set to 4 in config

    I've tried to modify rcube_plugin_api.php

    to raise some info about what it's loading like this:

    $plugins_dir = dir($this->dir);
    $plugins_enabled = (array)$rcmail->config->get('plugins', array());
    ....
    foreach ($plugins_enabled as $plugin_name) {
    $fn = $plugins_dir->path . DIRECTORY_SEPARATOR . $plugin_name . DIRECTORY_SEPARATOR . $plugin_name . '.php';
    raise_error(array('code' => 520, 'type' => 'php', 'message' => "$plugin_name"), true, false);
    if (file_exists($fn)) {
    include($fn);

    but nothing happened - no messages on screen


    actually nothing really happens when i delete whole plugin dir.
    even the following is in the API section:

    private $required_plugins = array('filesystem_attachments');
    private $active_hook = false;
    Last edited by MarvinFS; 09-11-2009 at 09:54 AM.

  8. #8
    MarvinFS is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    The case is closed, all seems to be working after i just copied all stuff one more time from distribution .tar leaving my existing configs... Sorry for bothering!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts