Customizing SMF > Modifications and Packages
Soundcloud BBcode
Greg Brendel:
Link to Mod
This is a BBC mod which adds Soundcloud song and cloudset posting abilities.
--- Code: ---Usage:
[soundcloud]<song url>[/soundcloud]
[cloudset]<set url>[/cloudset]
--- End code ---
Change Log:
1.5 - Bugs fixed for release.
1.4 - Added support for posting only a soundcloud or soundset with no text avoiding blank message error.
1.3 - XHTML Compliant
1.2 - Fixed installation - previously required a youtube bbc mod.
This modification is licensed under a CC BY
musicus:
I need this addon for SMF 2.0.2
lhz:
It would be nice to have this mod on 2.0.2.
Thanks.
Greg Brendel:
If I find some time I'll make it compatible with 2.x. I'm not promising that it will be very soon but I'll post here with status updates.
Inti31:
Hey, this is not a big deal - it runs fine in 2.0.2
have a look: http://inti31.cwsurf.de/_smf1/index.php?topic=2.0
if you want to try it:
username: Test
password: 12345678
--- Code: --- <file name="$sourcedir/Subs.php">
<operation>
<search position="after"><![CDATA[
array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),
]]></search>
<add><![CDATA[
array(
'tag' => 'soundcloud',
'type' => 'unparsed_content',
'content' => '<!--[if !IE]> -->
<object type="application/x-shockwave-flash" data="http://player.soundcloud.com/player.swf?url=$1&show_comments=true&auto_play=false" width="100%" height="81">
<!-- <![endif]-->
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="81">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&show_comments=true&auto_play=false" />
<!--><!-- http://Validifier.com -->
</object>
<!-- <![endif]-->',
'block_level' => true,
),
array(
'tag' => 'cloudset',
'type' => 'unparsed_content',
'content' => '<!--[if !IE]> -->
<object type="application/x-shockwave-flash" data="http://player.soundcloud.com/player.swf?url=$1&" width="100%" height="225">
<!-- <![endif]-->
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="225">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&" />
<!--><!-- http://Validifier.com -->
</object>
<!-- <![endif]-->',
'block_level' => true,
),
]]></add>
</file>
<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="after"><![CDATA[
array(
'image' => 'img',
'code' => 'img',
'before' => '[img]',
'after' => '[/img]',
'description' => $txt['image']
),
]]></search>
<add><![CDATA[
array(
'image' => 'soundcloud',
'code' => 'soundcloud',
'before' => '[soundcloud]',
'after' => '[/soundcloud]',
'description' => $txt['soundcloud']
),
array(
'image' => 'cloudset',
'code' => 'cloudset',
'before' => '[cloudset]',
'after' => '[/cloudset]',
'description' => $txt['cloudset']
),
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['soundcloud'] = 'Soundcloud (Single track einfügen)';
$txt['cloudset'] = 'Soundcloud (Trackset einfügen)';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['soundcloud'] = 'Soundcloud (Single Track einfügen)';
$txt['cloudset'] = 'Soundcloud (Trackset einfügen)';
]]></add>
</operation>
</file>
--- End code ---
thanx for that and also thx that i could play a little bit...
cheers inti31
Navigation
[0] Message Index
[#] Next page
Go to full version