1 (edited by wibbe 2004-10-16 08:43)

Topic: Images in 1.2dev

When posting images in 1.2dev with the IMG-tag, they get stretched over the whole post. It seems that the class "postimg" (wich is'nt needed at all, or, it is'nt defined anywhere in the stylesheets) stretches the images. How to fix this problem:

Open parser.php

Replace lines:
286: // return '</p><div class="postimg"><a href="'.$url.'"><img src="'.$url.'" border="0" align="top" alt="" /></a></div><class="puntext">';
287: return '</p><div class="postimg"><img src="'.$url.'" border="0" align="top" alt="" /></div><class="puntext">';

With:
286: // return '</p><a href="'.$url.'"><img src="'.$url.'" border="0" align="top" alt="" /></a><class="puntext">';
287: return '</p><img src="'.$url.'" border="0" align="top" alt="" /><class="puntext">';

I don't know if this is a bug? Anyway, changing these two lines in parser.php fixes the problem.

Out.

Religion is the result of a mans imagination.

Re: Images in 1.2dev

http://punbb.org/forums/viewtopic.php?id=4652

3

Re: Images in 1.2dev

It's not finished so don't expect it to work. The class .postimg will certainly be needed at some point.

Moved to PunBB discussions.