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

the site listed in the php file you uploaded. you took the torrenttrader name.

"emulienfou, post: 41299":
I am sorry so I french not understand your question but I will try to answer it, tell me if I am wrong.
The source code block the shoutbox issue and file shoutbox.php I just lightened and compiled into a single block.
is your site ripping off the torrent trader code?
Here is a list of common Torrent Trader code usage and there meanings from my knowledge. I will update it when I think of more but I am going to try to list some of the common ones today. some of these are taken from post throughout the site so no

on almost everypage you need this. if you do not have it then you page may not function correctly because it is like a brain for invidual pages:

require_once ("backend/functions.php");
this is if you are going to use bbcode in your page. it is basically a function file for bbcode:




require_once ("backend/bbcode.php");





this is for when you want to hide things from non members. put the code you want to hide in between the { and the }:





if ($CURUSER){   }





this is for when you want to hide things from members and let only non members see it. put the code you want to hide in between the { and the }:





if (!$CURUSER){   }





this is for restricted things to staff panel:





if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

show_error_msg("Error","Sorry you do not have the rights to access this page!",1);

}





this is your typical error message. the message goes in between the quotes:





show_error_msg(" ",1);





this is if you would like to restrict by class. the number is the class number. note the error message does not always have to be in there. you can restrict without the error message. but if you do not use the error message then put the code you want to restrict between the { and the }:





if ($CURUSER["class"] < "7"){

show_error_msg("Error","Sorry you do not have the rights to view this page!",1);

}





if you want to restrict certain frames or blocks then wrap the code in this. the number is the class you want to restrict or only show it to.





if ($CURUSER["class"] < "4"){



}





this begins a frame. in between the quotes you can give the block a name:





begin_frame("");





this ends a frame:





end_frame();





this begins a block:





begin_block(" ");





this ends a block:





end_block();





this is for your header and usually goes before the begin frame or begin block. if you have more than one frame or block then you should on use this one time in the begining:





stdhead(" ");





this is for your footer and usually goes after the end frame or end block. if you have more than one frame or block then you should on use this one time in the end:





stdfoot();





this is one way of conecting to the mysql db along with the die function:





mysql_query(" ") or die(mysql_error());





this is another way to connect to the mysql db:





$query = " ";

mysql_query($query);




when i have some more time and think of some of the other things i will add it. I hope this will help some peeps and cut down on some questions pertaining to this. enjoy :D
v2.03 and 2.04 has a Manual Registration Confirm in the admincp.php just look at that code and take what you need.
the one in the premium section works
The question is what the title says. So I guess I will start. I use the normal Windows XP editor. If I need to know a specific line the I either use Edit Plus 2 or a portable program called Rapid PHP 2007 8.31.
i have noticed that problem. just delete it in your phpadmin.

"sharkange, post: 40350":
helo
i can't deleet words ilt's normal ?
i only mod the script to work on torrent trader so i have no idea. I would play around with it but it take a while before I can do that because i still have things I need to mod.

"tedmin, post: 40255":
but can you make when i go to torrent-upload there i can put the link and when i upload the torrent in the torrent to see the youtube video not to put the link in the description?
Ok here is a simple you tube script takin from the tbdev forums and modded for torrent trader v.2xx

create a table in you data bank:

CREATE TABLE `youtubevideo` (

`id` BIGINT( 20 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,

`link` VARCHAR( 100 ) NOT NULL ,

`name` VARCHAR( 100 ) NOT NULL ,

`addedby` VARCHAR( 100 ) NOT NULL ,

`addtime` DATETIME NOT NULL

) ENGINE = MYISAM;
now create a file called youtube.php and link to it:






<?



require_once("backend/functions.php");

dbconn(false);

loggedinonly();



if ($_GET["id"] != ""){

$id = $_GET["id"];

if ($CURUSER["class"] >= "2"){

mysql_query("DELETE FROM youtubevideo WHERE id= $id") or sqlerr(__FILE__, __LINE__);

}

else{

stderr("Sorry", "not authorized!");

}

}

if ($_SERVER["REQUEST_METHOD"] == "POST")

{

if ($_POST["link"] == "" || $_POST["name"] == "")

stderr("Error", "missing form data.");

$name = $_POST["name"];

$user = $CURUSER["username"];

$link = "http://youtube.com/watch?v=".$_POST[link]."";

mysql_query("INSERT INTO youtubevideo (link, name, addedby, addtime) VALUES('$link', '$name', '$user',NOW())") or sqlerr(__FILE__, __LINE__);

}

stdhead("Video Clips");

begin_frame("Video Clips");

print("<table border=1 cellspacing=0 cellpadding=0 align=center><tr>");

print("<td width=502 valign=top>");

print("<table width=502 border=1>");

?>

<style type="text/css">

</style>

<table cellpadding="4" cellspacing="1" border="0" style="width:100%" class="tableinborder">

<tr class="tabletitle" width="100%">

<td colspan="10" width="100%"><span class="normalfont"><center><b>Video Clips</b></center></span></td>

</tr><tr><td width="100%" class="tablea">

<center>

<p><br>

<span class="style3"><b><font color=blue>Please Choose A Video From The Right.</font></b></span> </p>

</center>

<tr><td

<br>

<tr><td>

</form> <iframe src="" name="games" width="560" height="460" scrolling="no"></iframe></td></tr>

</table></td>

<?

print("<td width=300 valign=top><table border=1>");

?>

<table cellpadding="4" cellspacing="1" border="0" style="width:100%" class="tableinborder">

<tr class="tabletitle" width="100%">

<td colspan="10" width="100%"><span class="normalfont"><center><b>List</b></center></span></td>

</tr><tr><td width="100%" class="tablea">

<center>

<p><br>

<span class="style3"><b><font color=blue> Have Fun</font></b></span> </p>

</center>

<?

$query = "SELECT * FROM youtubevideo ORDER BY name";

$sql = mysql_query($query);

while ($row = mysql_fetch_array($sql)) {

$link = $row['link'];

$name = $row['name'];

print("<tr><td align=left> <a href=".$link." target=games>".$name."</td></tr>");

}

print("</table>");

print("</td></tr></table>");

end_frame();

if ($CURUSER["class"] >= "7"){

print("<br><br>");

begin_frame("New video", FALSE, "100px");

?>

<form method="post" action="youtube.php">

<? begin_table(TRUE); ?>

<div align=center>

For URL: "http://youtube.com/watch?v=qppuuQrklHg"<br><br>

just put: qppuuQrklHg in link

<br></div><br>

<tr><td class="tableb">Link:</td><td class="tablea"><input type="text" name="link" size="60"></td></tr>

<tr><td class="tableb">Name:</td><td class="tablea"><input type="text" name="name" size="60"></td></tr>

<tr><td class="tablea" colspan="2" style="text-align:center"><input type="submit" value="Okay" class="btn"></td></tr>

<? end_table(); ?>

</form>

<?

end_frame();

begin_frame('Videos', FALSE, "100%;");

begin_table(TRUE);

?>

<colgroup>

<col width="10">

<col width="15%">

<col width="25%">

<col width="20%">

<col width="20%">

<col width="10">

</colgroup>

<tr>

<td class="tablecat"><div align="center"> ID</div></td>

<td class="tablecat"><div align="center"> Name</div></td>

<td class="tablecat"><div align="center"> Link</div></td>

<td class="tablecat"><div align="center"> Added by</div></td>

<td class="tablecat"><div align="center"> Added form</div></td>

<td class="tablecat"><div align="center"> Delete</div></td>

</tr>

<tr>

<?

$query = "SELECT * FROM youtubevideo ORDER BY id";

$sql = mysql_query($query);

while ($row2 = mysql_fetch_array($sql)){

$link = $row2["link"];

$name = $row2["name"];

$id = $row2["id"];

$addedby = $row2["addedby"];

$addtime = $row2["addtime"];

?>

<tr>

<td class="tablea"><div align="center"> <?=$id?></div></td>

<td class="tablea"><div align="center"> <?=$name?></div></td>

<td class="tablea"><div align="center"> <?=$link?></div></td>

<td class="tablea"><div align="center"> <?=$addedby?></div></td>

<td class="tablea"><div align="center"> <?=$addtime?></div></td>

<td class="tablea"><div align="center"> <a href="youtube.php?id=<?=$id?>">Delete</a> </div></td>

</tr>

<?

$nr = $nr+1;

}

end_table();

end_frame();

}

stdfoot();

?>




here is a screen of the video area.



and another screen of the video area that shows after the video is finished your user can access other videos if they are available.



and here is a screen where you can add videos.

you need to search for the invite mod and install it.

"Dorian, post: 40175":
Hi guys!
I only have a single problem, no link to send the invites. everything else works fine, the seeding bonus works and it's properly countered.

My question is simple: How will my users send the invites they exchanged for seeding points, I mean, there's no link for sending the invites.

Take me easy, I'm just a graphic designer, I'm new in the PHP coding, I started on liking it and this tracker I've setup is for a group of people, it's a serious thing and I want it to work, of course.

I mention that I've created the mybonus.php and did all the necessary modification accordingly to the updated codes placed here in this topic. I don't even know which code to post here because everything is exactly as posted on the forum, I compared files and everything is okay, but no link for sending an invitation although my users say that there's the block on the right side telling them they have invites.

I personally think this could be for two reasons, something different in v2.04 or I'm a real dumba*s.

Greetings and congratulations for the Seed Bonus add-on, it's quite nice and works, I mean not for me, not entirely  :D

All the best,

Friendly,

Dorian
Adding my two cents lol — 2008-03-12 09:55:03 in General Chat
I would just like to say that i see a lot of new people signing up here and a lot of crazy questions are asked  :D  A lot of the questions can be answered by either searching or reading the source code. Yes I said read the source code because if you want to start a tracker then you need to know the code lkike the back of your hand if possible. I am not saying you need to know and remember every word, but you should look at the code and see what every page does and what the general style of the code is. What I mean by general is some of the things you will see over and over again in side the code. By knowing the things, for example, things like show_error_msg or a few others may save you time and frustration later on. Also when installing read the rules and get to know your files that it talks about in the installation like the config.php. Of course you will find help in the forums but you may also notice that if you ask some questions that you wait a very long time if not forever for the answer. You may ask why is this and a simple answer may be that you answered has already been covered inside the forum. With a simple search you can find a lot of answers. So do not be suprised if you wait for an answer that has already been covered, because some people are like me if they see that the question has already been answered then they will leave you hangin. I do not do this to be mean I do this because people have to learn to search and also it is a waste of space and resources to see the same thing 5 or 6 times. Another I would like to say is that if you do not know anything about computer languages then you may be in the wrong place. To run a tracker and make it the way you want takes time, work and know how. You do not need to be an expert but you should know the basics because that will save you a lot of time. Also do you really trust everything that is posted out there. No matter wher you go nothin is 100% safe because you always have new members that might post something that can hurt your site. Of course most places are being moderated but it only take about 5 or 10 minutes for a bad post to sit there before it is erased and cause problems. If you need some basic help with wed languages then google W3 school they have some tutorials that can help you in the begining. Like I said learn the source code a little for your tracker because if you come here asking questions about installing or how do i do anything in the config.php because i did not even think to look if one exsist then I feel a little bit sorry for your members and for you. Now nobody is perfect and mistakes will be made. But putting yourself and your members at risk is not the way to go. Because you do have hackers out there looking for torrent sites where the owner does not know what he or she is doing and that can cost you big problems. Also it can cause your members problems. So have fun and I hope you enjoy it here, I can tell you this after looking through a few different source codes for trackers this is by far one of the easiest to learn and is interchangeable with some other source codes, if you make a few modifications. :D
it may be the problem.

"SpaZiuR, post: 39984":
don't know if that is the problem but i have v2.02!
at first i had the same problem but with this code it solved the problem. so now i do not know what to tell you. i tested it on v2.03 and it is working.

"SpaZiuR, post: 39977":
thanks but that didn't work!!
no users where promoted!!

and when i force cleanup it appears a error on this line
welcome to the site killer boy. i hope you enjoy stay and can offer some hacks for us B)
Jump Start — 2008-03-11 16:18:20 in General Chat
you could always steal from a site like this  B) [url="http://www.newtorrents.info/"]http://www.newtorrents.info/[/url] and then use the mass import you will find if you search the forums
Bandwidth usage — 2008-03-11 16:15:59 in General Chat
i have around 173 members and with a lot of extras like the arcade and a few others i have used around 3GB of bandwidth this month. i would say for 1000 users you will need per month minimum 60GB if not all of your users come on everyday. it also depends on how many torrents you have on the site and how many peeps are taking those torrents
ok try this the only problem i see so far is that it does not send a message to the user.

in cleanup.php find:

//REMOVE WARNING

$res1 = mysql_query("SELECT id,username FROM users WHERE warned = 'yes' AND enabled='yes' AND uploaded / downloaded >= $minratio AND downloaded >= $downloaded");



if (mysql_num_rows($res1) > 0){

$timenow = get_date_time();

$reason = "Your warning of low ratio has been removed. We highly recommend you to keep a your ratio up to not be warned again.\n";



while ($arr1 = mysql_fetch_assoc($res1)){

write_log("Auto Leech warning has been removed for: <a href=account-details.php?id=".$arr1["id"].">".$arr1["username"]."</a>");



mysql_query("UPDATE users SET warned = 'no' WHERE id = '".$arr["id"]."'");

mysql_query("UPDATE warnings SET expiry = '".$timenow."' WHERE userid = '".$arr["id"]."'");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ('0', '".$arr["id"]."', '".$timenow."', '".$reason."', '0')");

}

}
add after:




// promote to power users

$res = mysql_query("SELECT id,username FROM users WHERE class = 1 AND uploaded >= $promotegigs AND downloaded >= $minratio ");

if (mysql_num_rows($res) > 0)

{

$timenow = get_date_time();

$reason = sqlesc("You have been auto-promoted from User to Power User \n");

while ($arr = mysql_fetch_assoc($res))

{

mysql_query("UPDATE users SET class = 2 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES('0', '".$arr["id"]."', '".$timenow."', '".$reason."', '0')");

}

}





ok now open config.php and find:





$site_config["ratiowarn_daystowarn"] = 14; //Days to ban





add after:





$site_config["ratiowarn_promote"] = true; //Promote power user

 $site_config["ratiowarn_promotegigs"] = 25; //Min GB Promote




now that should be it. i know it is ratio warn but i just decided to use that part for promotion also. you can adjust the ratio where you see the minratio in the config.php also you can change the number of gigs with the promotegigs. i hope it works for you enjoy B)
thank you very much B)
thank you :)
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728