![]() |
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! |
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. |
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.
|
All times are GMT. The time now is 07:22 AM. |
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:
|