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]Amount Of users in a Class
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-08-22 11:51:43
best description is showing



open advancestats_block.php

find

$totalonline = $members + $guests;
below it add


$admins = number_format(get_row_count("users", "WHERE class=8"));

$leaders = number_format(get_row_count("users", "WHERE class=7"));

$super = number_format(get_row_count("users", "WHERE class=6"));

$mod = number_format(get_row_count("users", "WHERE class=5"));

$up = number_format(get_row_count("users", "WHERE class=4"));

$vip = number_format(get_row_count("users", "WHERE class=3"));

$pwr = number_format(get_row_count("users", "WHERE class=2"));

$user = number_format(get_row_count("users", "WHERE class=1"));





then find



echo "<br><small>Messages Sent:<B> " . $nmessages . "</b></small>";





an add below it



echo "<p><B>Members</b>";

echo "<br><small><font style=letter-spacing:normal;font-style:normal;color:#66ff66;filter:Glow(color=FF00FF,strength=4);height:14px;>Admins: <b>" . $admins . "</b></small></font>";

echo "<br><small><font color=aqua>Staff leaders: <b>" . $leaders . "</b></small>";

echo "<br><small><font color=orange>Super Moderators: <b>" . $super . "</b></small>";

echo "<br><small><font color=brown>Moderators: <b>" . $mod . "</b></small>";

echo "<br><small><font color=red>Uploaders: <b>" . $up . "</b></small>";

echo "<br><small><font color=green>VIP: <b>" . $vip . "</b></small>";

echo "<br><small><font color=purple>Power User: <b>" . $pwr . "</b></small>";

echo "<br><small><font color=white>User: <b>" . $user . "</b></small>";





and thats it!

if you only have default classes then you can remove



echo "<br><small><font style=letter-spacing:normal;font-style:normal;color:#66ff66;filter:Glow(color=FF00FF,strength=4);height:14px;>Admins: <b>" . $admins . "</b></small></font>";


as i ahve an extra class!

enjoy!!!!!

plz also note this was on my private beta site and therefore stats do not reflect our true site!
Unknown User
2008-08-22 12:46:18
Thank you

I have 2 questions to ask:

1 - I see that you put "class = 8" I suppose it's for the v2.04 because I want my v2.03 stops "class = 7", otherwise how can I get "class = 8" ?

I added an extra row in the admin panel, but while editing a member I do not see this rank and therefore can not give it   :blink:  .

2 - I see that you have placed bans a mode that I want to put, can you give me information on your mode bans?

Thank you in advance for your help.
Unknown User
2008-08-22 14:15:39
it is for 2.04 however its something i added myself  :blink:

i added a extra class 8 which i use for the site owners sort of thing

to make a class 8 you must add it via phpmyadmin and then to add people to the class you must do it via phpmyadmiun for security

if you dont have a class 8 you can jsut remove the bits that envolve class 8

the bans and languages i used a script from foz

[url="http://www.torrenttrader.org/index.php?showtopic=9261"]http://www.torrenttrader.org/index.php?showtopic=9261[/url]

hope that helps! any more help dont hesertate in replying :blink:
Unknown User
2008-08-22 14:24:40
"Tengo, post: 45780":
it is for 2.04 however its something i added myself  :blink: i added a extra class 8 which i use for the site owners sort of thing

to make a class 8 you must add it via phpmyadmin and then to add people to the class you must do it via phpmyadmiun for security

if you dont have a class 8 you can jsut remove the bits that envolve class 8

the bans and languages i used a script from foz

[url="http://www.torrenttrader.org/index.php?showtopic=9261"]http://www.torrenttrader.org/index.php?showtopic=9261[/url]

hope that helps! any more help dont hesertate in replying  :blink:

I thank you for your answer   :blink:   I will try to create an additional mode rang asking local council  :blink:
Unknown User
2008-08-22 14:28:52
if you need help i am on your site altough dont understand a word on it lol
Unknown User
2008-08-22 14:45:03
"Tengo, post: 45782":
if you need help i am on your site altough dont understand a word on it lol

Thank you is cool   :blink:   my site is french that is why you will not understand, is like me in English I use a translator if I did not understand everything lol   :blink: .
Unknown User
2008-08-22 15:06:23
i do no some french studyied it for 2 years just paid lil attention lol
Unknown User
2008-08-22 23:23:02
A small passage tengo tell you that I have managed to create my ranks additional   :blink:    thank you again for your information, it only remains for me to find a way of bans correct   :blink:  .
Unknown User
2008-08-23 10:04:23
glad you liked it :blink:
Unknown User
2009-02-12 16:55:13
work! TT 2.05
Unknown User
2009-02-15 15:25:00
Thanks, good work.
Unknown User
2009-02-15 17:20:45
My code:

$res = mysql_query("SELECT COUNT(users.class) as count, level FROM groups INNER JOIN users ON groups.group_id=users.class GROUP BY groups.group_id ORDER BY group_id ASC");

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

echo "$row[level] has $row[count] members.";

}


if you want it to show groups with 0 members change INNER to LEFT
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