[HELP] Converting from Wordpress 2 MyBB MyCodes won't work
#1
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?
[Image: sig.png]
Reply
#2
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>
Reply
#3
http://community.mybb.com/thread-113184-...#pid898932
[Image: Jn29h.png]
DONATE TO PINGUY OS or show some love on Flattr.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)