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

This is one of my mods from the premium section which was done Apr 23, 2008. it was originally done for V2.03 so it may need some modding to work on the newer versions.

ok i took a couple of codes here and put them together you may see some things in the code that do not need to be their and that is because when I got it working I did not want to mess with it anymore  :D  what I used was a code from tbdev (i belive it was a code to give out invites or something like that) and part of the casino code. this is just a simple code that lets you add MB or GB per username. maybe one day I will be able to set it in the account-details.php i have tested this on two different sites and it works.

add in admincp.php:

<td align=center><a href=admincp.php?action=addgigs><img src=images/admin/control_bonus.png border=0 width=32 height=32><br><center><b>Add Gigs</center></b></a><BR></td>
add now at the end of your admincp.php:




	

#======================================================================#

# Add Gigs To Users

#======================================================================#

if($action == "addgigs")

{

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

{

if ($_POST['doit'] == 'yes') {

mysql_query("UPDATE users SET uploaded = uploaded + 2147483648 WHERE status='confirmed'");

stderr("Upload", "2GB upload is sent to everyone...");

die;

}

if ($_POST["username"] == "" || $_POST["gigs"] == "" || $_POST["gigs"] == "")

show_error_msg("Error", "Missing form data.");

$username = sqlesc($_POST["username"]);

$uploaded = sqlesc($_POST["uploaded"]);

$userid = $CURUSER["id"];

$mb_basic=1024*1024;

if(isset($_POST['unit'])){

if ($_POST["unit"] =='1')

$nobits = $gigs*$mb_basic;

if ($_POST["unit"] =='2')

$nobits = $gigs*$mb_basic*1024;

 

}

$modcomment = gmdate("Y-m-d") . " - ".$CURUSER['username']." has given ".mksize($nobits)." to this user.\n " .$modcomment;

mysql_query("UPDATE users SET modcomment = '$modcomment', uploaded=uploaded + $nobits WHERE username=$username") or sqlerr(__FILE__, __LINE__);

$res = mysql_query("SELECT id FROM users WHERE username=$username");

$arr = mysql_fetch_row($res);

if (!$arr)

show_error_msg("Error", "Unable to update account.");

header("Location: $site_config[SITEURL]/account-details.php?id=$arr[0]");

die;

}

stdhead("Update Users Upload Amounts");

navmenu();

begin_frame("Update Users Uploaded Amounts",false,10,false);

echo "<form method=\"post\" action=\"admincp.php?action=addgigs\">";

?>

<center><font color=red size=2><b>To add gigs put in the user's name and amount then choose MB for megabytes or GB for gigabytes.</b></font></center>

<p align=center><table border=0 width=100% cellspacing=0 cellpadding=0>

<tr><td class="rowhead"><b>User name</b></td><td class="row1"><input type="text" name="username" size="40"/></td></tr>

<tr><td class="rowhead"><b>Amount</b></td><td class="row1"><input type="text" name="gigs" size="5"/><select name=unit><option value=1>MB</option><option value=2>GB</option></td></tr>

<tr><td colspan="2" class="row1" align="center"><input type="submit" value="Okay" class="btn"/></td></tr>

</table>

</form>

<?

end_frame();

stdfoot();

}



here is a screenshot



now you can use this pic if you would like to or add your own pic.

Subdomain on Vps server — 2010-10-22 18:52:00 in General Chat
some people like to have their dns pointing to a different server but i always use my domain name so you would put

ns1.yourdomain.com

ns2.yourdomain.com

you need to replace yourdomain.com with the domain name which you have
Subdomain on Vps server — 2010-10-21 23:04:48 in General Chat
you should create a domain not subdomain in the panel. but first you will need to create a dns template becuase you will need to chose it for your domain. kloxo is easy to use if you just look at what is there and get the feel for it
if i ever get around to it i might add it. anybody who wants to add things to this can feel free and if it works i will add it to the first post as a variant way. some of the mods i have on the forums i do get around to messing with and make them a bit better but since i only have a test site up then things like that and any new mods are on the bottom of my list. at the moment i am only making things which i use elsewhere like the smtp mod i done in the premium section because i am working on a couple wordpress sites i decided to bring it over to tt and integrate it with what tt has.
what is this post about so i can put it in the right place? is it a mod request or general discussion?
so first off stop flaming. second all mods here and on most other torrent source sites are open source. we take what we can from where we can just like other sites. all we ask here is that it is taken from another site then it should be said in the topic post. you don't see me going to other sites and complaining about my code being used unless it is something i have posted in the premium section.
welcome back. i will take a break and let you take charge now  :D
lmfao i am the one on the bottom left lol
So this one has been in the premium section for about 2 years now so i decided it is time for the normal users to enjoy it and maybe build on it.

Ok I got the idea from the IMDB mod. some torrents have screenshots so this lets your uppers up them with the torrent to display in the torrent details and to display in the torrent tables with the ballon mod.

sql:

ALTER TABLE `torrents` ADD `screens1` LONGTEXT NOT NULL;

ALTER TABLE `torrents` ADD `screens2` LONGTEXT NOT NULL;

ALTER TABLE `torrents` ADD `screens3` LONGTEXT NOT NULL;

ALTER TABLE `torrents` ADD `screens4` LONGTEXT NOT NULL;
find in torrents-upload.php:




$descr = unesc($_POST["descr"]);



if (!$descr)

$descr = "No description given.";





add above it:





///screenshot

$screens1 = unesc($_POST["screens1"]);

if (!$screens1)

$screens1 = "";



$screens2 = unesc($_POST["screens2"]);

if (!$screens2)

$screens2 = "";



$screens3 = unesc($_POST["screens3"]);

if (!$screens3)

$screens3 = "";



$screens4 = unesc($_POST["screens4"]);

if (!$screens4)

$screens4 = "";

///screenshot

now find:

$ret = mysql_query("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang) VALUES (".sqlesc($fname).", '".$uploaderid."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$type."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."')");





in this query you need to add a few things:



directly after:





name,





add:





screens1, screens2, screens3, screens4,





now still in the same query directly after:





".sqlesc($name).",





add:





".sqlesc($screens1).", ".sqlesc($screens2).", ".sqlesc($screens3).", ".sqlesc($screens4).",





now find:





print ("<TR><TD align=right>" . NFO . ": </td><td align=left> <input type=file name=nfo size=50 value=" . $_FILES['nfo']['name'] . "><br />\n</td></tr>");





add after:





// screenshots //

print ("<TR><TD align=right>Screenshot 1: </td><td align=left><input type=text name=screens1 size=60 value=" . $_POST['screens1'] . "><BR>\n</td></tr>");

print ("<TR><TD align=right>Screenshot 2: </td><td align=left><input type=text name=screens2 size=60 value=" . $_POST['screens2'] . "><BR>\n</td></tr>");

print ("<TR><TD align=right>Screenshot 3: </td><td align=left><input type=text name=screens3 size=60 value=" . $_POST['screens3'] . "><BR>\n</td></tr>");

print ("<TR><TD align=right>Screenshot 4: </td><td align=left><input type=text name=screens4 size=60 value=" . $_POST['screens4'] . "><BR>\n</td></tr>");

//screenshots //





find in torrents-edit.php:





$updateset[] = "name = " . sqlesc($name);





add after:





///screenshot

$updateset[] = "screens1 = " . sqlesc($screens1);

$updateset[] = "screens2 = " . sqlesc($screens2);

$updateset[] = "screens3 = " . sqlesc($screens3);

$updateset[] = "screens4 = " . sqlesc($screens4);

///screenshot end





now find:





echo "<tr><td align=right width=60><B>Name: </b></TD><TD><input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" size=\"60\" /></TD></TR>";





add after:





///screenshots

echo "<tr><td align=right width=60><B>Screenshot 1: </b></TD><TD><input type=\"text\" name=\"screens1\" value=\"" . htmlspecialchars($row["screens1"]) . "\" size=\"60\" /></TD></TR>";

echo "<tr><td align=right width=60><B>Screenshot 2: </b></TD><TD><input type=\"text\" name=\"screens2\" value=\"" . htmlspecialchars($row["screens2"]) . "\" size=\"60\" /></TD></TR>";

echo "<tr><td align=right width=60><B>Screenshot 3: </b></TD><TD><input type=\"text\" name=\"screens3\" value=\"" . htmlspecialchars($row["screens3"]) . "\" size=\"60\" /></TD></TR>";

echo "<tr><td align=right width=60><B>Screenshot 4: </b></TD><TD><input type=\"text\" name=\"screens4\" value=\"" . htmlspecialchars($row["screens4"]) . "\" size=\"60\" /></TD></TR>";

///screenshots





no find in torrents-details.php:





torrents.name,





add directly after:





torrents.screens1, torrents.screens2, torrents.screens3, torrents.screens4,





now find:





if ($row["image1"] != "" OR $row["image2"] != "") {

 if ($row["image1"] != "")

$img1 = "<IMG src=".$site_config["SITEURL"]."/uploads/images/$row[image1] width=150 border=0>";

 if ($row["image2"] != "")

$img2 = "<IMG src=".$site_config["SITEURL"]."/uploads/images/$row[image2] width=150 border=0>";

 print("<CENTER>". $img1 . "&nbsp&nbsp" . $img2."</CENTER><BR>");

}





add after:





echo "<BR><BR>";

if ($row["screens1"] != "" OR $row["screens2"] != "" OR $row["screens3"] != "" OR $row["screens3"] != "") {

 if ($row["screens1"] != "")

$screens1 = "<IMG src=".$row['screens1']." width=350 border=0>";

 if ($row["screens2"] != "")

$screens2 = "<IMG src=".$row['screens2']." width=350 border=0>";

if ($row["screens3"] != "")

$screens3 = "<IMG src=".$row['screens3']." width=350 border=0>";

 if ($row["screens4"] != "")

$screens4 = "<IMG src=".$row['screens4']." width=350 border=0>";

 print("<CENTER>". $screens1 . "&nbsp&nbsp" . $screens2 ."</CENTER><BR>");

 print("<CENTER>". $screens3 . "&nbsp&nbsp" . $screens4 ."</CENTER><BR>");

}





now find in functions.php:





<td class=ttable_head>NFO</td>





add after:





<td class=ttable_head>Screens</td>





now find:





if ($row["nfo"]=='yes') {

print("<td class=ttable_col1 align=center><a href=nfo-view.php?id=$row[id]><img  src=" . $site_config['SITEURL'] . "/images/icon_nfo.gif border=0 alt='View NFO'></a></td>");

}else{

print("<td class=ttable_col1 align=center>-</td>");

}





add after:





$simg = @mysql_fetch_array(@mysql_query("SELECT screens1, screens2, screens3, screens4 FROM torrents WHERE id=$id"));

$simg1 = $simg[screens1];

$simg2 = $simg[screens2];

$simg3 = $simg[screens3];

$simg4 = $simg[screens4];

$screens1 = number_format(get_row_count("torrents", "WHERE id=$row2[id] && screens1!=''"));

$screens2 = number_format(get_row_count("torrents", "WHERE id=$row2[id] && screens2!=''"));

$screens3 = number_format(get_row_count("torrents", "WHERE id=$row2[id] && screens3!=''"));

$screens4 = number_format(get_row_count("torrents", "WHERE id=$row2[id] && screens4!=''"));

$screenstotal = $screens1 + $screens2 + $screens3 + $screens4;

if ($simg["screens1"]!=''){

print("<td class=ttable_col1 align=center><font size=1 face=Verdana><a href=screens.php?id=$id onmouseover=\" return overlib('<center><h1><b>Screen Shots:</b></h1></center><hr><table width=100%><tr><td><img src=$simg1 width=250 border=0></td><td><img src=$simg2 width=250 border=0><img src=$simg3 width=250 border=0><img src=$simg4 width=250 border=0></td></tr></table>', CENTER, HEIGHT, 250, WIDTH, 300);\" onmouseout=\"return nd();\">" . $screenstotal . "</a></td>\n");

}else{

print("<td class=ttable_col1 align=center><font size=1 face=Verdana><a href=screens.php?id=$id onmouseover=\" return overlib('<center><h1><b>Screen Shots:</b></h1></center><hr><table width=100%><tr><td><br><br><br><br><tr><td><center><font color=red size=4><b>Sorry no screens available</b></font></center></td></tr></table>', CENTER, HEIGHT, 250, WIDTH, 300);\" onmouseout=\"return nd();\">" . $screenstotal . "</a></td>\n");

}





now if you do not have the overlib already on your site then add this to your header.php for every theme you use it goes between the <head> and </head>:





<script type="text/javascript" src="/themes/default/overlib.js"></script>



also upload the file below to the default folder in your themes folder

and add the screens.php to your root folder

I hope I did not forget anything enjoy  :D







[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4227"]screens.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4228"]overlib.rar[/url]
you can change the value for how many games get downloaded i set it at 500 because some people may not want to many or they may not have room on their host. i have ran the script before and downloaded over 5000 games for an arcade i had setup on facebook. one reason why you might not see the games is because the file might not be on your server. when you run the script you have to let it run until it finishes even if it takes hours to do because it is moving each file to your server and that can take time when you have hundreds or thousands of swf files and image files to move. every time a swf file is moved then the autopost page will update and tell you which file it is moving. also make sure the chmods for the folders are correct if you do not see the games or pictures in the folders.
Vps server -Santrex — 2010-10-13 17:54:56 in General Chat
"Obama, post: 66039":
Not reccomend santrex.
Try Kimsufi.

kimsufi is better than santrex. if you do not live in one of the countries covered by ovh then you can normally find somewhere on the internet who are reselling their servers. but the price might be out of your range if you are looking for something really cheap. you can find all over cheap vps or hosting which might let you host a torrent site but most places which actually say that they allow torrents either do not come cheap or are not always reliable. with torrent hosting no matter where you host there is always a chance you will wake up one morning to a closed site lol
sorry but i do not offer free help through messenger because i have a lot to do like making new mods, keeping these forums tidy and working on other projects. you will not see anything if you do not add categories and then upload games. if you use the mochiads scrtipt that will make categories for you and download games from the mochiads server. this mod is complete (of course there may be bugs here and there) in the sense that you have an arcade frame work. all content and settings have to be done by you.
Vps server -Santrex — 2010-10-11 23:10:44 in General Chat
"drosatos, post: 65965":
Like what problems i may face?
Thank you for the reply!

when it comes to santrex you never know what you will face lol. they have their good times and their bad times. there servers are ok and not the best and i have not had to many problems with them it is just their customer service which sucks. they do not have enough staff and are a reseller because as much as i know they do not own any servers. just be prepared that if their is a problem then you could be waiting longer than most host for a reply. other than that they have a lot of choices when it comes to location and products and they have some of the best prices on the net. also they have an affliate program so if enough people sign up through your link then you get a certain % of the price to be used on any of their services. at one time i was getting free hosting because that was paying for it.
Vps server -Santrex — 2010-10-11 18:02:15 in General Chat
i have been doing torrent sites on santrex for the past couple of years. at the moment i do not really run a torrent site but have a couple of the set up on the vps for testing and mod making. the starter one is ok for getting your site started if you are still coding and have a small user base but at some point you will probably need to upgrade to a faster vps or dedicated server when you get more users. centos is the operating system and kloxo is the control panel so if you get the centos with kloxo then you are getting the operating system with control panel. i use the kloxo panel and find it easier to use than most panels out there. also remember if you go with santrex then make sure you know how to fix any problems which may come up with your vps because they do not have the best customer service out there lol
Since djhowarth has posted a better version of this in the premium section which has search, delete and unknown user for deleted users, I have decided to move my old version from the premium section to here for people to use. If you are a torrent trader premium member then you can find djhowarth's [url="http://www.torrenttrader.org/index.php?showtopic=12817"]here[/url]

this is the normal message spy but it with a difference. it censors the message so that lower staff classes do not see the messages you sent. this was coded for V2.3 a couple years back so there may be some problems with the newer release. if there is then let me know.

in your admincp.php find the code for the message spy and replace it with this:

if ($action=="messagespy"){



stdhead("Message Spy");

navmenu();



$res2 = mysql_query("SELECT COUNT(*) FROM messages");

$row = mysql_fetch_array($res2);

$count = $row[0];



$perpage = 50;



 

list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "admincp.php?action=messagespy&");



begin_frame("Message Spy");



echo $pagertop;



$res = mysql_query("SELECT * FROM messages WHERE location='in' ORDER BY id DESC $limit") or die(mysql_error());



print("<CENTER><table border=1 cellspacing=0 cellpadding=3 class=table_table>n");



print("<tr><td class=table_head align=left>Sender</td><td class=table_head align=left>Receiver</td><td class=table_head align=left>Text</td><td class=table_head align=left>Date</td></tr>n");



while ($arr = mysql_fetch_assoc($res)){

$res2 = mysql_query("SELECT * FROM users WHERE id=" . $arr["receiver"]) or die(mysql_error());



$arr2 = mysql_fetch_assoc($res2);

$receiver = "<a href=account-details.php?id=" . $arr["receiver"] . "><b>" . $arr2["username"] . "</b></a>";



$res3 = mysql_query("SELECT * FROM users WHERE id=" . $arr["sender"]) or die(mysql_error());

$arr3 = mysql_fetch_assoc($res3);



$sender = "<a href=account-details.php?id=" . $arr["sender"] . "><b>" . $arr3["username"] . "</b></a>";

if( $arr["sender"] == 0 )

$sender = "<font color=red><b>System</b></font>";

$msg = format_comment($arr["msg"]);

if ( $CURUSER["class"] < $arr2["class"] || $CURUSER["class"] < $arr3["class"])

$msg = "<center><font color=red size=3><b>Sorry Censored!!!</b></center></font>";

$added = utc_to_tz($arr["added"]);

 

print("<tr><td align=left class=table_col1>$sender</td><td align=left class=table_col2>$receiver</td><td align=left class=table_col1>$msg</td><td align=left class=table_col2>$added</td></TR>");

 

}



print("</table></CENTER><BR>");



print($pagerbottom);



end_frame();

stdfoot();

}


here screen shot of when a lower staff class sees what the owners have wrote in a message. it shows a message which says Sorry Censored!!!

For people who are looking for somebody to install a basic Torrent Trader source can be bought here [url="http://www.tsocialmedia.com/paid-mods/torrent-trader-install/"]http://www.tsocialmedia.com/paid-mods/torr...trader-install/[/url]

Premium memebers of Torrent Trader will get a 15% discount and can find the coupon code in the premium section of Torrent Trader. if you have any questions or cannot find the code then send me a PM before buying.

below is the description and the price.

Normal one time Torrent Trader installation. The installation is only for a basic Torrent Trader without mods on one domain unless otherwise stated. Installation will only be done on a dedicated server or VPS which the buyer must have before hand.

1 domain $25

2 domains $45

3 domains $65

4 domains $85

5 domains $100
Flaming Wars — 2010-10-07 13:17:09 in General Chat
This goes for everybody and is not intended for just one person or group of people. I know everybody likes to flame because I have been there before but it is the time to put some of it to a stop. Everybody is intended to their own opinion but attacking a thread or person will not be tolerated and will be dealt with. I will edit the comment and warn the person either on the comment or by pm. If it continues on that topic then i will lock it and if the people involved carry on elsewhere then they will face the consequences of the admins or developers because I will just report the person to them. So for everybody take this as your warning.
i have re-done the autopost.php and have updated the zip on the first post. for people who have already installed it then please add the parts below to be up to date. the script is fairly basic but works and i do not plan on making it look nicer or making it where you have a link to it in the db. so that part you will have to do yourself. maybe one day i will get around to making a better version of this code which will be more integrated with tt but i will probably have it on my site as a premium mod.

run in my sql:

ALTER TABLE `ava_games` ADD `uuid` text NOT NULL;

ALTER TABLE `ava_games` ADD `mochi_swf_url` text NOT NULL;

ALTER TABLE `ava_games` ADD `mochi_thumb_url` text NOT NULL;
also upload the new autopost.php which is attached to this post and please do not forget to change the values below.



this part only allows the autopost to be used by the owner. most people will not need to change this value.


$CURUSER["class"]=="7"





this part you need to put your mochiads id in.



$mochi_id = "Your_Mochiads_Id";





This part is the categories which are added. The script grabs the first listed category in the json file and goes off of that. there are more categories which than which are listed here and you can add them to this part if you want.



$cats = array('Action', 'Adventure', 'Board Games', 'Casino', 'Customize', 'Dress-Up', 'Fighting', 'HighScores', 'Other', 'Puzzles', 'Shooting', 'Sports');





this part limits how many games you want to add. if you leave it blank then it will grab all games from Mochiads. Just remember Mochiads has over 5000 games so make sure you have the place on your server for that many game files. I have set it to downloaded 1000 so change it to how many you would like.



$limit_games = "500";




hopefully that is it. have fun.
TorrentTrader v2.06! — 2010-09-28 16:06:29 in General Chat
i found mostly found it safe. it all depends on how good you are at security and how good you are to check other people's work because as with anything holes will be found one way or the other. if you look at the bug report for tt v1 and tt v2 then i would say it might have a better track record than tbdev but i have never really worked with tbdev so i cannot say 100% which has more problems.
SMS Donations — 2010-09-14 12:13:56 in General Chat
you could always either integrate with the offers like you see on paypal or make a new site and set it up as a front for your torrent site in case you are worried about breaking the offer companies tos. or i could set my site backup which not a torrent site but is tt based and people could come there and do offers or pay by sms or pay by about 5 other ways and then i send you the money to paypal for each user but of course there would be a small fee of $2 per user. or if you want the mod for your site then let me know and for a small fee i can walk you through everything and set it up.

EDIT:

I put the site back online so you can see an example. you will have to register at the link below.

[url="http://free-premium-account.co.uk"]http://free-premium-account.co.uk[/url]

the link for the offer page is here

[url="http://free-premium-account.co.uk/offers.php"]http://free-premium-account.co.uk/offers.php[/url]

that is setup with adparlor and not to many offers show up but their are other offer companies out there who are better. i just used adparlor as a test. as you can see on the offer page their is a a place you can click for pay by mobile. offer company payouts are anywhere from $30 to $100 minimum. i have not used the site in a couple of months and have not edited anything on it in a few months so that is why the other offer companies are not up as an example. as you can see i call my offer points rapido and that can be set when you set up an account with the offer companies. i have tested with one offer company for payout and that was with the one on now and cashed out $30 from two people testing it. i am also thinking about setting up an api and hosting the offers on my server that torrent site owners could connect to and either send their users to my site or in an iframe. this way it would be a front for sites and they would not have to worry about paypal or the other companies freezing their account.
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