Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 SoundCloud forum
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: SoundCloud forum
I'm not familiar with SoundCloud. But after quick reading their API documentations, seem that the easiest way to embed the music is by using oEmbed.

You can create a textbox custom thread fields with these settings:
Title: SoundCloud URL:
Key: sc_url
Applicable Forums: Select any SoundCloud forum(s).
Editable by / Required Field? Everyone (required)
Text Mask Filter: URL (HTTP/S)
Modify it as our needs (eg: specific for SoundCloud URL).
Display Format:

HTML Code
1
2
3
4
5
6
<div id="sc_{$GLOBALS['thread']['tid']}"></div>
<script src="https://connect.soundcloud.com/sdk/sdk-3.0.0.js"></script>
<script type="text/javascript">
	SC.initialize({client_id: 'CLIENT_ID'});
	SC.oEmbed('{VALUE}',{element: document.getElementById('sc_{$GLOBALS['thread']['tid']}'),maxheight:100,show_comments:false});
</script>

Replace the "CLIENT_ID" with our client id.



Attached File(s) Thumbnail(s)
   

11-20-2015 03:34 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
SoundCloud forum - Waleed - 11-19-2015, 05:00 PM
RE: SoundCloud forum - RateU - 11-20-2015 03:34 AM
RE: SoundCloud forum - Waleed - 11-20-2015, 08:13 AM
RE: SoundCloud forum - Waleed - 11-20-2015, 09:40 AM
RE: SoundCloud forum - RateU - 11-21-2015, 01:58 AM
RE: SoundCloud forum - Waleed - 11-21-2015, 09:38 AM
RE: SoundCloud forum - Waleed - 11-21-2015, 04:13 PM
RE: SoundCloud forum - RateU - 11-22-2015, 01:35 AM
RE: SoundCloud forum - Waleed - 11-22-2015, 08:28 AM

 Standard Tools
Forum Jump: