Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BBCode for SoundCloud, work perfectly Details »»
BBCode for SoundCloud, work perfectly
Version: 1.00, by Muhammad Rahman Muhammad Rahman is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.1 Rating:
Released: 02-27-2014 Last Update: Never Installs: 11
 
No support by the author.

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 :
Code:
<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 : [soundcloud]http://soundcloud.com/matas/hobnotropic[/soundcloud]
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 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 !!

Live Demo Here

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-03-2014, 09:40 AM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Didn;t work
Reply With Quote
  #3  
Old 03-03-2014, 02:36 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #4  
Old 12-30-2015, 07:58 AM
m0nde's Avatar
m0nde m0nde is offline
 
Join Date: Mar 2005
Location: Toronto, ON Canada
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the code, but I've tried it on several tracks and it always tells me to view the content on soundcloud:



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.



Code:
<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_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=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?
Reply With Quote
  #5  
Old 04-19-2016, 11:47 PM
WebCraker's Avatar
WebCraker WebCraker is offline
 
Join Date: Jan 2006
Location: Saudi Arabia
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can use this code

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;show_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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11097 seconds
  • Memory Usage 2,256KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete