PDA

View Full Version : BB Code Enhancements - MixCloud BBCode


LouiseWilson
06-06-2012, 10:00 PM
MixCloud BBCode

With the help of pete_brady (https://vborg.vbsupport.ru/member.php?u=8570)

I have got this working and I'm posting the FULL how to regards the options etc

Step 1
Login To AdminCP
Go To Custom BB Codes > Add New BB Code

Step 2
Now Add The Information Below

Title mixcloud
BB Code Tag Name mixcloud
Replacement
<div> <object width="300" height="300"> <param name="movie" value="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf"></param><param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <param name="flashVars" value="feed={param}?for_player=1"></param> <embed src="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" flashvars="feed={param}?for_player=1" width="300" height="300"></embed></object> <div style="clear:both; height:3px;"></div> <p style="display:block; font-size:12px; font-family:Helvetica, Arial, sans-serif; margin:0; padding: 3px 4px 3px 4px; color:#999;"> <a href="{param}?utm_source=widget&amp;utm_medium=web&amp;utm_campa ign=base_links&amp;utm_term=cloudcast_link" style="color:#02a0c7; font-weight:bold;">Click here</a> to see it on Mixcloud</p> <div style="clear:both; height:3px;"></div> </div>

Example http://www.mixcloud.com/louisewil/djwilson-live-djnetworx-11512/
Description Anything you wish
Use {option} No
Button Image (Optional) yourforumroot.tld/images/misc/mixcloud.png
Remove Tag If Empty No
Disable BB Code Within This BB Code No
Disable Smilies Within This BB Code Yes
Disable Word Wrapping Within This BB Code Yes
Disable Automatic Link Parsing Within This BB Code Yes

If you get the following Message
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes

Just Click Continue

SwollenCranium
06-07-2012, 02:59 PM
Will this work for SOUND cloud stuff too?

Or are they two separate entities?

LouiseWilson
06-07-2012, 03:09 PM
separate try this one

https://vborg.vbsupport.ru/showthread.php?t=284106

Preech
06-08-2012, 03:15 AM
What if it's a playlist. Will it work.

LouiseWilson
06-08-2012, 10:36 AM
Yes it will :)

LouiseWilson
06-08-2012, 10:41 AM
Replacement Code Updated.

booble
03-31-2015, 08:49 AM
not work?

TheBang
12-27-2018, 05:04 PM
I've whipped up a BB Code using their modern HTML5 embedding method (rather than the Flash-based one in this thread). This has been tested on both vb3 and vb4.

Title: Mixcloud
BB Code Tag Name: mixcloud

Replacement:
<iframe width="400" height="120" src="https://www.mixcloud.com/widget/iframe/?feed={param}&amp;hide_cover=1&amp;light=1" frameborder="0"></iframe>

Example: https://www.mixcloud.com/spartacus/party-time/
Description: Embeds a Mixcloud player widget. Use the full Mixcloud URL in the tag. For example, https://www.mixcloud.com/spartacus/party-time/

Use {option}: No
Remove Tag if Empty: Yes (and everything below this option set to Yes also).


You can change the size of the player by adjusting the iframe's width and/or height. If you want a dark-themed player, you can change "light=1" to "light=0".