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

group premium — 2012-03-07 16:25:41 in General Chat
Thanks for the quick reply,

It will be my pleassure to donate (waiting for my wife, shopping with the cc in her wallet..PPfffff  :)  )
group premium — 2012-03-07 15:46:44 in General Chat
Sorry to break in, but what is the minimum amount?

I would be more the happy to contribute and to become a TTContributor, you all did a great job with the latest release.
Uploader Rank — 2010-12-11 21:37:23 in v2 Only Mods Complete
"Lakicevic Boris, post: 65618":
SQL

CREATE TABLE `rangclass` ( 
`id` int(10) unsigned NOT NULL auto_increment,

`name` varchar(50) default NULL,

`rangpic` varchar(50) default NULL,

PRIMARY KEY  (`id`)

) TYPE=MyISAM AUTO_INCREMENT=3;

INSERT INTO `rangclass` VALUES (1, '1 Rank', 'goblet_bronze.gif');

INSERT INTO `rangclass` VALUES (2, '2 Rank', 'goblet_silver.gif');

INSERT INTO `rangclass` VALUES (3, '3 Rank', 'goblet_gold.gif');

ALTER TABLE `users` ADD `rangclass` int(10) unsigned NOT NULL default '0';


find your account-details.php

stdhead("User Details for " . $user["username"]);


add above

///rang klass uploader/////
$rangclass1 = "<option value=0>---Uploader Rank---</option>\n";

$res28 = mysql_query("SELECT * FROM rangclass ORDER BY name") or sqlerr();

while ($rank = mysql_fetch_array($res28))

$rangclass1 .= "<option value=$rank[id]" . htmlspecialchars($user['rangclass'] == $rank['id'] ? " selected" : "") . ">$rank[name]</option>\n";

$res22 = mysql_query("SELECT name,rangpic FROM rangclass WHERE id=$user[rangclass] LIMIT 1") or sqlerr();

if (mysql_num_rows($res22) == 1)

{

$arr22 = mysql_fetch_assoc($res22);

$rangclass = "<img src=/images/$arr22[rangpic] alt=\"$arr22[name]\" title=\"$arr22[name]\" style='margin-left: 5pt' align=top></td>";

}

//////end rang klass//////

find

	if ($CURUSER["class"] > $user["class"]){
print("<tr><td>Class</td><td align=left><select name=class>\n");

$maxclass = $CURUSER["class"];

for ($i = 1; $i < $maxclass; ++$i)

print("<option value=$i" . ($user["class"] == $i ? " selected" : "") . ">$prefix" . get_user_class_name($i) . "\n");

print("</select></td></tr>\n");

}

add after

if ($CURUSER["rangclass"] > $user["rangclass"]){
print("<tr><td>Uploader Rank: </td><td align=left><input type=hidden name=rangclass value=$user[rangclass]></td></tr>\n");

}else{

print("<tr><td>Uploader Rank: </td><td align=left><select name=rangclass>\n" .$rangclass1. "\n</select></td></tr>\n");

}

find

User Class: <?=get_user_class_name($user["class"])?><BR>

add after

if ($user["rangclass"] > 0)
Uploader Rank:<?=$rangclass?><BR>

save and close

find in admin-modtasks.php

$class = (int) $_POST["class"];

after add

$rangclass = $_POST["rangclass"];


find

warned='$warned',


add after

rangclass='$rangclass',


save and close

add the images in to images folder



all credit to okiee and Sir-Aragorn

:rolleyes:


Is it possible to add more rangclasses then 3 ? because then I can use this mod for more then for uploader ranks. :)

Never mind this reply, found the problem.., edited the wrong MySql DB   :angry:
Uploader Rank — 2010-12-11 20:02:50 in v2 Only Mods Complete
"cooly, post: 68520":
if you are using the class_user function then.


	print("<tr><td align=left><b>" . ADDED_BY . ":</b></td><td><a href=account-details.php?id=" . $row["owner"] . ">" . $row["username"] . "</a></td></tr>");
would become




	print("<tr><td align=left><b>" . ADDED_BY . ":</b></td><td><a href=account-details.php?id=" . $row["owner"] . ">" . class_user($row["username"]) . "</a></td></tr>");





Cooly, Thank you very much, it works like a charm :huh:


Now I have something to work with, because right now only the members with uploader rank is visible ( i mean the uploaders rank pic after the uploaders name),



Anyway...,!



You are the best, also thanks for the fast reply, and of course for sharing the MOD.
Uploader Rank — 2010-12-11 18:52:50 in v2 Only Mods Complete
"cooly, post: 68513":
try this not tested..


function class_user($name)

{

global $site_config;

$a ="SELECT u.class, u.donated, u.warned, u.rangclass, r.name, r.rangpic FROM `users` `u` INNER JOIN `rangclass` `r` ON u.rangclass=r.id WHERE username ='".$name."'";

$res = mysql_query($a);

$classy = @mysql_fetch_row($res);

switch ($classy[0]) {

case 8: // SYS:

$col = "#15CFCD";

break;

case 7: // ADMINISTRATORSYS:

$col = "#ff0000";

break;

case 6: // Administrator

$col = "teal";

break;

case 5: // Super Moderator

$col = "#3300CC";

break;

case 4: // Moderator

$col = "#006600";

break;

case 3: // VIP

$col = "#FFFF00";

break;

case 2: // Uploader

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config[SITEURL]."/images/star.gif' alt='donated' border='0'>";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config[SITEURL]."/images/warn.gif' alt='warned' border='0'>";

}else{

$warn="";

}

if($classy[3]>0){

$rang="<img src='".$site_config[SITEURL]."/images/".$classy[5]."' alt='".$classy[4]."' border='0'>";

}else{

$rang="";

}

return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$rang."</font>");

 

}



I tried several options within torrent-details, but unfortunately nothing happens, but I must say that I'm a real NOOB, and to scared to screw up the script.


I don't get the uploaders rank behind the name
:huh:


maybe somebody can point me to the right directions, where I put what to get uploaders rank right after the uploaders name in torrent-details.



Thanks,
Uploader Rank — 2010-12-10 23:34:09 in v2 Only Mods Complete
"Lakicevic Boris, post: 68495":
ok fine i wil do tomorow ,now i am  :huh:

LOOOOOLLLLL   :)

looking forward to it.
Uploader Rank — 2010-12-10 23:32:50 in v2 Only Mods Complete
"SJC2TK, post: 68493":
if you can implement it in cooly's mod , it will literally show everywhere the users name shows m8
and ncounter , try coding it in with the member of the month mod , changing to uploader of the month , insted af winning seed bonus winning medals;)


Thanks for pointing me to the right direction, Colly's mod seems to be worth it to give it a try  :huh:
Uploader Rank — 2010-12-10 23:09:47 in v2 Only Mods Complete
"Lakicevic Boris, post: 68481":
it wil schow everywhere loool


It shows only in account details

and I want to let it show behind the username in torrent-details.php

and not only to click first on the username to get account details to see the medal.

like this in torrent details.

ADDED BY:   username  rank:
Uploader Rank — 2010-12-10 20:04:16 in v2 Only Mods Complete
Lakicevic Boris,

Did you mean my post ?

BTW, any ideas how I can show the uploader rank in Torrent-details? (after" Added By: Username)
Uploader Rank — 2010-12-10 15:24:30 in v2 Only Mods Complete
Thanks Lakicevic Boris,

It works perfect now  :huh:

Couldn't find it first, nothing showed up in user account, forgot that I suppose to look at the user details.. :)

Anyway, thanks for this MOD, nice job.

BTW, any ideas how I can show the uploader rank in Torrent-details? (after" Added By: Username)

That would be great.

Thanks!!
Uploader Rank — 2010-12-09 18:01:17 in v2 Only Mods Complete
Hello,

is there any progress in this MOD ?

Nothing shows up , no rank nothing.., tried for my knowledge (and that's not much   :huh:   ) everything!

hopefully somebody can finish this Mod.

Thanks,
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