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
[MOD] Thanks
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-11-27 20:52:38
"AzuriS, post: 49671":
don't you know what is SQL ?

Like I said. I'm a noob at this. I've been able to do a few of these mods already, but I haven't come across one that has referred to "SQL"  Thats why I'm asking here. A point in the right direction is all I ask. Thanks for now.
Unknown User
2008-11-27 21:03:35
this ALTER TABLE will tell you that it is mysql. it is ok to be a noob but doing a tracker is not a way to learn php and mysql because if you go live with your tracker then you put others at risk.
Unknown User
2008-12-14 02:51:32
works in 2.05 thanks!
Unknown User
2009-01-18 17:04:38
thank you! works super on v2.05
Unknown User
2009-04-11 20:20:13
$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username'] || !$CURUSER) $leftthanks = true;
foreach ($thanksl as $u) {
$thanks .= ($i>0)?", $u":$u;
if ($u == $CURUSER['username']) $leftthanks = true;
$i++;
}


$a = mysql_query("SELECT class, donated FROM `users` WHERE
id = $row[userid] ");
$a = @mysql_fetch_row($a);
switch ($u[0]) {
case 11: // Administrator
$user = "<font color=darkred>$row[user]</font>";
break;
case 10: // Administrator
$user = "<font color=teal>$row[user]</font>";
break;
case 9: // Administrator
$user = "<font color=#ff0000>$row[user]</font>";
break;
case 8: // Administrator
$user = "<font color=#FF8080>$row[user]</font>";
break;
case 7: // Administrator
$user = "<font color=darkblue>$row[user]</font>";
break;
case 6: // Super Moderator
$user = "<font color=blue>$row[user]</font>";
break;
case 5: // Moderator
$user = "<font color=burlywood>$row[user]</font>";
break;
case 4: // Uploader
$user = "<font color=#00CC00>$row[user]</font>";
break;
case 3: // VIP
$user = "<font color=#FF6600>$row[user]</font>";
break;
case 2: // Donateur
$user = "<font color=#FEDE01>$row[user]</font>";
break;
case 1: // Power User
$user = "<font color=black>$row[user]</font>";
break;
default: // User
$user = "<font color=black>$row[user]</font>";
}

if (!$thanks) $thanks = "No one yet.";

print("<tr><td align=left><b>Thanks By:</b></td><td>$thanks</td>
</tr>n");
if (!$leftthanks) print("<tr><td align=left>&nbsp;</td><td><form action
=thanks.php method=POST><input type=hidden name=torrent value=$id>
<input type=submit value='Thanks!'></form></td></tr>n");

i try to add color by level but nothing happen,any one can help pls
Unknown User
2009-06-24 21:39:33
Works perfectly on 2.03

Thank you!
Unknown User
2009-08-07 18:14:12
Working on the latest SVN also.

Thank you, for the "Thank You" mod.....  :)

Peace........
Unknown User
2009-08-10 20:31:14
Hy.

I have installed seedbonus mod.

Can i have some how give users bonus points by pushing thanks button  :(

Adding something like that to code:

:) .





EDIT:

ok, find my self:



find:

mysql_query("UPDATE users SET seedbonus = seedbonus+2.0 WHERE id = $userid") or die (mysql_error());
Thanks for help
mysql_free_result($res);





add after:



mysql_query ("UPDATE users SET seedbonus = seedbonus+2.0 WHERE id = $CURUSER[id]") or die (mysql_error());




Changes this value "2.0" if you dont want give so much points :)
Unknown User
2009-08-13 23:37:24
Hello!

Anyone here able to get this to work with Ajax instead so the webpage dont need to be reloaded etc? I know nothing about ajax more than that i love it and makes the pages feel much more dynamic.  :)

Regards,

TorrentFriend
Unknown User
2009-08-19 22:18:14
works great with 2.05
Unknown User
2009-08-23 16:26:54
Hello!

If someone would be able to fix this one to work with ajax in both IE and FF i would love to make a small donation over paypal for the time and effort you had to put in to make an ajax version of this modification!

Regards,

TorrentFriend
Unknown User
2009-08-23 17:18:34
[url="http://www.torrenttrader.org/index.php?showtopic=9541&view=findpost&p=59672"]http://www.torrenttrader.org/index.php?sho...ost&p=59672[/url]
Unknown User
2009-08-23 18:00:42
lool still send him a donation he deserves it
Unknown User
2009-08-23 18:08:15
Great work guys! Ill send over a nice little present in the week when money drops in to my account!

Now who will look into that ajax star rating script?  :)

Regards,

TorrentFriend
Unknown User
2009-09-14 04:09:36
thanks working fine on v2.05
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