Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
render image from [Image:http://www.example.com/example.jpg]
#1
We have a sponsor who has used this in many of their posts and wonder if there's some MyCode possibility to convert 
[image:http://www.example.com/example.jpg]

to

[img]http://www.example.com/example.jpg[/img]

tia
Reply
#2
This should do:

Title:
Alternate Image

Short Description:
Alternate image BBCode Syntax

Regular Expression:
\[image:(.*?)\]

Replacement:
<img src="$1" />
[Image: dehibernate.png]
Reply
#3
Sorry, when the post is displayed, it showed as
[Image: https://example.com/media/wysiwyg/produ...buds-1.jpg]

But upon opening the post in editor, the actual code they're using is:
[url=https://example.com/xiaomi-ydlyej03lm-in-ear-earbuds.html][img=738x469]https://example.com/media/wysiwyg/product10/Xiaomi-YDLYEJ03LM-In-ear-Earbuds-1.jpg[/img][/url]

Image dimensions will vary.

Is this possible with MyCode?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)