Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

Client ban mod — 2010-03-27 07:26:00 in v2 Only Mods Complete
have you edited the php?

Show your dagent.class.php
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

here is a PopUp for MP3 Player:

first create a file and call it Player.html

insert in Player.html this:

<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.swf

upload the Player.html in root



open MP3_block.php and add under:




echo "</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>



Have Fun

greeting

Juleika
Client ban mod — 2010-02-24 07:22:16 in v2 Only Mods Complete
in mysql insert:

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>



bancli.php in /

cp_agents.php in /

dagent.class.php in /backend/

gif in /images/admin/

works fine with 2.05

Auto massage when new client not  finished !

screens:

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4030"]client_ban.rar[/url]



Show webseed — 2010-02-04 19:00:00 in v2 Only Mods Complete
"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  <_<

no permission !!

is there in premium forum ?

if double ..... then can the mod delete
Show webseed — 2010-02-04 17:59:51 in v2 Only Mods Complete
torrents can be show as webseed (seed with Torrentfux)

you can update on toorent edit

tested with 2.05

works 100%

Mysql query:

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,



find:

	if ($row["external"]!='yes' && $row["freeleech"]=='1'){
print ("<B>Only Up: </b><font color=red>Torrent ist OnlyUp, nur Upload wird gez

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4005"]webseed.rar[/url]

Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728