1 mwester Mar 20, 2005 01:35
3 stevet Mar 20, 2005 09:02
oh - that's a lovely hack. I'm going to try left align and 10 px spacing as default and then folks can just alter the text for something different.
Does this work for adding an image from teh [img] button on the top of the posting bar or would I have to hack another piece of code
4 john Mar 20, 2005 12:43
Does this work for adding an image from teh [img] button on the top of the posting bar or would I have to hack another piece of code
No, you have to go into plugins/toolbars and edit the _quicktags.toolbar.php
and look for
function b2evoInsertImage(myField)
I added a class prompt as I prefer to set image formats and style within the CSS and not via these input prompts.
eg:
myValue = '<img src="'
+ myValue
+ '" alt="' + prompt('<?php echo T_('ALTernate text') ?>:', '')
+ '" title="' + prompt('<?php echo T_('Title') ?>:', '')
+ '" class="' + prompt('<?php echo T_('Class') ?>:', '')
+ '" />';
5 stevet Mar 21, 2005 00:19
I've got the image upload hack working fine to include vspace hspace and align. the scond one the one for the toolbar images is not so obvious to me - it'll take me a while to get it
Go to the admin folder and open b2upload.php.
I edited it to move from..
to