- Posts: 21
- Thank you received: 0
multi dewplayer bot
18 years 5 months ago #6201
by igedmedia
multi dewplayer bot was created by igedmedia
Bonjour
je suis utilisateur du bot de base et ça fonctionne à merveille
www.joomlafrance.org/telecharger/fileinfo/Mos_DewPlayer.html
mais j'aimerais utiliser le multi = cette version
www.alsacreations.fr/dewplayer
Comment adapter le code de base pour mettre en place le multi
Merci pour vos lumières
je suis utilisateur du bot de base et ça fonctionne à merveille
www.joomlafrance.org/telecharger/fileinfo/Mos_DewPlayer.html
mais j'aimerais utiliser le multi = cette version
www.alsacreations.fr/dewplayer
Comment adapter le code de base pour mettre en place le multi
Merci pour vos lumières
Code:
<?php
/**
* @version $Id: mosflash.php,v 0.0.1 2005/01/06 01:13:30 mmsidon Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*
* Modified by Quoc-Huy for autoplay, bgcolor and other folder than /images/stories
* http://www.quoc-huy.com/
* http://www.goloom.com/
* Demo: http://www.martinkoums.com/
* {play}path/to/my_file.mp3|[AUTOPLAY]|#[BGCOLOR]|[AUTOREPLAY]{/play}
* - A '/' (slash) will be added in front of the path to the MP3 file.
* This means the path is an absolute path from the root of the website.
* - [AUTOPLAY] will be 1 or 0
* - [BGCOLOR] will be an HTML color code (example: FFFFFF for white)
* - [AUTOREPLAY] will be 1 or 0
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'botdewplayer' );
function botdewplayer( $published, &$row, &$params, $page=0 ) {
global $mosConfig_absolute_path;
// define the regular expression for the bot
$regex = "#{play}(.*?){/play}#s";
if (!$published) {
$row->text = preg_replace( $regex, '', $row->text );
return;
}
// perform the replacement
$row->text = preg_replace_callback( $regex, 'botdewplayer_replacer', $row->text );
return true;
}
function botdewplayer_replacer ( &$matches ) {
global $mosConfig_absolute_path, $mosConfig_live_site;
$thisParams = explode("|",$matches[1]);
$path = $thisParams[0];
$autoplay = $thisParams[1];
$bgcolor = $thisParams[2];
$autoreplay = $thisParams[3];
$mp3Url = (ereg("^http", $path) ? $path : $mosConfig_live_site .'/images/stories/mp3/'. $path);
if(empty($bgcolor)) $bgcolor='#000000';
$text = '<!-- MP3 DewPlayer Joomla module by NGUYEN DINH Quoc-Huy http://www.quoc-huy.com -->
<object type="application/x-shockwave-flash" data="'. $mosConfig_live_site .'/mambots/content/dewplayer.swf?son='. $mp3Url .'&autoplay='.$autoplay.'&autoreplay='.$autoreplay.'" width="200" height="20" bgcolor="'.$bgcolor.'">
<param name="movie" value="'. $mosConfig_live_site .'/mambots/content/dewplayer.swf?son='. $mosConfig_live_site .'/images/stories/mp3/'. $path .'&autoplay='.$autoplay.'&autoreplay='.$autoreplay.'" />
<param name="bgcolor" value="'.$bgcolor.'" /></object>
';
return $text;
}
?>
Please Connectez-vous or Create an account to join the conversation.
18 years 5 months ago #6205
by lavsteph
Replied by lavsteph on topic Re:multi dewplayer bot
Bonsoir,
je n'ai pas trop de temps en ce moment, et je ne connais pas du tout ce plugin, je regarderai ce week-end ce que l'on peut faire.
A moins qu'une bonne âme ait la solution d'ici là.
je n'ai pas trop de temps en ce moment, et je ne connais pas du tout ce plugin, je regarderai ce week-end ce que l'on peut faire.
A moins qu'une bonne âme ait la solution d'ici là.
Please Connectez-vous or Create an account to join the conversation.
18 years 5 months ago #6208
by igedmedia
Replied by igedmedia on topic Re:multi dewplayer bot
connaissez vous alors un mambot player mp3 multi piste
merci
merci
Please Connectez-vous or Create an account to join the conversation.
Moderators: serge
Time to create page: 0.137 seconds
