![]() |
Automatically resize IMG tags in user signatures?
Hi, I thought for the longest that the sizing options for signatures in the admin CP allowed you adjust the max size of anything in the signature, BBcodes included. But it seems I was wrong.
Is there a method for automatically sizing IMG bbcode in the signature? I'd like to set a maximum of around 500 pixels in width, if possible. |
You could create a plugin as follows:
Product: vBulletin Hook Location: parse_templates Title: Restrict size of images in signatures Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save". |
Quote:
I'm having some difficulty here. This would be implemented through the "Hooks & Products System" correct? If so, there's no "parse_templates" in the hook location drop menu. |
You could also just add
HTML Code:
.signaturecontainer img {max-width: 500px;} |
Quote:
So yes, just add it to the additional CSS template as mentioned. :) |
Thanks for the help, both of you. It seems there's a bug with VB 5.2.0 that doesn't allow me access to the template edits... lol.
I'll install the patch to fix that early in the morning when traffic is low and add it to my additional CSS then. :) |
Quote:
|
So... I've added the code to the additional.css section of my styles. And it doesn't seem to be having any effect on image sizes in the signature.
Code:
.thread-view .b-avatar--m { Thanks for the help. :) |
It is possible your version of vB uses a different CSS class...please post a link to a page on your site where a signature is visible, and I will look at the page source. :)
|
Try this.
Code:
#content img { |
All times are GMT. The time now is 06:57 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:
|