MyBB Community Forums

Full Version: Where do I edit the raw coding that the [attachment] bbcode sources from?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I insert an attachment with [attachment-4] for example, if it's an image, it's still too wide for the screen with no way to manually resize the width with coding the way I would a normal HTML img link.
PHP source function for parsing IMG:
./inc/class_parser.php - line 1237
function mycode_parse_img()

Templates:
MyCode Templates > mycode_img

CSS class for styling:
global.css > .mycode_img

That's all you need to customize your img styling.
I would not recommend changing the PHP core files - better go the CSS way to customize your image appearance.

[ETS]