Roundcube Community Forum

 

adding new task icon

Started by batman, September 21, 2010, 02:06:34 PM

Previous topic - Next topic

batman

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

SKaero

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');
  }
}

batman

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?

Julius Caesar

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
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

batman

Thank you very much guys! Now everything looks and works great. Thanks again for your help