2014-10-08, 05:14 PM
(This post was last modified: 2014-10-08, 05:32 PM by p00lz.
Edit Reason: added image preview
)
I've seen plenty of Soundcloud embedding, but very little in regard to supporting embedding pre-made playlists.
The Regular Expression is (set the tags as whatever you wish);
The Replacement is;
Change color=a4ce71 to a hex value that better matches your forum theme if you need.
If I wanted to embed this album/playlist from CLPPNG; https://soundcloud.com/subpop/sets/clipping-clppng
This is what you end up with in a post
The Regular Expression is (set the tags as whatever you wish);
\[YourTag\](https?:\/\/(.*?)?soundcloud\.com\/[a-z0-9\-\/]*)\[/YourTag\]
The Replacement is;
<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=$1&color=a4ce71&auto_play=false&show_artwork=true"></iframe>
Change color=a4ce71 to a hex value that better matches your forum theme if you need.
If I wanted to embed this album/playlist from CLPPNG; https://soundcloud.com/subpop/sets/clipping-clppng
This is what you end up with in a post