UK Jimbo
01-10-2005, 10:00 PM
This is a hack we've used on visordown.com (http://www.visordown.com/forums/) in version 3.0.0 up to 3.0.5
It prevents users from having images in their sigs that push the width of the page larger than the template should be by adding some whitespace between each of the images.
You just need to edit one file includes/functions_showthread.php
On line 459 find:$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
add on the line below it:$post['signature'] = preg_replace('/(<img[^<>]+>)(<img)/i',"\$1 \$2",$post['signature']);
The block of code should now look like: if (!isset($sigcache["$post[userid]"]))
{
$parsed_postcache['skip'] = true;
$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
$post['signature'] = preg_replace('/(<img[^<>]+>)(<img)/i',"\$1 \$2",$post['signature']);
$sigcache["$post[userid]"] = $post['signature'];
}
else
It prevents users from having images in their sigs that push the width of the page larger than the template should be by adding some whitespace between each of the images.
You just need to edit one file includes/functions_showthread.php
On line 459 find:$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
add on the line below it:$post['signature'] = preg_replace('/(<img[^<>]+>)(<img)/i',"\$1 \$2",$post['signature']);
The block of code should now look like: if (!isset($sigcache["$post[userid]"]))
{
$parsed_postcache['skip'] = true;
$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
$post['signature'] = preg_replace('/(<img[^<>]+>)(<img)/i',"\$1 \$2",$post['signature']);
$sigcache["$post[userid]"] = $post['signature'];
}
else