We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Soundcloud; Embedding audio into my forum
Topic Started: Jul 9 2011, 09:39 PM (1,720 Views)
Brettwong
Member
[ * ]
http://s13.zetaboards.com/playbypost/index/: (Link to your board or class it as 'Private')
ZetaBoards: (ZetaBoards or InvisionFree)
Soundcloud: I've been looking around the internet for a way to embed audio onto my forum, I'm running a play by post dungeons and dragons campaign for a group of close friends and thought it would be really cool if I could upload narrations to an audio site like soundcloud and embed it into my posts so they can listen and read along. I've tried using
Code: HTML
 
http://resources.zetaboards.com/single/?p=8210276&t=5079145
For 'Media' BBcode but when I use it, it uploads the entire page within the dimensions I specify (instead of just the soundcloud player) I tried making my own using the method in that link but it didn't work out so well : P I'm extremely green in this field with little to no technical experience, I wish we had an 'Add Custom BBcode' button : P is there anything I can do with this?
Code: HTML
 
http://blog.soundcloud.com/2009/07/28/soundcloud-player-in-forums-5-step-guide-for-soundcloud-bb-code/


Can someone help me out with a way to embed simple play/pause/seek audio into my posts?

Thank you for your help!
Edited by Brettwong, Jul 9 2011, 09:43 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type='text/javascript'>
$('#topic_review td, td.c_post').each(function(){
$(this).html($(this).html().replace(/\[soundcloud](.+?)\[\/soundcloud\]/gi,"<object height='81' width='100%'><param name='movie' value='http://player.soundcloud.com/player.swf?url=$1&g=bb'></param><param name='allowscriptaccess' value='always'></param><embed allowscriptaccess='always' height='81' src='http://player.soundcloud.com/player.swf?url=$1&g=bb' type='application/x-shockwave-flash' width='100%'></embed></object> <a href='$1'>$1</a>"));
});
</script>
Offline Profile Goto Top
 
Brettwong
Member
[ * ]
Excellent! Thank you so much! :D
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic