<_<..another customization
before it looks like this:
then it looks like this:
Open your whoisonline.php
Delete the old Vocs Online data
Then after "//server status - someone is online" and the skull script add:
Download this RAR and unzip it in htdocs/images
PASS: otland.net
View attachment images.rar
Pics are in spanish icof you don't understand them.
Constructive critics are welcomed.
If you are too formal reserve your comments.
before it looks like this:
then it looks like this:
Open your whoisonline.php
Delete the old Vocs Online data
Then after "//server status - someone is online" and the skull script add:
PHP:
//Vocs w/Pics Online by Cybermaster
$connect = new mysqli ("".$config['server']['mysqlHost']."","".$config['server']['sqlUser']."","".$config['server']['sqlPass']."","".$config['server']['sqlDatabase']."");
$sor = $connect->query("SELECT COUNT(*) FROM `players` WHERE `vocation` = 1 AND `online` = 1");
$sork = $sor->fetch_array();
$sor1 = $connect->query("SELECT COUNT(*) FROM `players` WHERE `vocation` = 2 AND `online` = 1");
$sork1 = $sor1->fetch_array();
$sor2 = $connect->query("SELECT COUNT(*) FROM `players` WHERE `vocation` = 3 AND `online` = 1");
$sork2 = $sor2->fetch_array();
$sor3 = $connect->query("SELECT COUNT(*) FROM `players` WHERE `vocation` = 4 AND `online` = 1");
$sork3 = $sor3->fetch_array();
$sor->close();
$sor1->close();
$sor2->close();
$sor3->close();
$main_content .= '<table width="200" cellspacing="1" cellpadding="0" border="0" align="center">
<tbody>
<tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td><img src="http://otland.net/images/sorc.png" /></td>
<td><img src="http://otland.net/images/druid.png" /></td>
<td><img src="http://otland.net/images/paly.png" /></td>
<td><img src="http://otland.net/images/kina.png" /></td>
</tr>
<tr>
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td style="text-align: center;"><strong>Sorcerers<br /></strong></td>
<td style="text-align: center;"><strong>Druids</strong></td>
<td style="text-align: center;"><strong>Paladins</strong></td>
<td style="text-align: center;"><strong>Knights</strong></td>
</tr>
<tr>
<TR BGCOLOR="'.$config['site']['lightborder'].'">
<td style="text-align: center;">'.$sork[0].'</td>
<td style="text-align: center;">'.$sork1[0].'</td>
<td style="text-align: center;">'.$sork2[0].'</td>
<td style="text-align: center;">'.$sork3[0].'</td>
</tr>
</tbody>
</table>
<div style="text-align: center;"> </div>';
PASS: otland.net
View attachment images.rar
Pics are in spanish icof you don't understand them.
Constructive critics are welcomed.
If you are too formal reserve your comments.