Author Topic: add button to compose toolbar only?  (Read 9268 times)

Offline t52

  • Newbie
  • *
  • Posts: 2
add button to compose toolbar only?
« on: December 14, 2009, 07:14:11 AM »
how can i add a plugin button to the compose toolbar only?

i tried
    $this->add_button(array('command' => 'plugin.somecommand',
                            
'id' => 'someid',
                            
'imageact' => 'skins/default/test.png',
                            
'title' => 'Some Title'),
                      
'compose-toolbar');

but the button won't show up at all...

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
add button to compose toolbar only?
« Reply #1 on: December 15, 2009, 12:53:54 AM »

Offline t52

  • Newbie
  • *
  • Posts: 2
add button to compose toolbar only?
« Reply #2 on: December 15, 2009, 04:28:29 AM »
sorry, i didn't find anything there - which is why i posted here. add_element() and add_button() seem to get the container id handed as second argument. but what's the container id for the compose toolbar? from skins/default/templates/compose.html i figured it would be "compose-toolbar", which does not work for me. any further hints would be greatly appreciated!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
add button to compose toolbar only?
« Reply #3 on: December 15, 2009, 09:35:11 AM »
It need to be done with JavaScript your trying to do it with PHP.

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
add button to compose toolbar only?
« Reply #4 on: January 19, 2010, 08:10:21 PM »
hello..

i want to have this option too..

in demo: Welcome to RoundCube Webmail

there are this button in toolbar..

anyone knows how to do this?

thanks

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
add button to compose toolbar only?
« Reply #5 on: January 20, 2010, 12:57:23 AM »
Look into forward_as_attachment plugin (bundled here: myroundcube - Project Hosting on Google Code).
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
add button to compose toolbar only?
« Reply #6 on: January 26, 2010, 11:12:23 AM »
hum..

i want that the button Compose, our Create New Message, always appear in the first toolbar..

The toolbar that have the button Logout, Settings, Address Book, Mail..

How can I do this?

Thanks

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
add button to compose toolbar only?
« Reply #7 on: January 26, 2010, 12:12:40 PM »
hey..

here:

#cd /usr/share/roundcubemail/skins/default/includes
#vi taskbar.html










i want the button command..

its appear now, but the image is the same of the button "mail" and the Label is greater..

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
any idea?
« Reply #8 on: February 12, 2010, 08:31:18 AM »
Rosali,

I really really want this feature... :)

Well, I put the username that login in webmail in the superior right corner...

when the user have a long name, the buttons at side, like Exit, Personal Settings, dont stay OK, the name of button go up to image....

And, I want that the option Compose New Email stay in this same bar...

Can you imagine that i Want to do???

Thanks

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
add button to compose toolbar only?
« Reply #9 on: March 01, 2010, 12:16:40 PM »
anyone???

The button Compose appear in the same bar that Settings, Logout, etc.. is a good idea

When I am in the other window, I can to compose new message without to have to go to Email and so click in compose..

I want a help to put this button in this bar too..