Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
SoundCloud BBCode Details »»
SoundCloud BBCode
Version: 1.00, by LouiseWilson LouiseWilson is offline
Developer Last Online: Apr 2018 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.x Rating:
Released: 06-06-2012 Last Update: Never Installs: 27
Re-useable Code  
No support by the author.

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

Screenshots

File Type: png cs.png (16.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 07-23-2012, 12:26 PM
LouiseWilson LouiseWilson is offline
 
Join Date: Oct 2007
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 08-25-2012, 02:27 PM
DougCooper DougCooper is offline
 
Join Date: Jun 2003
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 08-25-2012, 03:01 PM
LouiseWilson LouiseWilson is offline
 
Join Date: Oct 2007
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 08-25-2012, 04:05 PM
DougCooper DougCooper is offline
 
Join Date: Jun 2003
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #16  
Old 08-25-2012, 04:23 PM
LouiseWilson LouiseWilson is offline
 
Join Date: Oct 2007
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 11-24-2012, 11:05 AM
Cloudy Wizzard Cloudy Wizzard is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 11-25-2012, 02:21 PM
LouiseWilson LouiseWilson is offline
 
Join Date: Oct 2007
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 11-26-2012, 05:51 AM
Cloudy Wizzard Cloudy Wizzard is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :


vb-error-01 by PatrickKox, on Flickr

Here is a screenshot of the BB Code :


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
Reply With Quote
  #20  
Old 11-26-2012, 01:39 PM
LouiseWilson LouiseWilson is offline
 
Join Date: Oct 2007
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 11-26-2012, 02:19 PM
Cloudy Wizzard Cloudy Wizzard is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

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 01:34 AM.


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.04764 seconds
  • Memory Usage 2,316KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete