1 (edited by Patrik 2004-11-10 20:16)

Topic: hspace and vspace

Hi,

I would like to add images with hspace and vspace to fit more with the text when writing something. Any ideas of how to solve this in the forum?

Re: hspace and vspace

use spaces and line breaks?

3 (edited by Patrik 2004-11-10 21:25)

Re: hspace and vspace

If look at  for example, http://gamla.bomben.se/reviews-show.pl?id=801 , the image and text fits nice together with the page. Now I only can get the text up or down the image.

Re: hspace and vspace

in parser.php you can search for [img  you'll then find 6 occations where this is ... just add the stuff you want where it gets rewritten to <img> tags...

this will though affect all images posted on the forum, and may result in unwanted displaying of the images on posts where it's much better to split the text ... not clear enough in my head atm to figure out how to modify the replacing to have a special img tag to do those things ...

Re: hspace and vspace

Frank H wrote:

in parser.php you can search for [img  you'll then find 6 occations where this is ... just add the stuff you want where it gets rewritten to <img> tags...

this will though affect all images posted on the forum, and may result in unwanted displaying of the images on posts where it's much better to split the text ... not clear enough in my head atm to figure out how to modify the replacing to have a special img tag to do those things ...


Thanks!  I found it under // Parse message text and edited it to this. Works really fine.

if ($cur_user['show_img'] != '0') $message = preg_replace('#\[img\]((ht|f)tp://)([^\r\n\t<"]*?)\[/img\]#si', '<img src="$1$3" border="0" align="left" hspace="5"alt="">', $message);