![]() |
Quote:
|
Ah, ok. So this can be set to anything but 0 for it to work? Because at 0, it doesn't.
|
Ok, here is how it works.
1. You update your profile 2. Before the BBCODE processor, a special function catches all img tags. 3. The function, called size_check, checks to see if the file exists, if it does, it gets the max size and width out of the configuration of your board, and checks to see if the image width is bigger first in width, then in height: PHP Code:
5. The bbcode processes it like normal! I wasn't sure about your question about setting it to 0.. I wasn't sure what that was refering to... |
Just so you know: instead of using this:
Code:
$max_height = $DB_site->query_first("SELECT value FROM setting where varname=\"maxsigheight\""); Anyway, I'll probably install this here later, looks good. |
Yea... I was trying to figure that out.. but every single time I tried to global those variables, it wouldn't work. They would return NULL. I didn't know you had to submit the vbulletin options again...lol. I'll edit the post and submit a revision.
|
Well I installed this here, with some modifications, and it's working great. Great job Herman!
|
Quote:
|
BTW, it would be really cool if you could control the amount of images in the signature, and in the posts separately. Like allow only one img tag in the sig, but a different amount in the posts.
|
I will update the original file in a sec here.. and I'll post again with changes.
|
Just download the new update, and replace the whole size_check function in members.php with the new one.
|
All times are GMT. The time now is 09:48 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:
|