Author |
Message |
thumpn8974
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/4ade72c64f31ab2ff2b97.jpg)
Joined: Feb 09, 2011
Posts: 188
Location: US
|
Posted:
Sun Mar 20, 2011 7:56 pm |
|
I don't know how to convert this to a block. I am trying to get a center block to work with the Flame Flash player 1.56. I found a fix, but it I can't seem to figure out where to put it or how. Is there a way to convert the following to a block:
Quote: | <head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=315,left = 362,top = 234');");
}
// End -->
</script>
<style type="text/css" media="all">.fplink0910522{display:none;}</style><center>
<div class="fplink0910522"><a href="http://www.battlepride.com" target="_blank" title="Block Designed by Illusions"></a><br><a href="http://www.battlepride.com" target="_blank" title="Battlepride.com"></a><br></div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="300"
height="315">
<param name=movie value="http://h3llclan.com/Flame/flam-player.swf">
<param name=flashVars value="fp_root_url=http://h3llclan.com/Flame/&ovr_color=0x000000&ovr_langage=en&ovr_playlist=default_playlist&ovr_author=all&ovr_order=date_music&ovr_order_direction=DESC&ovr_autoplay=0&ovr_loop_playlist=0&ovr_loop_tracks=0&ovr_shuffle=0">
<param name=menu value=false>
<param name=quality value=best>
<param name=wmode value=transparent>
<param name=bgcolor value=#000000>
<embed src="http://www.YOUR-DOMAIN/flam-player.swf"
flashVars="fp_root_url=http://h3llclan.com/Flame/&ovr_color=0xBDA88A&ovr_langage=en&ovr_playlist=default_playlist&ovr_author=all&ovr_order=date_music&ovr_order_direction=DESC&ovr_autoplay=0&ovr_loop_playlist=0&ovr_loop_tracks=0&ovr_shuffle=0"
menu=false
quality=best
wmode=transparent
bgcolor=#000000
width="300"
height="315"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<br><br><center><A HREF="javascript:popUp('http://h3llclan.com')">Open Floating Player Window</A>
</center>
|
I tried putting this in the description block, but I really don't know how to do that right, either. It didn't work under the sample block, or a blank block either. I thought maybe there was a way to convert the above over to a php block, then it would work. The block that came with the package is this:
Quote: | <?php
###########################################################################
### Flam Player Module v1.0 ###
### Coded by astalavistabd (Updated Oct, 26th 2005) ###
### Copyright © 2004-2005 Astalavista-BD.com ###
### Player created by DualBase Design ###
### For support go http://forum.flamplayer.com/ ###
### For PHP-Nuke support go http://forum.astalavista-bd.com/ ###
###########################################################################
if (eregi("block-flam_player.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
#################### The Directory Address ###########
$MODULE_DIR = "http://h3llclan.com/Flame";
#################################################################
#################### Player Color ####################
$PLAYER_COLOR = "000000";
#################################################################
#################### Play List (+ represents blank space) ##########
$PLAY_LIST = "default_playlist";
#################################################################
#################### Music Order ####################
# id_music=by id ##
# name_artist=by author ##
# CONCAT(playlist_music)=by playlist ##
# title_music=by title ##
# date_music=by date ##
# filename_music=by filename ##
$MUSIC_ORDER = "name_artist";
#################################################################
#################### Music Order Direction ####################
# ASC=Ascending ##
# DESC=Descending ##
$MUSIC_DIRECTION = "ASC";
#################################################################
#################### Auto Play (0=off, 1=on) ###########
$AUTO_PLAY = "0";
#################################################################
#################### Loop Playlist (0=off 1=on) ###########
$LOOP_PLAYLIST = "1";
#################################################################
#################### Loop Tracks (0=off 1=on) ###########
$LOOP_TRACKS = "1";
#################################################################
#################### Music Shuffle (0=off, 1=on) ###########
$MUSIC_SHUFFLE = "0";
#################################################################
######################## DON'T CHANGE ANYTHING BELOW THIS LINE #####################################
$content .= " <center><object width=\"300\" hight=\"315\">";
$content .= " <style type=\"text/css\" media=\"all\">.fplink0910522{display:none;}</style>";
$content .= " <param name=movie value=\"$MODULE_DIR/flam-player.swf\">";
$content .= " <param name=flashVars value=\"fp_root_url=$MODULE_DIR/&ovr_color=0x$PLAYER_COLOR&ovr_langage=en&ovr_playlist=$PLAY_LIST&ovr_author=all&ovr_order=$MUSIC_ORDER&ovr_order_direction=$MUSIC_DIRECTION&ovr_autoplay=$AUTO_PLAY&ovr_loop_playlist=$LOOP_PLAYLIST&ovr_loop_tracks=$LOOP_TRACKS&ovr_shuffle=$MUSIC_SHUFFLE\">";
$content .= " <param name=menu value=false>";
$content .= " <param name=quality value=best>";
$content .= " <param name=wmode value=transparent>";
$content .= " <param name=bgcolor value=#383838>";
$content .= " <embed src=\"$MODULE_DIR/flam-player.swf\"";
$content .= " flashVars=\"fp_root_url=$MODULE_DIR/&ovr_color=0x$PLAYER_COLOR&ovr_langage=en&ovr_playlist=$PLAY_LIST&ovr_author=all&ovr_order=$MUSIC_ORDER&ovr_order_direction=$MUSIC_DIRECTION&ovr_autoplay=$AUTO_PLAY&ovr_loop_playlist=$LOOP_PLAYLIST&ovr_loop_tracks=$LOOP_TRACKS&ovr_shuffle=$MUSIC_SHUFFLE\"";
$content .= " menu=false";
$content .= " quality=best";
$content .= " wmode=transparent";
$content .= " bgcolor=#383838";
$content .= " width=\"300\"";
$content .= " height=\"315\"";
$content .= " type=\"application/x-shockwave-flash\"";
$content .= " pluginspage=\"http://www.macromedia.com/go/getflashplayer\">";
$content .= " </embed>";
$content .= " </object></center><br>";
$content .= " <div align=\"center\"><a href=\"javascript:openpopup()\">Click To Open Remote Control</a></div>";
$content .= " <div align=\"right\"><a href=\"http://phpnuke-downloads.com\">©</a></div>";
?>
<!--### Change The Remote Control .html file name ##--->
<script>
function openpopup(){
var popurl="http://h3llclan.com/Flame/admin/sections/fp_admin_flampopup.php?lang=en&p=all&a=all&o=date_music&d=DESC"
winpops=window.open(popurl,"","width=320,height=330,")
}
</script>
<!--## Remote Control Java Ends ##--->
<?php
?>
|
Admins, if I have posted incorrectly or done something wrong, I hope you will just delete my post and let me know what I did wrong. Thanks everyone. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Mar 28, 2011 11:59 am |
|
Are you still needing help with this? Let me know. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Mon Mar 28, 2011 12:46 pm |
|
I think someone offered him help in another topic, but do not quote me on that. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
thumpn8974
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 28, 2011 5:13 pm |
|
No, I went with a suggestion of a new player. Wimpy Rave is what I am using now, it is pretty cool, but it is lacking on ease of setup of playlist and so on. I never did get the Flame player to work, even tried contacting the maker of the thing at his website, but received no reply. Sorry, if I posted in two different areas, but one was a bit different then the above. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 28, 2011 5:26 pm |
|
I did a quick test and I got it working. Do you still want to use it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
thumpn8974
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 28, 2011 5:41 pm |
|
Yes, that would be great. I don't know why it wouldn't work for me, but I have another site I could use Flame player on. Thanks for your help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 28, 2011 5:51 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
thumpn8974
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 28, 2011 9:13 pm |
|
Yes, both sites are RN 2.40.01 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 28, 2011 9:38 pm |
|
Great! I'll get this to you tomorrow. Heading into bed right now. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
thumpn8974
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 29, 2011 4:13 pm |
|
Thanks so very much. Take your time, there is no hurry. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 29, 2011 11:00 pm |
|
This works but you will need to customize it.
Code:<?php
if ( !defined('BLOCK_FILE') ) {
Header('Location: ../index.php');
die();
}
$content = <<< FLAME
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=315,left = 362,top = 234');");
}
// End -->
</script>
<style type="text/css" media="all">.fplink0910522{display:none;}</style><center>
<div class="fplink0910522"><a href="http://www.battlepride.com" target="_blank" title="Block Designed by Illusions"></a><br><a href="http://www.battlepride.com" target="_blank" title="Battlepride.com"></a><br></div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="300"
height="315">
<param name=movie value="http://h3llclan.com/Flame/flam-player.swf">
<param name=flashVars value="fp_root_url=http://h3llclan.com/Flame/&ovr_color=0x000000&ovr_langage=en&ovr_playlist=default_playlist&ovr_author=all&ovr_order=date_music&ovr_order_direction=DESC&ovr_autoplay=0&ovr_loop_playlist=0&ovr_loop_tracks=0&ovr_shuffle=0">
<param name=menu value=false>
<param name=quality value=best>
<param name=wmode value=transparent>
<param name=bgcolor value=#000000>
<embed src="http://www.YOUR-DOMAIN/flam-player.swf"
flashVars="fp_root_url=http://h3llclan.com/Flame/&ovr_color=0xBDA88A&ovr_langage=en&ovr_playlist=default_playlist&ovr_author=all&ovr_order=date_music&ovr_order_direction=DESC&ovr_autoplay=0&ovr_loop_playlist=0&ovr_loop_tracks=0&ovr_shuffle=0"
menu=false
quality=best
wmode=transparent
bgcolor=#000000
width="300"
height="315"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<br><br><center><A HREF="javascript:popUp('http://h3llclan.com')">Open Floating Player Window</A>
</center>
FLAME;
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
thumpn8974
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 30, 2011 12:22 am |
|
Thank you, I will try it out here in a little while. I am going to school and trying to help others out, so working on my sites are coming in second, or so it seems.
Thanks again to everyone for your help.
BTW...Could you delete one of my double post....I don't know why it does that. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|