Advertisement:

Navigation

SMF Mod Site

Mod Name:
mp3 Flash Player BBC Tag
Created By:
Pierre29200
Type:
BBC
First Created:
May 25, 2007, 05:30:44 PM
Last Modified:
June 23, 2007, 07:44:55 AM
Latest Version:
1.0
Compatible With:
1.1.2
Total Downloads:
57239

Download this mod

mp3_flash_player_bbc_xhtml_1.0.zip (12kB) [8755]
Manual Install Instructions for SMF

Description:

This mod allows a poster the option to embed a mp3 file in a post through the use of the [mp3=200,20,0,center][/mp3] BBC (bulletin board code) tags.

Its use is easy: simply plug the complete url of the mp3 file between the [mp3=200,20,0,center]http://your_url.com/your_mp3_file.mp3[/mp3] tags.

Syntax:
[mp3=width,height,autostart,position]http://your_url.com/your_mp3_file.mp3[/mp3]
autostart : 0|1
position :  left|center|right

Typical sizes for the player
- single mp3 : width = 10 x height
for example width=200, height=20
- Multi player : width = 12 x height
for example width=240, height=20
if width is too low, navigation buttons are hidden.

Examples:
- single mp3
[mp3=200,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3[/mp3]
- multi-mp3
[mp3=240,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3[/mp3]

You can write on one or several lignes the url for mp3 files.


Demo: http://forum.frequencebonheur.fr/index.php?topic=282.0

Code: [Select]
<p style="color: rgb(0, 0, 0); font-family: Arial,sans-serif; font-size: 11px; font-weight: normal; text-align: center; text-decoration: none;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="dewplayer" align="middle" height="20" width="240"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://forum.frequencebonheur.fr//dewplayer-multi.swf?mp3=http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3|http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3|http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3&amp;autostart=1&amp;showtime=1&amp;bgcolor=FFFFFF"><param name="quality" value="high"><param name="bgcolor" value="FFFFFF">
<embed src="http://forum.frequencebonheur.fr//dewplayer-multi.swf?mp3=http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3%7Chttp://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3%7Chttp://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3&amp;autostart=1&amp;showtime=1&amp;bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" name="dewplayer" wmode="transparent" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="20" width="240"></object></p>
<p style="color: rgb(0, 0, 0); font-family: Arial,sans-serif; font-size: 11px; font-weight: normal; text-align: center; text-decoration: none;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="dewplayer" align="middle" height="30" width="300"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://forum.frequencebonheur.fr//dewplayer.swf?son=http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3&amp;autostart=0&amp;bgcolor=FFFFFF"><param name="quality" value="high"><param name="bgcolor" value="FFFFFF"><embed src="http://forum.frequencebonheur.fr//dewplayer.swf?son=http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3&amp;autostart=0&amp;bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" name="dewplayer" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="30" width="300"></object> <a href="http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3"><img style="border: medium none ; text-decoration: none;" src="http://forum.frequencebonheur.fr//Themes/default/images/podcast.gif" title="Podcast" alt="Podcast" align="absbottom"></a><br></p>
<p style="color: rgb(0, 0, 0); font-family: Arial,sans-serif; font-size: 11px; font-weight: normal; text-align: center; text-decoration: none;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="dewplayer" align="middle" height="30" width="300"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://forum.frequencebonheur.fr//dewplayer.swf?son=http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3&amp;autostart=0&amp;bgcolor=FFFFFF"><param name="quality" value="high"><param name="bgcolor" value="FFFFFF"><embed src="http://forum.frequencebonheur.fr//dewplayer.swf?son=http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3&amp;autostart=0&amp;bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" name="dewplayer" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="30" width="300"></object> <a href="http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3"><img style="border: medium none ; text-decoration: none;" src="http://forum.frequencebonheur.fr//Themes/default/images/podcast.gif" title="Podcast" alt="Podcast" align="absbottom"></a><br></p>


Language Integration

To make the mod work with your language, simply open Modifications.*.php, where * is the language you wish to integrate the mod into, and add $txt['mp3'] = 'mp3 insert full url'; to its own line in the file.

Frequent trouble with Language Integration
There is a stray $txt['mp3'= 'mp3' at the top of your board index page.

$txt['mp3'= 'mp3' at the top of your board index page means a problem with carriage return inside
Themes/languages/Modifications.<YourLang>.php
for example :
Themes/languages/Modifications.english.php

This file must be something like this :
Code: [Select]
<?php
// Version: 1.1; Modifications

$txt['myvideo'] = 'MyVideo insert Number';

$txt['youtube'] = 'YouTube';

$txt['dailymotion'] = 'DailyMotion';

$txt['mp3'] = 'mp3';

?>

So you can fix it unstalling mod, then editing this file and verifying there is at least these lignes :
Code: [Select]
<?php
// Version: 1.1; Modifications

?>
Let notice each ligne begins with :
$txt...
And then install again the mod.


Theme integration
You have just to copy picture installed by the mod in Themes/default/images/bbc/mp3.gif into Themes/<Your Theme>/images/bbc