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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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?
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.
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 ...
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);
PunBB Forums → PunBB 1.2 troubleshooting → hspace and vspace
Powered by PunBB, supported by Informer Technologies, Inc.