• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Support List aint showing the "Group" - Thread can be closed

flaxe

the one and only
Joined
Jun 12, 2009
Messages
336
Reaction score
2
Location
Sweden
Hello. When i'm pressing "Support List", where all the Admins are showed, it doesn't shows what Group the admin is - below is picture. How to fix these? Thanks! (I'm using newest gesior aac)
-support%20list.JPG
 
Last edited:
omg.. ur noob?
hidding web and ur server name but
u forget in the web
SAROX OT!
:P noob¨



BTW
u want to set the red skull image?
go into xampp>>htdocs>>item_images>>set there the image with name 1.jpg


REP??
 
Haha ye I did :D but actually it doesnt matters because i'm not hosting the server :P
but it dont work... its still the broken white paper logo (not existing logo)... so no rep =D

any1 know how to fix the red skull picture and the group name at support list? ty! rep+ for helper
 
Ye I saw that in another post :P So the red skull picture is fixed already, but thanks for saying it anyways! Now I just need to fix the support list!
 
PHP:
<?php
$list = $SQL->query('SELECT name,online,group_id,world_id FROM players WHERE players.group_id > 1 ORDER BY group_id DESC');
$showed_players = 0;
$groups = simplexml_load_file($config['site']['server_path'].'/data/XML/groups.xml') or die('<b>Could not load groups!</b>'); 
        foreach($groups->group as $g) 
            $groupList[(int)$g['id']] = $g['name']; 

$main_content .= '<center><h2>Support in game</h2></center>';
$main_content .= "<table border=0 cellspacing=1 cellpadding=4 width=100%>
	<tr bgcolor=\"".$config['site']['vdarkborder']."\">
	<td width=\"20%\"><font class=white><b>Group</b></font></td>
	<td width=\"45%\"><font class=white><b>Name</b></font></td>
	<td width=\"15%\"><font class=white><b>Status</b></font></td>
	<td width=\"20%\"><font class=white><b>World</b></font></td>";
foreach($list as $gm) {
	if($gm['online'] == 0)
		$player_list_status = '<font color="red">Offline</font>';
	else
		$player_list_status = '<font color="green">Online</font>';
		if(is_int($showed_players / 2))
			$bgcolor = $config['site']['darkborder'];
		else
			$bgcolor = $config['site']['lightborder'];
$showed_players++;
$main_content .= '<tr bgcolor="'.$bgcolor.'"><td>' . $groupList[(int)$gm['group_id']] . '</td><td>'.$gm['name'].'</td><td>'.$player_list_status.'</td><td>'.$config['site']['worlds'][$gm['world_id']].'</td></tr>';
}

$main_content .= "</table>";
?>

Open your team.php file in your HTDOCS folder, and put that in

REP++ please? :)
 
Still not working, it was exactly the same script as I had before ^^ :P can it have something to do with groups.xml? below is the code in groups.xml:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<otadmin enabled="0">
	<security onlylocalhost="1" maxconnections="2" loginrequired="1" loginpassword="test"/>
	<encryption required="0">
		<!-- key type="RSA1024XTEA" file="rsakey.private"/ -->
	</encryption>
</otadmin>

Thanks for reply tho =)
 
Last edited:
yup, it got something to do replace that with ur groups.xml :-

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<groups>
	<group id="1" name="Player"/>
	<group id="2" name="Tutor" flags="16809984" customFlags="3" access="1"/>
	<group id="3" name="Senior Tutor" flags="68736352256" customFlags="15" access="2" violationAccess="1" maxVips="200"/>
	<group id="4" name="Gamemaster" flags="3808558964575" customFlags="257215" access="3" violationAccess="3" depotLimit="3000" maxVips="300" outfit="75"/>
	<group id="5" name="Community Manager" flags="3840774348794" customFlags="781823" access="4" violationAccess="4" depotLimit="4000" maxVips="400" outfit="266"/>
	<group id="6" name="God" flags="3845069447162" customFlags="2097151" access="5" violationAccess="4" depotLimit="5000" maxVips="500" outfit="302"/>
</groups>

Rep++ please
 
Back
Top