Quote:One question though - is there a way to have the player play continuously when you are going from page to page inside the torrent site? It sucks to have the player start playing only to have it stop when you click on a torrent or some other page...
Quote:Works Great, thank you for this...Is there a way to make an option to pop it out? If you have a button to press to pop out the player, then you can use other pages as well. Just a suggestion, and would be a great addition
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Player</title>
</head>
<body bgcolor="#18222E">
<script>
function MP_ResizeContainer(id,w,h){
var container = document.getElementById(id)
container.style.width = w+"px"
container.style.height = h+"px"
}</script>
<div id="preview_button" style="width:250px; height:130px">
<object type="application/x-shockwave-flash"
data="http://yoursite.com/player.swf?&
container_id=preview_button&
button_width=17&
button_height=17&
menu_width=250&
menu_height=130&
repeat=true&
shuffle=true&
playlist_url=http://yoursite.com/mp3/list.xml&
playlist_size=15&
first_track=5&
b_bgcolor=18222E&
b_fgcolor=18222E&
b_colors=0055ff,00ff00,ff0000,ffffff&m_colors=000055,000055,ffffff,444444,888888,ffffff,000000,18222E&"
width="100%" height="100%">
<param name="movie"
value="http://yoursite/Flash/player.swf?&
container_id=preview_button&
button_width=17&
button_height=17&
menu_width=250&
menu_height=130&
repeat=true&
shuffle=true&
playlist_url=http://yoursite/mp3/list.xml&
playlist_size=15&
first_track=5&
b_bgcolor=18222E&
b_fgcolor=18222E&
b_colors=0055ff,00ff00,ff0000,ffffff&m_colors=000055,000055,ffffff,444444,888888,ffffff,000000,18222E&" />
<param name="wmode"
value="transparent" />
</object>
</div>
</body>
</html>*Edit link to your list.xml and player.swfecho "</object>\n";
this:
?>
<a href="java script:popUp1('http://yoursite.com/Player.html')">MP3 Player PopUp</a>
<?
*Edit link to your Player.html
open your header header.php
and add this befor </head>
<script type="text/javascript">
function popUp1(wintype)
{
var nwl = (screen.width-250)/2;
var nwh = (screen.height-150)/2;
popUp=window.open(wintype, ' Mp3 Player', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,width=250,height=150,left='+nwl+',top='+nwh+'');
}
</script>CREATE TABLE `agents` (
`agent_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`agent_name` varchar(255) NOT NULL DEFAULT '',
`hits` int(10) UNSIGNED NOT NULL DEFAULT '0',
`ins_date` int(10) UNSIGNED NOT NULL DEFAULT '0',
`aktiv` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`agent_id`),
UNIQUE KEY `agent_name` (`agent_name`)
) ENGINE=MyISAM;
;open announce.php and find://Agent Ban
$agentarray = array_map("trim", explode(",", $site_config["BANNED_AGENTS"]));
$useragent = substr($peer_id, 0, 8);
foreach($agentarray as $bannedclient)
if(strpos($useragent, $bannedclient) !== false)
err("Client is banned");
//End Agent Bans
replace with:
//Agent Ban
include("backend/dagent.class.php");
//dbconn(true);
new UserAgent($_SERVER["HTTP_USER_AGENT"]);
//End Agent Bans
insert in navigate_block.php
if ($CURUSER["view_torrents"]=="yes" || !$site_config["MEMBERSONLY"]) echo "- <a href=bancli.php>Client List</a><BR>";
insert in admincp.php
<td align="center"><a href=cp_agents.php><img src="images/admin/torrent.gif" border=0 width=32 height=32><BR>Manage Clients</a><BR></td>
"war02, post: 62115":same is this:[url="http://www.torrenttrader.org/index.php?showtopic=11230"]http://www.torrenttrader.org/index.php?showtopic=11230[/url]
only here is defined is highspeed torrent <_<
ALTER TABLE `torrents` ADD `webseed` enum('0','1') NOT NULL default '0';open functions.php and find:if ($row["freeleech"] == 1)$dispname .= " <img src='images/free.gif' border='0'>";
add after:
//webseed
if ($row["webseed"] == 1)
$dispname .= " <img src='images/webseed.gif' border='0'>";
//
open torrents-edit.php and find:
if ($CURUSER["edit_torrents"] == "yes")
$updateset[] = "freeleech = '".$_POST["freeleech"]."'";
$updateset[] = "anon = '" . ($_POST["anon"] ? "yes" : "no") . "'";
add after:
//webseed
if ($CURUSER["edit_torrents"] == "yes")
$updateset[] = "webseed = '".$_POST["webseed"]."'";
//
find:
if (!$CURUSER || $CURUSER["class"] > "3"){
if ($site_config['ANONYMOUSUPLOAD'] && $CURUSER['id'] == $row['owner']) {
add before:
//webseed
if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){
echo "<tr><td align=right><B>Webseed: </b></TD><TD><input type=\"checkbox\" name=\"webseed\"" . (($row["webseed"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />Torrent with Webseed<br>";
}
//
open torrent-details.php and find:
torrents.freeleech,
add after:
torrents.webseed, if ($row["external"]!='yes' && $row["freeleech"]=='1'){print ("<B>Only Up: </b><font color=red>Torrent ist OnlyUp, nur Upload wird gez