User not showing up on /staff page

CptSwofty

New Member
Sep 13, 2018
18
0
Hey, I've just created a RevCMS PlusEMU habbo retro with IIS on a VPS with a domain. Everything is well and working but the staff page. I have raked myself in navicat under 'users' as highest rank in db, Still the staff page shows nothing. Any help appreciated.

Thanks :)
 

Joshie

WebHost Founder
May 29, 2015
143
20
Hey, I've just created a RevCMS PlusEMU habbo retro with IIS on a VPS with a domain. Everything is well and working but the staff page. I have raked myself in navicat under 'users' as highest rank in db, Still the staff page shows nothing. Any help appreciated.

Thanks :)
If the staff can't resolve your issue let me know and ill send you a new rev cms staff page which will work
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
I misread the thread completely.

Either it’s trying to grab a column in the users table that doesn’t exist or it’s set to the wrong rank. We would need the code.
 

Rystbo

-Hotel Owner, -Customs Developer, -Arcturus
Apr 16, 2018
390
200
<?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 9) { ?>

This is the line your looking for, im at work at the moment give me a few hours and ill get you what you need.
 

Rystbo

-Hotel Owner, -Customs Developer, -Arcturus
Apr 16, 2018
390
200
Give this a try, it might not work but try it, now you might have some minor issues to adjust like the new text, the roots that are in it might be different so just adjust them.

Replace----> <?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 9) { ?>

With this ---->

$GetUsers = mysql_query("SELECT id, username, motto, rank, last_online, online, look FROM users WHERE rank > 2 ORDER BY rank DESC");
while($Users = mysql_fetch_assoc($GetUsers)) {
switch ($Users['rank']) {
case '2' : $rank = "Trial Moderators"; break;
case '3' : $rank = "Moderators"; break;
case '4' : $rank = "Senior Moderators"; break;
case '5' : $rank = "Community Leaders"; break;
case '6' : $rank = "Developers"; break;
case '7' : $rank = "Administrators"; break;
case '8' : $rank = "Managers"; break;
case '9' : $rank = "Owner"; break;
case '10' : $rank = "Manager"; break;
}
if($Users['online'] == 1){
$OnlineStatus = "<span style=\"display: inline-block; background: url('{url}/app/tpl/skins/{skin}/img/online.gif') left center no-repeat; width: 40px; height: 16px;\"></span>";
} else {
$OnlineStatus = "<span style=\"display: inline-block; background: url('{url}/app/tpl/skins/{skin}/img/offline.gif') left center no-repeat; width: 40px; height: 16px;\"></span>";
}
?>
 

Users who are viewing this thread

Top