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
Retrieve User Classes
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2020-03-23 22:18:15
How does one retrieve user class like this? I've tried 3 global variations and this as incorrect but close as I can get.

I can dig into functions and force it over but can I just use something like this?

EDIT: this is what works, sorry

account-details.php
   <?
   // User classes - revised - March 23, 2020
   if ($user["class"] == 7) {
      echo '<div style="border-radius:5px;background:#c0c0c0;padding:5px;text-align:center;color:#FFF;width:200px;padding-bottom:10px">Administrator</div>';
   } elseif ($user["class"] == 4) {
       echo '<div style="border-radius:5px;background:#c0c0c0;padding:5px;text-align:center;color:#FFF;width:200px;padding-bottom:10px">Uploader</div>';
   } elseif ($user["class"] == 1) {
       echo '<div style="text-align:center;padding-bottom:10px">Member</div>';
   }
   ?>
2020-03-24 00:10:03
yes !
2020-03-24 03:17:12
Worked well for what I needed it for!

[ATTACH type="full"]5404[/ATTACH]
User_Levels.png
User_Levels.png
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