Recent Topics

1 Oct 05, 2005 13:36    

Hi ppl,

I wonder if I can create a new button there that allows me to insert some parameters I use often (like <p align="center">***</p> and other useful things): can I? If yes, how?

2 Oct 05, 2005 13:41

You should be able to edit plugins/toolbars/_quicktags.toolbar.php to include any custom tags you want.

¥

3 Oct 05, 2005 17:32

Hi Yabba (girflriend not found in Rome) ;)

err...I should find the way, if I only was able to program that shit :|

If you're not too busy, can you help me in writing code? Even PM is good, if you think we shouldn't go on in this thread. Otherwise, there's no problem.

Thank you anyway,

Francesco

4 Oct 05, 2005 18:05

Bugger, looks like I need to find a new girlfriend :p

Ok, crack open plugins/toolbars/_quicktags.toolbar.php and find something that looks like this :-


		b2evoButtons[b2evoButtons.length] = new b2evoButton('b2evo_ins'
																							,'ins'
																							,'<ins>','</ins>'
																							,'i'
																							,'<?php echo T_('INSerted [Alt-I]') ?>'
																							);


Add the custom tags that you want after that, for example :-


		b2evoButtons[b2evoButtons.length] = new b2evoButton('b2evo_para'
																							,'para'
																							,'<p class="hello">','</p>'
																							,'c'
																							,'<?php echo T_('custom paragraph [Alt-C]') ?>'
																							);

The parameters are as follows :-

b2evoButtons[b2evoButtons.length] = new b2evoButton( id of button, text to display on button, opening tag, closing tag, hotkey, hover text);

¥

5 Oct 05, 2005 18:35

Man, you really rock :D

Thank you sooooooo much for this great tip :))

See you!

Francesco


Form is loading...