+33 3 83 56 65 26 +33 6 87 42 95 30 Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. Lun-Ven : 9.00 à 17.00

multi dewplayer bot

Plus d'informations
21 Mai 2008 19:03 #1 par igedmedia
multi dewplayer bot a été créé par 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
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; } ?>

Connectez-vous ou Créer un compte pour participer à la conversation.

Plus d'informations
21 Mai 2008 23:03 #2 par lavsteph
Réponse de lavsteph sur le sujet 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à.

Connectez-vous ou Créer un compte pour participer à la conversation.

Plus d'informations
22 Mai 2008 09:01 #3 par igedmedia
Réponse de igedmedia sur le sujet Re:multi dewplayer bot
connaissez vous alors un mambot player mp3 multi piste
merci

Connectez-vous ou Créer un compte pour participer à la conversation.

Modérateurs: serge
Temps de génération de la page : 0.285 secondes

News extensions

News Communautés

Livres-Revues

News sécurité