MyBB Community Forums

Full Version: [1.6] Soundcloud MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I've tried hard because I couldn't find the codes anywhere but it works perfectly now! I have used the YouTube MyCode from MyBBSource to make it work. As it is my first day working with MyBB I feel like a quick learner. And because of that, don't blame me for wrong codes, IT JUST WORKS.

Name
Soundcloud

Short Description
Embeds the wanted track into a post.

Regular Expression
\[soundcloud\](.*?)\[/soundcloud\]

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

Have fun with it!
This is a slightly different way of doing it.

This is using the HTML5 player and uses the Wordpress.com sortcode so its easier to embed.

Title: SoundCloud
Regular Expression:
\[soundcloud url="http://api.soundcloud.com/tracks/(.*?)" iframe="true" /\]

Replacement:
<iframe width="64%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F$1&show_artwork=true"></iframe>

Example:
[soundcloud url="http://api.soundcloud.com/tracks/44281300" iframe="true" /]

It uses the Wordpress sortcode.

[Image: Selection_230.png]


Just click the share button on the track you want to post from soundcloud.com, and select Wordpress. Copy the code then paste it into your forum.

[Image: Selection_407.png]

[Image: Selection_408.png]
[MyCode]SoundCloud

Title


SoundCloud

Regular Expression


\[soundcloud\](.*?)\[/soundcloud\]

Replacement


<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=http://api.soundcloud.com/users/$1" width=" 100%" height="450" iframe="true" />


Usage


[soundcloud]29612856[/soundcloud]

As you see here
http://www.bf4brasil.com.br/topico-mycod...cloud.html
 
Not working since 1.8...
Workink soundcloud player on my forum 1.8



Name
Soundcloud player

Regular Expression
\[SC\](.*?)\[/SC\]

Replacement:

<iframe width="100%" height="110" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=$1&amp;color=0066cc&amp;auto_play=false&amp;hide_related=false&amp;show_comments=false&amp;show_user=false&amp;show_reposts=false"></iframe>

Usage
[SC]full link soundcloud[/SC]
thnx musicfan,
your code works perfectly on 1.8