Extension talk:EmbedImg
Add topicAppearance
Latest comment: 12 years ago by Sorunome in topic Use within a Template
mediawiki 1.15.1 error
[edit]Hi - I've tried this out on mediawiki 1.15.1 and it works, but it produces an error on the page that only says Error: bad URI in <img>!. Can you tell me how to fix this?
71.32.70.23 21:00, 14 September 2009 (UTC)
Getting the same error. The URI I am using is definately reachable. Does anyone have a suggestion?
- Was having the same problem and figured out the solution. Where it currently has:
if (preg_match('/^http\:\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@\?\^\=\%\&:\/\~\+\#]*[\w\-\@\?\^\=\%\&\/\~\+\#])?\.(jpe?g|png|gif)$/', $input)) {
- replace with:
if (preg_match('/^http\:\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@\?\^\=\%\&:\/\~\+\#]*[\w\-\@\?\^\=\%\&\/\~\+\#])?\.(jpe?g|png|gif|JPE?G|PNG|GIF|jpg|JPG)$/', $input)) {
- This makes it work as intended, which is much better than any other external embed image function I've tried so far!
- Mrmerlot 14:12, 8 July 2011 (UTC)
Use within a Template
[edit]Hi, I would like to use <img>{{abc}}</img> within a template. Unfortunatly it seems that the img tag is only analysed in when the Template is composed, but not if you add an instance to another page. Any idea how to fix it? --MyRobotron (talk) 20:41, 30 July 2012 (UTC)
- I am experiencing the same problem, did anybody find a fix yet? Sorunome (talk) 22:28, 8 December 2012 (UTC)