Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Gamers Modules & Blocks ⇒ MP3 player


MP3 player
DragonflyCMS blocks and modules relating to Gamers - note, strictly DragonflyCMS matters ONLY or they will be deleted.
Go to page Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Gamers DelightGamers Modules & Blocks

View previous topic :: View next topic  
Author Message
Malachi1975
Newbie
Newbie

Offline Offline
Joined: Mar 09, 2008
Posts: 9
Location: Las Vegas, Nevada
PostPosted: Mon Mar 10, 2008 3:04 am
Post subject: Re: MP3 player

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.


Malachi1975's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.37 (Unix) / 5.0.45 / 5.2.5 / 9.1.2.1
Back to top
View user's profile Visit poster's website
Heckler
Heavy poster
Heavy poster

Offline Offline
Joined: Apr 22, 2007
Posts: 299
Location: California
PostPosted: Mon Mar 10, 2008 4:53 am
Post subject: Re: MP3 player

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

Heckler's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.37 (Unix) / 4.1.21-standard / 4.4.6 / 9.2.1
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Gamers DelightGamers Modules & Blocks
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy