Support ⇒ Gamers Modules & Blocks ⇒ MP3 player ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index Modules & Blocks Gamers Modules & Blocks

MP3 player Reply to topic

Go to page Previous 1, 2

Heckler wrote
Can you post the code of your mp3 player block and the mp3 float, it is easier to help then.


That's just what I was coming here to do Big grin Nice timing!

The Float Player first:

<?php

$mp3_siteurl = "http://www.gametechworld.com/";
$mp3_width = "320"; // Set the width of your FLV Player
$mp3_height = "350"; // Set the total height of your FLV Player
$mp3_dispheight = "150"; // Set the display height (above the control bar) of your FLV Player

$mp3_bgcolor = "000000"; // Set the background color
$mp3_lightcolor = "CC9900"; // Set the light color
$mp3_backcolor = "000000"; // Set the back color
$mp3_frontcolor = "CCCCCC"; // Set the front color

$mp3_file = "player/block_playlist.xml"; // Set the file location of the MP3 or XML file (XML must be in the "player" directory)
$mp3_auto = "false"; // Set the FLV player to automatically start when the page loads
$mp3_shuffle = "true"; // Set the playlist to shuffle the songs
$mp3_digits = "true"; // Turn on/off the elapsed time digits
$mp3_repeat = "true"; // Set the music to auto repeat
$mp3_showeq = "true"; // Display faux equalizers (if your display height is high enough)
$mp3_showfs = "false"; // Display the Full Screen button
$mp3_showthumbs = "false"; // Display the thumbnail from the RSS <image> tag in the playlist

echo '<center><object type="application/x-shockwave-flash" data="'.$mp3_siteurl.'player/mediaplayer.swf" height="'.$mp3_height.'" width="'.$mp3_width.'">
<param name="movie" value="'.$mp3_siteurl.'player/mediaplayer.swf" />
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#FFFFFF" />
<param name="flashvars" value="file='.$mp3_siteurl.''.$mp3_file.'&autostart='.$mp3_auto.'&shuffle='.$mp3_shuffle.'&showdigits='.$mp3_digits.'&showeq='.$mp3_showeq.'&showfsbutton='.$mp3_showfs.'&displayheight='.$mp3_dispheight.'&repeat='.$mp3_repeat.'&thumbsinplaylist='.$mp3_showthumbs.'&lightcolor=0x'.$mp3_lightcolor.'&backcolor=0x'.$mp3_backcolor.'&frontcolor=0x'.$mp3_frontcolor.'&bufferlength=10" />
<embed allowScriptAccess="never" allowNetworking="internal" enableJavaScript="false"
src="http://www.intothemind.com/player/mediaplayer.swf" wmode="transparent" width="'.$mp3_width.'" height="'.$mp3_height.'" bgcolor="#'.$mp3_bgcolor.'"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file='.$mp3_file.'&autostart='.$mp3_auto.'&shuffle='.$mp3_shuffle.'&showdigits='.$mp3_digits.'&showeq='.$mp3_showeq.'&showfsbutton='.$mp3_showfs.'&displayheight='.$mp3_dispheight.'&repeat='.$mp3_repeat.'&thumbsinplaylist='.$mp3_showthumbs.'&lightcolor=0x'.$mp3_lightcolor.'&backcolor=0x'.$mp3_backcolor.'&frontcolor=0x'.$mp3_frontcolor.'&bufferlength=10" />
</embed></object></center>';

?>


Now the Block player

if (!defined('CPG_NUKE')) { exit; }

$mp3_width = "150"; // Set the width of your FLV Player
$mp3_height = "250"; // Set the total height of your FLV Player
$mp3_dispheight = "100"; // Set the display height (above the control bar) of your FLV Player

$mp3_bgcolor = "000000"; // Set the background color
$mp3_lightcolor = "CC9900"; // Set the light color
$mp3_backcolor = "000000"; // Set the back color
$mp3_frontcolor = "CCCCCC"; // Set the front color

$mp3_site = "http://www.gametechworld.com/";
$mp3_file = "http://www.gametechworld.com/player/block_playlist.xml"; // Set the file location of the MP3 or XML file (XML must be in the "player" directory)
$mp3_auto = "false"; // Set the FLV player to automatically start when the page loads
$mp3_shuffle = "true"; // Set the playlist to shuffle the songs
$mp3_digits = "false"; // Turn on/off the elapsed time digits
$mp3_repeat = "true"; // Set the music to auto repeat
$mp3_showeq = "true"; // Display faux equalizers (if your display height is high enough)
$mp3_showfs = "false"; // Display the Full Screen button
$mp3_showthumbs = "false"; // Display the thumbnail from the RSS <image> tag in the playlist

$content .= '<script>';
$content .= 'var launchMP3X = (screen.width/2)-388;';
$content .= 'var launchMP3Y = (screen.height/2)-260;';
$content .= 'var pos = "left="+launchMP3X+",top="+launchMP3Y;';
$content .= 'function launchBlMP3(){';
$content .= 'launchMP3 = window.open("playlists/mp3_float.php","MP3","width=337,height=307,"+pos);}';
$content .= '</script>';


$content .= '<center><object type="application/x-shockwave-flash" data="'.$mp3_site.'player/mediaplayer.swf" height="'.$mp3_height.'" width="'.$mp3_width.'">
<param name="movie" value="'.$mp3_site.'player/mediaplayer.swf" />
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#FFFFFF" />
<param name="flashvars" value="file='.$mp3_file.'&autostart='.$mp3_auto.'&shuffle='.$mp3_shuffle.'&showdigits='.$mp3_digits.'&showeq='.$mp3_showeq.'&showfsbutton='.$mp3_showfs.'&displayheight='.$mp3_dispheight.'&repeat='.$mp3_repeat.'&thumbsinplaylist='.$mp3_showthumbs.'&lightcolor=0x'.$mp3_lightcolor.'&backcolor=0x'.$mp3_backcolor.'&frontcolor=0x'.$mp3_frontcolor.'&bufferlength=10" />
<embed allowScriptAccess="never" allowNetworking="internal" enableJavaScript="false"
src="'.$mp3_site.'player/mediaplayer.swf" wmode="transparent" width="'.$mp3_width.'" height="'.$mp3_height.'" bgcolor="#'.$mp3_bgcolor.'"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file='.$mp3_file.'&autostart='.$mp3_auto.'&shuffle='.$mp3_shuffle.'&showdigits='.$mp3_digits.'&showeq='.$mp3_showeq.'&showfsbutton='.$mp3_showfs.'&displayheight='.$mp3_dispheight.'&repeat='.$mp3_repeat.'&thumbsinplaylist='.$mp3_showthumbs.'&lightcolor=0x'.$mp3_lightcolor.'&backcolor=0x'.$mp3_backcolor.'&frontcolor=0x'.$mp3_frontcolor.'&bufferlength=10" />
</embed></object><form><input type="button" value="Float Player" onClick="javascript:launchBlMP3()"></form></center>';

?>


One the float player I have tried "player/block_playlist.xml", "http://www.gametechworld.com/player/block_playlist.xml", and every other combo you can think of adding or removing the www or http.

Oddly enough, the ONLY time the Float player even sees the playlist is with the "player/block_playlist.xml" but it just spins and spins. Never connects.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.37 (Unix) / 5.0.45 / 5.2.5 / 9.1.2.1


I dont know whats wrong looks right.. I remember having the same problem spending hours trying to fix it but don't remember how Sad

I'd suggest you to get the DF_Multimedia module which includes the mp3 player block. The multimedia module lets you add videos to your site, but if you only want the mp3 player block you can just deactivate the module and use the mp3 player. The player included in the module works for sure, and you don't have to edit the file, you just go to the admin section and type in your site and what file you want loaded.

You can get the module here:

ehpdesigns.com/Downloa...id=65.html

It's worth downloading Wink Oh and if you need more help just let me know, if you want to I can teach you how to add pictures in the mp3 player, like album covers.

Phone Rumors | My Solution Manuals | My Online Money Guide | Premium WordPress Themes

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.37 (Unix) / 4.1.21-standard / 4.4.6 / 9.2.1

All times are UTC
Go to page Previous 1, 2


Jump to: