2017-12-11, 01:27 PM
Hi everyone!
This is one mine MyCode which could be useful for some of you.
Point is that image is shown in posts like when you use
tags but you don't need to use them.
If your url ends with some of common image extensions, it will be automatically shown as image in post.
Please note: that you will need new MyCode code for each extension so I prefer giving them titles by extension.
Here are few most common extensions code:
New MyCodes will be separated by lines (hr tags):
Firstly go to ACP -> Configuration -> MyCode -> Add new MyCode
Title: jpg
Regular Expression:
Replacement:
Or if you want for image to also become a url to original image:
Replacement:
Regular Expression:
Replacement:
Regular Expression:
Replacement:
Regular Expression:
Replacement:
This is one mine MyCode which could be useful for some of you.
Point is that image is shown in posts like when you use
[img][/img]
tags but you don't need to use them.
If your url ends with some of common image extensions, it will be automatically shown as image in post.
Please note: that you will need new MyCode code for each extension so I prefer giving them titles by extension.
Here are few most common extensions code:
New MyCodes will be separated by lines (hr tags):
Firstly go to ACP -> Configuration -> MyCode -> Add new MyCode
Title: jpg
Regular Expression:
\[url\](.*?).jpg\[/url\]
Replacement:
<img src="$1.jpg" />
Or if you want for image to also become a url to original image:
Replacement:
<a href="$1.jpg"><img src="$1.jpg" /></a>
Regular Expression:
\[url\](.*?).png\[/url\]
Replacement:
<img src="$1.png" />
Regular Expression:
\[url\](.*?).jpeg\[/url\]
Replacement:
<img src="$1.jpeg" />
Regular Expression:
\[url\](.*?).gif\[/url\]
Replacement:
<img src="$1.gif" />
MyBB Translator & helper
Please do not PM me requesting free support or help for your forums.You can see my paid services here.