![]() |
Signature Image Size Limiter
[high]Installation Instructions[/high]
Step 1: Upload the .xml file to the Product Manager Step 2: Alter the plugin code variables to reflect your signature image limits in height and width Step 2: Click [high]INSTALL[/high]:D [high]Credits[/high] Zero Tolerance - For helping with the regex and troubleshooting my annoying problems ;) [high]Updates[/high] 1.0.1 - Nothing major, just removed some code that is not needed To remove this without re-uploading the plugin, find in your plugin code: PHP Code:
1.0.2 - This is just a bug fix update ;) Find in the plugin code: PHP Code:
PHP Code:
Chris |
Oh w00t. Me likey!
|
Error: See image.
|
I like this one Chris, good job!
/me clickies install |
Nice one! I'll definately be using this.
|
Doesn't seem to work for me.
Uploaded Plugin -> Added Error Phrase -> Set Size Limits -> Visited the board and the sigs that are large are still visible, with no error. |
Quote:
|
Quote:
|
Quote:
Satan |
Quote:
Satan |
Does this plugin limit the images in sigs using the [img] code or something else?
|
Quote:
It then checks the size of the image the user is trying to use, and if the size is bigger than allowed, displays an error message... Satan |
Quote:
|
Notice:
Please note that the image checker code is fully functional, and the code is correct, however bugs within the vBulletin Plugin/Hooks System is causing these errors, as it is removing slashes without adding them first, causing stuff like \ to disappear within our code. However this bug is not consistant on all forums, so please be aware if you are getting errors, then it is the vB system itself, and not our code. Thank you for reading, - Zero Tolerance |
[high]Update[/high]
1.0.2 bug fix released :) Replace (in the plugin code): PHP Code:
PHP Code:
Satan |
Quote:
Yes i do. |
Quote:
:) - Zero Tolerance |
ok, but i was just replying to something i had been asked. but if it was a vb bug would it not also do the same type of stuff with other plug in hacks im testing? or is it a random thing?
its ok, im just installing hacks on a test board to help people find and fix bugs. |
Depends what the plugins use, i found if you use the slash then it removes them, therefor in my plugins i do my best to avoid this, for now while the bug is present, hopefully it ill be fixed in beta 2 :)
- Zero Tolerance |
does this just restrict size (as in KB) or also dimensions?
|
Just dimensions...
A future release may contain size in KB limits, but since this current vB-related bug is preventing this plugin from functioning properly for some users, I'll leave this as it is until that is overcome :) Satan |
Awesome. I can't wait for the weighting to be added :)
|
Hi,
Won't this increas server BW consumption, since this will make server to load every image every time a user's sig is shown? |
This only checks on the image when it is added to your signature - When viewing in threads or in PM's etc, the check is not initiated ;)
Satan |
Quote:
|
For anyone wondering, it does not need to be updated to work with Beta 2 :)
Satan |
Installed, tested and working flawlessly on Beta2.
:D |
Glad to hear it :)
Satan |
[high]Update[/high]
Beta 3: Update to confirm that this plugin works with vBulletin 3.5.0 Beta 3;) Satan |
Exactly where do you add an "Error Message" phrase? I've looked in the phrases manager and can't find any category for Error Messages to add the phrase into.
|
Quote:
If you upgraded from 3.0.x you may have it named as "Front-end Error Messages" as the upgrade didn't (not sure about the Beta 3 one :p) update the phrasegroup name ;) Satan |
Thank you:)
|
Works great! thanks. :)
|
Would it be possible to place the error in to vBulletin's $errors[] array in profile.php instead of printing the error in a separate standard_error page? I guess I'm a perfectionist, but I used to have it this way with 3.0.7 and I'm still struggling with the plugin system myself.. :(
|
Quote:
Try replacing, in the plugin: PHP Code:
PHP Code:
Quote:
Satan |
Unfortunately it didn't work, and was pretty close to what I'd tried already.. :)
This is the function fetch_error (in includes/functions.php): Code:
// ############################################################################# Code:
if (is_array($errors)) |
Quote:
Satan |
this is an ownage hack defianed
[high]* jesus likes pie clicks installed [/high] ......hey....the /me hack works and we're runnign beta 3! ERWIN HOW DO I GET /ME FOR MY BETA?! :( |
vBulletin.org is running on of the 3.0.x releases, not a 3.5.0 Alpha, Beta, Gamma, RC or Gold release :)
Satan |
* installs * great work ... hmmm, have you met your nemesis, heavengod?
|
All times are GMT. The time now is 04:50 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:
|