![]() |
Stopping images in signatures from making the page really wide
This is a hack we've used on visordown.com 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:
PHP Code:
The block of code should now look like: PHP Code:
|
screen shots?
what does it do with the rest of the image? |
screenshots added :)
|
Those are some HUGE sigs :p
|
What happens if it's a really wide single image - does it still display?
Is there a hack to limit the actual dimensions so that say, in admin panel you specify that a single sig image should not exceed 600 wide and 100 tall it would output a warning message rather than the image? |
Quote:
|
Quote:
I've got a feeling that I've seen a hack which checks image dimensions but following a quick search I can't find it. Might be worth trawling the forum for it. |
I don't understand what this hack does. When images are lined up horizontally in a post like that (in both Firefox and IE), it already automatically wraps them down to the next line when you have a small resolution or a huge row of images.
The single-image dimensions-checking hack sounds like a good idea though. That's what I was hoping this was. |
Quote:
We certainly have the wrapping problem in sigs on our forum. Have a look at the screenshots. |
All times are GMT. The time now is 05:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|