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
Uploader Rank
Controls ·  Search New posts · Mark unread

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

Unknown User
2010-12-10 22:19:44
Edit: a extra note for all noob like me.

those who have created a directory for example : www.xyz.com/folder_name

will need to  this line in account detail php

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



replace with :

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

otherwise you will not get the image.  :huh:   thanks for the mod

can sombody implement like this in every month there will be a competition among all the uploader every month. and after the month automatically the best uploader will get he gold rank and consecutively silver and bronze
Unknown User
2010-12-10 23:09:47
"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:
Unknown User
2010-12-10 23:12:07
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;)
Unknown User
2010-12-10 23:23:51
ok fine i wil do tomorow ,now i am :huh:
Unknown User
2010-12-10 23:32:50
"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:
Unknown User
2010-12-10 23:34:09
"Lakicevic Boris, post: 68495":
ok fine i wil do tomorow ,now i am  :huh:

LOOOOOLLLLL   :)

looking forward to it.
Unknown User
2010-12-10 23:38:53
"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;)

i am a noob i can only implement the mod and edit. unable to make any code  :)  i wish if i could

i am a marketer so i can only help u giving idea . and can help someone by giving any update if i can :huh:
Unknown User
2010-12-10 23:49:57
i use it for rank , donor  , vip , staff shout , and others , so should be able to implement it bud .....and as i said , it will show everywhere
Unknown User
2010-12-11 13:34:45
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>");

 

}
Unknown User
2010-12-11 18:52:50
"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,
Unknown User
2010-12-11 19:25:09
"BigW, post: 68518":
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,


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>");
Unknown User
2010-12-11 20:02:50
"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.
Unknown User
2010-12-11 20:29:22
"sonicvip, post: 65883":
i tried that ,, was my first instinct and still will not show im sure it jumbles the order of results on page moves other info about slightly but im sure its just this point and we all gd to go  :)  cheers for all help and this mod so far  :huh:

it jumbles the order of results on page moves other info about slightly

i have this problem too
Unknown User
2010-12-11 21:00:48
i have a problem with it. as a admin i can add a rank for users or uploaders and only i can see it in user detail. But users cant see it. as a admin i can see the rank only in account detail but it shout also appear in every where with users log in block

Quote:
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

CODE

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>");

where(in which php) i will edit it? and for which result? sorry i am not clear about it. can someone............?
Unknown User
2010-12-11 21:37:23
"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:
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