Author Topic: adding new task icon  (Read 5821 times)

Offline batman

  • Newbie
  • *
  • Posts: 5
adding new task icon
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
adding new task icon
« Reply #1 on: September 21, 2010, 03:24:17 PM »
Just code a plugin to add the button, something like this should work:
Code: [Select]

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

Offline batman

  • Newbie
  • *
  • Posts: 5
adding new task icon
« Reply #2 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?

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
adding new task icon
« Reply #3 on: September 22, 2010, 05:08:31 AM »
Quote from: batman;30184
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?


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

Offline batman

  • Newbie
  • *
  • Posts: 5
adding new task icon
« Reply #4 on: September 22, 2010, 05:38:03 AM »
Thank you very much guys! Now everything looks and works great. Thanks again for your help