PDA

View Full Version : Miscellaneous Hacks - BBCode for SoundCloud, work perfectly


Muhammad Rahman
02-27-2014, 11:00 PM
This simple BBCODE to display music player from Soundcloud.

To make,
Custom BB Codes >> Add New BB Code

Title : Sound Cloud
BB Code Tag Name : soundcloud
Replacement :
<object width="100%"><param name="movie" value="{param}"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}&amp;g=bb" type="application/x-shockwave-flash" width="100%"></embed></object>
Example : http://soundcloud.com/matas/hobnotropic
Description : Embed the tracks from SoundCloud into your post. Use the track URL in your browser.
Use {option} : No
Button Image (Optional) : /images/editor/soundcloud.png (download here (http://www.opsional.com/images/editor/soundcloud.png) and upload to /images/editor)
Remove Tag If Empty : Yes
Disable BB Code Within This BB Code : No
Disable Smilies Within This BB Code : No
Disable Word Wrapping Within This BB Code : No
Disable Automatic Link Parsing Within This BB Code : Yes

and then click "save" button,
if give this warning .
"The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

<object height="81" width="100%"><param name="movie" value="{param}"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}&amp;g=bb" type="application/x-shockwave-flash" width="100%"></embed></object>"

click "continue" button, DONE !! :D

Live Demo Here (http://www.opsional.com/showthread.php/4840-Memasukkan-musik-kedalam-postingan)

If find the best way to embed Sound Cloud please share here guys .. :)

DreadsUK
03-03-2014, 09:40 AM
http://imageshack.com/a/img41/6792/6c42.png

Didn;t work

DemOnstar
03-03-2014, 02:36 PM
I like the idea.
I tried the soundcloud site and searched for songs but got different versions of the songs I searched for. Not exactly what I was looking for but a substitute.

Tagged..

Well done..

m0nde
12-30-2015, 07:58 AM
Thanks for the code, but I've tried it on several tracks and it always tells me to view the content on soundcloud:

https://vborg.vbsupport.ru/external/2015/12/4.png

If I use soundcloud's recommended embed code (which uses an iframe with soundcloud's html5 player instead of flash), it mades the user find the track id of the content they want to embed and that can only be found by clicking share and searching through the embed code given.

https://vborg.vbsupport.ru/external/2015/12/5.png

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/204532668&amp;color=ff5500&amp;auto_play=false&amp;hide_relate d=false&amp;show_comments=true&amp;show_user=true&amp;show_rep osts=false"></iframe>

https://api.soundcloud.com/tracks/204532668

Is there a way to use soundcloud's html5 player with the normal url for the track?

WebCraker
04-19-2016, 11:47 PM
you can use this code

<iframe width="770" height="350" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url={param}&amp;auto_play=false&amp;hide_related=true&amp;sho w_comments=true&amp;show_user=true&amp;show_reposts=false&amp; visual=true" ></iframe>

Also make sure that this option is turned on
Disable Automatic Link Parsing Within This BB Code