Advertisement:
GCWebhosting

Author Topic: [soundcloud] BBcode tags :)  (Read 20511 times)

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
[soundcloud] BBcode tags :)
« on: January 29, 2010, 04:39:10 AM »
This is for SMF 2.X

I shall include code for latest version of smf 1 when I remember what I did.

Below is code to install both single track embeds & soundcloud trackset/playlist bbc code and icons.
Also included in the attachment is the bbc icons. (upload the images folder inside to each of your themes folders)

After you've done modifying the files and uploaded the newly edited ones & the bbc icons go to admin > maintenance & clear cache.

For working examples, the bbc codes and other info: LINK

examples:

[cloudset]http://soundcloud.com/artist/sets/setname[/cloudset] - adds a soundcloud set

[cloudset]http://soundcloud.com/afmeplease/sets/none-label-stuff-my-own-cheesy-whatsits[/cloudset]

Code: (Subs.php - Find) [Select]
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),

Code: (Subs.php - Add Before) [Select]
array(
'tag' => 'soundcloud',
'type' => 'unparsed_content',
'content' => '<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&amp;show_comments=true&amp;auto_play=false"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=$1&amp;show_comments=true&amp;auto_play=false" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><br/><br/></span>',
'block_level' => true,
),
array(
'tag' => 'cloudset',
'type' => 'unparsed_content',
'content' => '<object height="225" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="225" src="http://player.soundcloud.com/player.swf?url=$1&" type="application/x-shockwave-flash" width="100%"></embed> </object>  <span><br/><br/></span> ',
'block_level' => true,
),

Code: (Subs-Editor.php - Find) [Select]
array(
'image' => 'img',
'code' => 'img',
'before' => '[img]',
'after' => '[/img]',
'description' => $txt['image']
),

Code: (Subs-Editor.php - Add Before) [Select]
array(
'image' => 'soundcloud',
'code' => 'soundcloud',
'before' => '[soundcloud]',
'after' => '[/soundcloud]',
'description' => $txt['soundcloud']
),
array(
'image' => 'cloudset',
'code' => 'cloudset',
'before' => '[cloudset]',
'after' => '[/cloudset]',
'description' => $txt['cloudset']
),

Code: (Modifications.english.php - Find) [Select]
?>

Code: (Modifications.english.php - Replace with) [Select]
$txt['soundcloud'] = 'Soundcloud (embeds single track)';
$txt['cloudset'] = 'Soundcloud (embeds a track set)';

?>

« Last Edit: May 17, 2010, 11:48:31 AM by Sentinel [AF] »

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #1 on: February 03, 2010, 10:42:58 PM »
This code is for SMF 1.

It does same as above code.

Code: (Subs.php - Find) [Select]
array(
'tag' => 'white',
'before' => '<span style="color: white;">',
'after' => '</span>',
),

Code: (Subs.php - Add Underneath) [Select]
array(
'tag' => 'soundcloud',
'type' => 'unparsed_content',
'content' => '<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&amp;show_comments=true&amp;auto_play=false"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=$1&amp;show_comments=true&amp;auto_play=false" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><br/><br/></span>',
'block_level' => true,
),
         array(
            'tag' => 'cloudset',
            'type' => 'unparsed_content',
            'content' => '<object height="225" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="225" src="http://player.soundcloud.com/player.swf?url=$1&" type="application/x-shockwave-flash" width="100%"></embed> </object>  <span><br/><br/></span> ',
            'block_level' => true,
         ),

Code: (default > Post.template.php - Find) [Select]
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),

Code: (default > Post.template.php - Add Above) [Select]
'soundcloud' => array('code' => 'soundcloud', 'before' => '[soundcloud]', 'after' => '[/soundcloud]', 'description' => $txt['soundcloud']),
'cloudset' => array('code' => 'cloudset', 'before' => '[cloudset]', 'after' => '[/cloudset]', 'description' => $txt['cloudset']),

Code: (Modifications.english.php - Find) [Select]
?>

Code: (Modifications.english.php - Replace With) [Select]
$txt['soundcloud'] = 'Soundcloud (embeds single track)';
$txt['cloudset'] = 'Soundcloud (embeds a track set)';

?>

BBC icons are included in images.rar in post above.
I can't see any other files that I edited for this but the icons should show up providing you upload them to each themes (images > bbc) folder.

Let us know if they don't.
« Last Edit: May 17, 2010, 01:19:10 PM by Sentinel [AF] »

Offline Phil Serna

  • Jr. Member
  • **
  • Posts: 265
    • www.misc-content.com
Re: [soundcloud] BBcode tags :)
« Reply #2 on: February 25, 2010, 11:02:23 PM »
does this only work with SMF 2.x
www.misc-content.com
Helping you get through your work day.

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #3 on: February 26, 2010, 10:25:23 AM »
I honestly don't know.

look on here how to add bbc tags to SMF 1.x ...

then just use my code :)

And errr sorry about lack of reply to your PM - I've just upgraded to W7 after fresh install and I didn't remember the username I used to sign up here.

And it's about time they approved this - only took about 1 month - haha ;)

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #4 on: February 26, 2010, 10:45:44 AM »
if you want to see them working then you can here: http://alternatingfrequencies.com/2b4/index.php?topic=659.0

Offline Phil Serna

  • Jr. Member
  • **
  • Posts: 265
    • www.misc-content.com
Re: [soundcloud] BBcode tags :)
« Reply #5 on: February 26, 2010, 01:35:34 PM »
Sh*t I have no idea what I am looking at... no worries on the PM.
www.misc-content.com
Helping you get through your work day.

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #6 on: February 26, 2010, 02:06:52 PM »
haha check pm I have no clue either yet not used SMF 1.X in what 2 years or so.

Offline Smartflight

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
    • The Ignorance
Re: [soundcloud] BBcode tags :)
« Reply #7 on: March 04, 2010, 12:16:22 PM »
Thanks a lot man!

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #8 on: March 04, 2010, 11:32:09 PM »
Thanks a lot man!

welcomes & btw the link on your signature is wrong.
should be: http://www.the-ignorance.co.cc/ not http://www.the-ignorance.co.cc/forum/

Offline Smartflight

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
    • The Ignorance
Re: [soundcloud] BBcode tags :)
« Reply #9 on: March 05, 2010, 09:48:27 AM »
Oops..didn't update it! Damn
Working now.

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #10 on: March 05, 2010, 06:18:32 PM »
:)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [soundcloud] BBcode tags :)
« Reply #11 on: March 05, 2010, 07:33:57 PM »
I have contacted you with the possibility of turning this into a mod and helping to further develop it.

Labradoodle-360

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #12 on: March 06, 2010, 09:50:07 AM »
I know :)

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #13 on: March 12, 2010, 03:49:17 PM »
updated code made them much simpler & easier to use :)

check first & second post for the codes for single track & track sets.

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #14 on: May 17, 2010, 11:16:22 AM »
updated for latest version of smf check first post !

will add code for smf 1 to second post soon.

Offline Sentinel [AF]

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Male
  • Mr Grumpy
    • alternatingfrequencies.com
Re: [soundcloud] BBcode tags :)
« Reply #15 on: May 17, 2010, 01:20:28 PM »
updated added code for latest version of SMF 1 to second post !!!

Offline maxklr

  • Semi-Newbie
  • *
  • Posts: 29
Re: [soundcloud] BBcode tags :)
« Reply #16 on: October 13, 2010, 02:05:36 AM »
How about making it a MOD that installs like the ones on the modification section of this site? I really don't want to mess with the code!

Offline Sentinel[AF]

  • Newbie
  • *
  • Posts: 3
Re: [soundcloud] BBcode tags :)
« Reply #17 on: November 27, 2010, 03:27:46 PM »
one of the mod coders on here was supposed to be turning it into a mod.

but I can't access my account as I seem to have forgotten the bloody password which is daft considering I use variations of same pass usually - haha.

So I've no idea what's happening with the mod or any other bits of code I've wrote.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [soundcloud] BBcode tags :)
« Reply #18 on: November 27, 2010, 03:33:20 PM »
I'm gonna pack it into a mod (2.0 code, may do 1.X code later).
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [soundcloud] BBcode tags :)
« Reply #19 on: November 27, 2010, 03:48:20 PM »
2.0 mod

Fixed an error while I was at it.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [soundcloud] BBcode tags :)
« Reply #20 on: November 27, 2010, 03:56:25 PM »
1.X mod.

Install at your own risk as I have no idea if this works or not.

For these mods you need the additional package at the first post, still!

(since the 2.0 mod has been pushed into another page, here it is)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Sentinel[AF]

  • Newbie
  • *
  • Posts: 3
Re: [soundcloud] BBcode tags :)
« Reply #21 on: March 30, 2011, 05:41:46 PM »
nice one on mods - sorry not replied sooner ... internet problems & forgotten password to my original account & email I signed up with is no longer active to do a password recovery :(

ez.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [soundcloud] BBcode tags :)
« Reply #22 on: March 30, 2011, 05:45:39 PM »
You could send an email to SimpleMachines, if the IP can be verified, I'm sure we can get your account back for you.

Offline Sentinel[AF]

  • Newbie
  • *
  • Posts: 3
Re: [soundcloud] BBcode tags :)
« Reply #23 on: April 05, 2011, 02:27:39 PM »
I dunno if IP would be same as I'm using a dongle for now until I can get my DSL reconnected.

Offline Phil Serna

  • Jr. Member
  • **
  • Posts: 265
    • www.misc-content.com
Re: [soundcloud] BBcode tags :)
« Reply #24 on: June 06, 2011, 11:19:03 AM »
has anyone got this mod to work with RC5?

I previously downloaded the version that Yoshi posted, but get an error or corrupted
www.misc-content.com
Helping you get through your work day.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [soundcloud] BBcode tags :)
« Reply #25 on: June 06, 2011, 11:21:10 AM »
has anyone got this mod to work with RC5?

I previously downloaded the version that Yoshi posted, but get an error or corrupted
The 1.X mod I posted is for the 1.1.x series, I put a link into my post to the 2.X package :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Phil Serna

  • Jr. Member
  • **
  • Posts: 265
    • www.misc-content.com
Re: [soundcloud] BBcode tags :)
« Reply #26 on: June 06, 2011, 11:38:34 AM »
I believe I did download the second one and was still getting an error
www.misc-content.com
Helping you get through your work day.

Offline Phil Serna

  • Jr. Member
  • **
  • Posts: 265
    • www.misc-content.com
Re: [soundcloud] BBcode tags :)
« Reply #27 on: June 06, 2011, 11:42:06 AM »
this is what I am getting.

www.misc-content.com
Helping you get through your work day.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [soundcloud] BBcode tags :)
« Reply #28 on: June 06, 2011, 12:56:07 PM »
this is what I am getting.


Click on the pencil and make the edit yourself :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline DragoN_PT

  • Jr. Member
  • **
  • Posts: 107
  • Gender: Male
Re: [soundcloud] BBcode tags :)
« Reply #29 on: August 14, 2011, 01:04:27 AM »
Sorry the digging..

1st of all, great mod (and code). The only one i found in my research. Clean and simple.

Now, i got 2 questions:

- Were can i find the buttons? I just get 2 X in the Text box.. They work great, only missing the images. - Nvm, i just miss the attached file..   :P
- (Not really a question,but..) Dunno if it is only in this end, but i need to type something to pass the "empty message" warning. Maybe do something about this, allowing to post only the link..

Cumpz!
« Last Edit: August 14, 2011, 04:32:09 AM by DragoN_SAMP »

Offline krash661

  • Jr. Member
  • **
  • Posts: 245
Re: [soundcloud] BBcode tags :)
« Reply #30 on: October 14, 2011, 12:00:40 PM »
this is what I am getting.


Click on the pencil and make the edit yourself :)
what do i edit to?

Offline krash661

  • Jr. Member
  • **
  • Posts: 245
Re: [soundcloud] BBcode tags :)
« Reply #31 on: October 14, 2011, 01:34:30 PM »
and also when i download it(* Soundcloud2.0.tar.gz (1.02 kB - downloaded 30 times.)) like in previous post,it says version1,not version2.0

Offline krash661

  • Jr. Member
  • **
  • Posts: 245
Re: [soundcloud] BBcode tags :)
« Reply #32 on: October 14, 2011, 02:40:16 PM »
never mind,i just installed it even with the errors,and it seems to be working.

Offline Rain Forest

  • Full Member
  • ***
  • Posts: 657
  • 𝒢𝒾𝓇𝒶𝒻𝒻𝑒
    • Love Troops
Re: [soundcloud] BBcode tags :)
« Reply #33 on: October 15, 2011, 06:54:40 AM »
Using 2.0 Gold.

After adding this to my forums, the BBCode Buttons are not synchone..


Offline ariolander

  • Semi-Newbie
  • *
  • Posts: 14
Re: [soundcloud] BBcode tags :)
« Reply #34 on: January 30, 2012, 01:14:08 AM »
Many thanks to OP.

Got the BBCode working on my 2.0.2 forum.