The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Editing IMG BBCode?
Does anyone know how I can edit the IMG BBCode? Basically, I want to make it so that when I use the [ IMG] code on an article, the image will automatically be resized.
I'm looking at class_bbcode.php, but not sure which of those functions I need to modify... Thanks! |
#2
|
|||
|
|||
You may want to think about adding a custom IMG code, that resizes the image to X dimensions. This is the html code to resize an image:
HTML Code:
<img src="http://www.cjmmedia.com/images/styles/freeminium/banner.png" width="1022" height="200">
Or you could enable attachment thumnails, then let your users upload images to your server. To enable attachments, go to the AdminCP > Settings > Options > Message Attachment Options > View Attached Images Inline > Yes, display thumnails > Sort out various sizing options > Save. |
#3
|
||||
|
||||
I think I need to edit the actual IMG BBCode, because I need the CMS to recognize the img and make it into a thumbnail... it does that with [ IMG] but not with any custom BBCodes I've created.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|