The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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". |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
You could also just add
HTML Code:
.signaturecontainer img {max-width: 500px;} |
#5
|
||||
|
||||
Quote:
So yes, just add it to the additional CSS template as mentioned. |
#6
|
|||
|
|||
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. |
Благодарность от: | ||
MarkFL |
#7
|
||||
|
||||
FYI, even after the 5.2.1 patch, I had issues in AdminCP with Firefox but Chrome worked perfectly.
|
#8
|
|||
|
|||
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 { height: 130px; width: 130px; } .thread-view .b-avatar--m > img { max-height: 130px; max-width: 130px !important; } .l-small .topic-list-container .topic-list .cell-count { padding-bottom: 0; } .l-small .topic-list-container .topic-list .topic-item td.cell-lastpost { display: block; padding: 0 5px 5px; } .l-small .cell-lastpost .avatar { display: none; } .l-small .cell-lastpost .lastpost-by { font-size: 0.9em; color: #6A6A6A; display: inline; } .l-small .cell-lastpost .lastpost-by:before { content: "Last post "; } .l-small .cell-lastpost .post-date:before { content: "on "; } .restore table[align=center] { margin: 0 auto; } .signaturecontainer img {max-width: 500px;} Thanks for the help. |
#9
|
||||
|
||||
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.
|
#10
|
|||
|
|||
Try this.
Code:
#content img { max-width: 100px; width: 100%; height: auto; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|