MyBB Community Forums

Full Version: [MyCode] Default Images.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After looking around for abit I wasn't to sure whether this has been posted.
This is the way I made default images as BBcode.

Regular Expression.
\[CHANGEME\]

Replacement:
<img src="CHANGEME">

Notice 'CHANGEME'? Well, change that text within the quotation marks, to whatever text / image you want. For my example I'm gonna use one I got set on my forum..


Regular Expression
\[info\]

Replacement:
<img src="http://musicentral.net/information.png">

Outcome.
[info]
Some sort of image should show, if you have an image defined to this code.

DEMO: Music Central

This will come in handy for sites that like to have customised images set for specific things. It saves you alot of time, instead of having to remember the image URL/s, and makes the use of this BBcode, much more user-friendly, so all your members will have easy access to it.



thanks You, may i try it ?? Big Grin
Im not sure this is of any use really , is just as easy to wrap your img link in [img] tags. But yea if you want to set default images then maybe it is.