vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - SoundCloud BBCode (https://vborg.vbsupport.ru/showthread.php?t=284106)

LouiseWilson 06-06-2012 10:00 PM

SoundCloud BBCode
 
1 Attachment(s)
SoundCloud BBCode

With the help of pete_brady

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 sc
BB Code Tag Name sc
Replacement
Code:

<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url={param}"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}" type="application/x-shockwave-flash" width="100%" wmode="transparent"></embed></object>

Example
Code:

[sc]http://soundcloud.com/dj-anthony-ellwood/djantek-funkypumpinghouse-june[/sc]
Description Anything you wish
Use {option} No
Button Image (Optional) yourforumroot.tld/images/misc/soundcloud.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

pete_brady 06-07-2012 07:52 PM

ah, excellent

you can do a soundcloud playlist too with scpl or whatever:

PHP Code:

<object height="360" width="100%">
<
param name="movie" value="http://player.soundcloud.com/player.swf?url={param}&secret_url=false"></param
<
param name="allowscriptaccess" value="always"></param
<
embed allowscriptaccess="always" height="360" src="http://player.soundcloud.com/player.swf?url={param}&secret_url=false" type="application/x-shockwave-flash" width="100%"></embed>
 </
object

example:
PHP Code:

[scpl]http://soundcloud.com/fresh_air/sets/small-hours-autumn-leaves[/scpl] 


Essam 06-18-2012 06:50 AM

great !
is there mini version of the player ?
and is there a way to autoplay the sound when you visit the page ?

LouiseWilson 06-18-2012 02:43 PM

you can change the height and width of it by altering the following (see the text in red)
Code:

<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url={param}"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}" type="application/x-shockwave-flash" width="100%" wmode="transparent"></embed></object>

As far as i know there is no way to auto start on page view

Onion_Bag_Dave 07-23-2012 07:27 AM

This is driving me crazy, I've followed the steps about 8297802918309283 times, and it just does not work for me. Any ideas?

This is what I'm getting...

http://www.musicgaff.com/forum/showt...=2232#post2232

It shows up, but it does not play.

:S

LouiseWilson 07-23-2012 10:32 AM

can you post a screenshot of the admincp where you have entered your bbcode and also the soundcloud URL

Onion_Bag_Dave 07-23-2012 11:55 AM

http://tinypic.com/r/eze2pz/6

This is the particular URL I was testing with http://soundcloud.com/koan-sound/funk-blaster But i have tested with various links.

I test the BB code and it works perfectly fine, but on my site, it doesn't work.

There is one thing though that AME is installed. This could have an effect I suppose...

Thanks for your help!

Onion_Bag_Dave 07-23-2012 11:59 AM

Hang on. So odd, I copy and pasted the BB Code and URL that was in the testing part (of bb code manager)

And it works perfectly.

Right okay, I've found out why. Anybody else who gets a problem at first. If you highlight the whole link and ''unlink the URL'' it works fine.

Hmm..

Sorry.

LouiseWilson 07-23-2012 12:02 PM

Make sure you have the settings in the AdminCP BBCode to

Disable Automatic Link Parsing Within This BB Code YES

I also have AME installed and it does not affect the bbcode

Onion_Bag_Dave 07-23-2012 12:10 PM

Quote:

Originally Posted by LouiseWilson (Post 2350709)
Make sure you have the settings in the AdminCP BBCode to

Disable Automatic Link Parsing Within This BB Code YES

I also have AME installed and it does not affect the bbcode

Hello.

Is it right that you have to ''unlink urls'' for this bb code to work? Because I have Disable Auto link par set as yes.

It works aslong as the URLS are unlinked.

Thanks!
:)

LouiseWilson 07-23-2012 12:26 PM

Not sure why you are linking as it will break the soundcloud URL and why it was not working as its adding

url bb tags, to your sc url

Setting Disable Automatic Link Parsing Within This BB Code to YES should sort that out
If it is not without you manually unlinking the url, there maybe a conflict which i'm unable to help with

Only way to find out is to disable your mods then go from there

DougCooper 08-25-2012 02:27 PM

how can I set this up so users don't have to use BB code, but they can just drop soundcloud links into a post an vb automatically adds the bb code for them. Makes it so much easier for the user.

I.E the same way youtube links are done now.

LouiseWilson 08-25-2012 03:01 PM

You need to be looking for the following

Example mod
https://vborg.vbsupport.ru/showthrea...&highlight=AME

its unsupported

This willl not support what you are looking for

DougCooper 08-25-2012 04:05 PM

Thanks Louise but I've installed that in the past, and as far as I know it doesn't support Soundcloud (or custom code). Is that right ?

LouiseWilson 08-25-2012 04:23 PM

You have to work out the soundcloud definitions for AME I couldn't seen to get it to work, thats why I added the BBCode.

Cloudy Wizzard 11-24-2012 11:05 AM

I tried this and in the Admin CP it work with the "Test BB code" option, but when I try it in the forums it looks wrong :

http://www.flickr.com/photos/patrick_kox/8212755749/

Any idea ?
I also tried the code presented on the SoundCloud website, but that gives the same problem.

Tnx
Patrick

LouiseWilson 11-25-2012 02:21 PM

odd looking at it it looks like you have not added it correctly, only way for you to confirm to me is either forward your admin details to me via pm or take a screenshot of the admin cp bb code

thanks

Cloudy Wizzard 11-26-2012 05:51 AM

The strange thing is that it seem to work for our "Regular" members but not for admins.
The next image shows it working correctly for a member but for me (Patrick) it's not displaying correctly :

https://vborg.vbsupport.ru/external/2012/11/7.jpg
vb-error-01 by PatrickKox, on Flickr

Here is a screenshot of the BB Code :

https://vborg.vbsupport.ru/external/2012/11/8.jpg
vb-error-02 by PatrickKox, on Flickr

I'm guessing it something related to permissions like allowing HTML for certain usergroups but the Admin and Mod groups have HTML permissions set to NO :confused:

LouiseWilson 11-26-2012 01:39 PM

It seems to be stripping information, have you tried an alternative soundcloud URL or have you just tried the one on an admin account.

Could you post the one you are testing on your admin account.

As BB should not affect an admin account at all, you can also try disabling your plugins to see if its conflicting with admin side of stuff

Cloudy Wizzard 11-26-2012 02:19 PM

I found the problem.

I had the problem with all my soundcloud files, not just the one I tested with.
I don't know why it's different for Admins than for Members but when I copy&paste the URL in my post, vBulletin will automatically make it a hyperlink, and I had to remove that from the URL and then add the soundcloud BB code.

it all seems to work now.
so I'll need to change my step-by-step instructions to include that the link should be removed before people apply the soundcloud code.

Thanks for the assistance !
Patrick

Menno11 12-02-2012 01:30 PM

thx works fine on 4.2 p3

charlesr 02-11-2013 03:10 PM

Cheers dude.

dizzynation 02-11-2013 03:35 PM

Quote:

Originally Posted by DougCooper (Post 2359884)
how can I set this up so users don't have to use BB code, but they can just drop soundcloud links into a post an vb automatically adds the bb code for them. Makes it so much easier for the user.

I.E the same way youtube links are done now.

My forum used to be able to do that too. Its 4.2's code that changed everything, a bit frustrating I know. I have lots of Voice Over artist that loved to embed their links, now there is an extra step to be taken, sad...

Thanks for this BB code though! Installed

thegreenwichbar 10-25-2014 10:10 PM

Hi folks. I'm having an issue where the SC widget is not showing up in the toolbar

https://vborg.vbsupport.ru/external/2014/10/5.png

All looks ok above, am I missing something?

Thanks.

MattGarner 12-21-2015 04:34 PM

Hi guys,

Is there an update to get this working again? Any tracks that are posted now come up with a message on the player saying

"Please visit soundcloud.com to listen to this content"


All times are GMT. The time now is 09:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04046 seconds
  • Memory Usage 1,794KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete