Customizing SMF > Mod Requests

Mixcloud BBC Code...

(1/2) > >>

diontoradan:
Hello,

Could anyone do the bbc code for Mixcloud.com, so i can attach audio from that site...

many thanks

diontoradan:
Okay, i've written my own version of the BBC Code for Mixcloud.com

[mixcloud]http://www.mixcloud.com/lagonie/aeroplane-essential-mix-bbc-radio-1/[/mixcloud]

in subs.php find

--- Code: --- 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+)'),
),
--- End code ---

and add before :

--- Code: ---array(
'tag' => 'mixcloud',
'type' => 'unparsed_content',
'content' => '<object width="400" height="300">
<param name="movie" value="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf"></param><param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param><param name="flashVars" value="feed=$1?for_player=1"></param><embed src="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" flashvars="feed=$1?for_player=1" width="400" height="300"></embed></object> <span><br/><br/></span>',
'block_level' => true,
),
--- End code ---

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

add before :

--- Code: ---array(
'image' => 'mix',
'code' => 'mixcloud',
'before' => '[mixcloud]',
'after' => '[/mixcloud]',
'description' => $txt['mixcloud']
),
--- End code ---


in Modifications.english.php find :

--- Code: ---?>
--- End code ---

add before :

--- Code: ---$txt['mixcloud'] = 'Embed Mixcloud Cloudcast';
--- End code ---

and for finale, upload mix.gif (attached) to /Themes/default/images/bbc


i copied & modified the original code from here :
http://www.simplemachines.org/community/index.php?topic=362957.0

rafadizeo:
not working for me

Old Fossil:

--- Quote from: rafadizeo on April 24, 2012, 02:03:07 PM ---not working for me

--- End quote ---

How isn't it working?

diontoradan:
yes, how is it not working??? its working on my forum please check :

http://ravelex.net/forum/ravelex-stereo-sessions/ravelex-stereo-032-osvaldo-nugroho-(1945mf)/

can you send me your page, so i can take a look.

Navigation

[0] Message Index

[#] Next page

Go to full version