![]() |
Quick Sig Image Size Limiter
A fairly quick and easy to install hack that attempts to check the pixel size of any images users place in their signatures. If the image is above admin set dimensions an error is given to the user explaining the valid dimensions.
I've not found a simple version of this for v3 - apologies if it's already out there somewhere! - This is purely a BETA release as the getimagesize() function used seems to fail for certain images on one test install, unknown reason at present. This will not make the hack fail, simply some images on some servers will be allowed even if over the set size. To prevent this uncomment the five lines in the added code to give an invalid image message instead. The options to set the size limits for signature images will be found in the admincp vBulletin Options --> User Profile Options *****PLEASE NOTE***** I am unable to provide any support at all for this hack - sometimes it works, sometimes it doesn't. My knowledge dosn't reach far enough for me to understand or fix the reasons behind it failing on some installs, sorry. If it works for you, I'm glad, if it doesn't then just revert everything and try looking at the other sig option hacks, sorry - best I can do :( |
Sounds great, im sure some boards will need this due to people abusing Sig's with pics. Nice one and thank you, Oh and congrats on your first release :)
|
Nice hack, except there's a problem with the instructions. The 'settings' query is screwed up.
Replace: Code:
INSERT INTO setting VALUES ('sigmaxwidth', '480', '', '141', 'user', '640', '0', '0'); Code:
INSERT INTO `setting` VALUES ('sigmaxwidth', 'user', '500', '500', '', 112, 0, 1); |
Quote:
& glad it's working fine for you. :) and MindTrix, thank you too, first release is rather nerve-racking! |
Nice to see this released, it'll come in handy for my site.
|
Wow, thanks. I really need this one :) I'm really hoping this works!
|
Installed on RC 2, Works Great, Thanks
Peace |
One more suggestion if it is even possible. I have one user (so far) that linked to a HUGE animated [img]. Is there a way to make this limit total file size as well?
|
Looks good. I'll give it a shot. Thank you. ;)
|
works great, just what i wanted
/me clicks install |
All times are GMT. The time now is 01:57 AM. |
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:
|