MyBB Community Forums

Full Version: [HELP] Converting from Wordpress 2 MyBB MyCodes won't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello, i just wanted to make new MyCode (for new SoundCloud player in html5), this is my configurations:

[soundcloud url=\"http://(.*?)/(.*?)/(.*?)\" params=\"\" width=\"100%\" height=\"166\" iframe=\"true\" /\]

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2F$1%2F$2%2F$3"></iframe>

and at this point wnen i want try a code

[soundcloud url="http://api.soundcloud.com/tracks/56906217" params="" width="100%" height="166" iframe="true" /]

in sanbox, there are not any preview, any 1 know how to do it?
Regular Expression:
\[soundcloud=(.*?)\] 

HTML Replacement:
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=$1"></iframe>

Usage in MyCode:
[soundcloud=http://api.soundcloud.com/tracks/56906217]

Output in HTML:
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/56906217"></iframe>