Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: batman on September 21, 2010, 02:06:34 PM

Title: adding new task icon
Post by: batman on September 21, 2010, 02:06:34 PM
I'm using roundcube version 0.4.

I want to add new icon (image) between the two task icons "E-Mail" and "Address book". On click it should just link to external page.

I am new to roundcube and I can't find the right place in code to do this.

Thanks in advance
Title: adding new task icon
Post by: SKaero on September 21, 2010, 03:24:17 PM
Just code a plugin to add the button, something like this should work:

class button extends rcube_plugin {

function init() {
    $this->add_button(array(
      'name' => 'the button',
      'class' => 'button-class',
      'label' => 'Google',
      'href' => 'http://google.com',
      'target' => '_blank',
    ), 'taskbar');
  }
}
Title: adding new task icon
Post by: batman on September 22, 2010, 04:50:06 AM
Thank you! This works great!

Can you please tell me how to add custom image icon to this button, because now the "E-Mail" icon is used for the new button?
Title: adding new task icon
Post by: Julius Caesar on September 22, 2010, 05:08:31 AM
Quote from: batman;30184Can you please tell me how to add custom image icon to this button, because now the "E-Mail" icon is used for the new button?

This is done using skins. You can check-out the help-plugin for an example
Title: adding new task icon
Post by: batman on September 22, 2010, 05:38:03 AM
Thank you very much guys! Now everything looks and works great. Thanks again for your help