Recent Topics

1 Sep 05, 2007 22:55    

My b2evolution Version: 1.10.x

After uploading an image in the file manager you get the code

<div class="image_block"><img src="http://domainname/media/blogs/blogname/filename.jpg" alt="" title="" width="##" height="##" /></div>


to put into your posts.
Is there a way to hard code the file manager to remove the div and to put the class tag rightmargin after img? It would look like this

<img class="rightmargin" src="http://domainname/media/blogs/blogname/filename.jpg" alt="" title="" width="##" height="##" />


I know I can just do this by hand every time I put an image into a post from the file manager. I want it to happen automatically so my users who don't know html can stop asking me how to do it.

2 Sep 05, 2007 23:06

the quick 'n dirty way would probably be to edit inc/model/files/_file.class.php ( approx 842 )

	/**
	 * Get a complete tag (IMG or A HREF) pointing to this file.
	 */
	function get_tag( $before_image = '<div class="image_block">',
	                  $before_image_legend = '<div class="image_legend">',
	                  $after_image_legend = '</div>',
	                  $after_image = '</div>' )
	{

¥


Form is loading...