MyBB Community Forums

Full Version: Attachment Inline Display MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an IMG Inline Right MyCode:

[img align=inliner\]

<img class="attachment" style="margin: 0px 0px 10px 10px; display: inline;" src="$1" alt="" align="right" border="0" /></span>

How can I get this to show up for image attachments ([attachment=#])?
You probably would have to do a hard code edit for the attachment and add the align to it.
Thank you. I will try to check this out. The coding in the attachment parser looks more confusing to me than the others.
I also noticed in the CSS that there is img.attachment, you might try adding align: right; to that and see if that does what you need.
I don't want it to do all attachments, only one with [attachment=# align=inline] for example. So maybe hard code might be the only way. The inline code doesn't work on div, span, etc. but only img which is weird - correct me if I'm wrong. Sad