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!
:)


All times are GMT. The time now is 06:03 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.01237 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete