Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: t52 on December 14, 2009, 07:14:11 AM

Title: add button to compose toolbar only?
Post by: t52 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...
Title: add button to compose toolbar only?
Post by: SKaero on December 15, 2009, 12:53:54 AM
Check out Doc_Plugins ? Roundcube Webmail (http://trac.roundcube.net/wiki/Doc_Plugins#ClientscriptsandUIelements)
Title: add button to compose toolbar only?
Post by: t52 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!
Title: add button to compose toolbar only?
Post by: SKaero on December 15, 2009, 09:35:11 AM
It need to be done with JavaScript your trying to do it with PHP.
Title: add button to compose toolbar only?
Post by: dimago on January 19, 2010, 08:10:21 PM
hello..

i want to have this option too..

in demo: Welcome to RoundCube Webmail (http://mail4us.net/?_redirect=&_task=mail&_action=plugin.wrapper&_screen_width=1020)

there are this button in toolbar..

anyone knows how to do this?

thanks
Title: add button to compose toolbar only?
Post by: rosali on January 20, 2010, 12:57:23 AM
Look into forward_as_attachment plugin (bundled here: myroundcube - Project Hosting on Google Code (http://myroundcube.googlecode.com)).
Title: add button to compose toolbar only?
Post by: dimago 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
Title: add button to compose toolbar only?
Post by: dimago 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..
Title: any idea?
Post by: dimago 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
Title: add button to compose toolbar only?
Post by: dimago 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..