Stopping images in signatures from making the page really wide
This modification is in the archives.
This is a hack we've used on https://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: PHP Code:
$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
PHP Code:
$post['signature'] = preg_replace('/(<img[^<>]+>)(<img)/i',"\$1 \$2",$post['signature']);
The block of code should now look like: PHP Code:
if (!isset($sigcache["$post[userid]"]))
Download No files for download. Screenshots
|