• 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!

Modern Acc VIP Players on Who is online!!!!

valivan601

New Member
Joined
Apr 13, 2011
Messages
365
Reaction score
1
anyone has this script for me i really need it!

or anyone could do it for me??

here is my Who is online script
Code:
<?php
global $config; 
echo'<div class="message"><div class="title">Who is Online</div><div class="content"><center>
        <table align="center" width="80% border="0" cellpadding="4" cellspacing="0" >
        <tr align="center" >';
	echo'</tr></table></center></div></div>';

require("system/application/config/create_character.php");
$GLOBALS['players'] = $players;



echo '<br /><div align="center">';
@$_world = (int)$_REQUEST['world'];
if(!@$config['servers'][$_world]['vapusid'])
    echo @"Please edit your config.php:<br /><span style=\"font-size: 8px\">\$config['servers'][{$_world}]['vapusid'] = ID; // Replace ID with the server id from **********<br />
	To get the ID just register and click on the server the last number in the URL is your ID (/otlist.serv/10 means ID = 10)
    </span>";
else
    echo @'<a href="http://**********/otlist.serv/'.$config['servers'][$_world]['vapusid'].'"><img src="http://**********/otlist.graph/'.$config['servers'][$_world]['vapusid'].'/'.$config['VAPusGraphStep'].'" alt="http://********** Server Graph" /></a>';

echo "</div><br />"; 

$ide = new IDE;
	try { $ide->loadInjections("players_online"); } catch(Exception $e) { error($e->getMessage()); }
echo form_open("character/online", array('method'=>'POST'));
if(count($config['worlds']) > 1) {
	echo "<b>World </b> &nbsp; <select name='world'>";
	echo "<option value=''>All</optino>";
	foreach($config['worlds'] as $key=>$value) {
		echo "<option ".set_select('world', $key)." value='$key'>$value</option>";
	}
	echo "</select>&nbsp; &nbsp;";
	
}
echo "<b>Sort by </b> &nbsp; <select name='sort'>";
echo "<option  value=''>None</option>";
echo "<option ".set_select('sort', 'level')." value='level'>Level</option>";
echo "<option ".set_select('sort', 'Vocation')." value='Vocation'>Profession</option>";
echo "<option ".set_select('sort', 'name')." value='name'>Name</option>";
echo "</select>";
echo "&nbsp; <input type='submit' value='Order'>";
echo "</form>";

echo "</form>";
if(count($players) > 0) {
	echo "<table width='100%'>";
	echo "<tr><td><center><b>Name</b></center></td><td><center><b>Level</b></center></td><td><center><b>Vocation</b></center></td><td><center><b>World</b></center></td></tr>";
	foreach($players as $row) {
		if(in_array(strtolower($row['name']), $config['restricted_names'])) continue;
		echo "<tr><td><center><a href=\"../character/view/".$row['name']."\">".$row['name']."</a></center></td><td><center>".$row['level']."</center></td><td><center>".getVocationName($row['vocation'], $row['promotion'])."</center></td><td><center>".$config['worlds'][$row['world_id']]."</center></td></tr>";
	}
	echo "</table>";
}
else
	alert("There is no players online.");
?>
 
Code:
<?php
global $config; 
echo'<div class="message"><div class="title">Who is Online</div><div class="content"><center>
        <table align="center" width="80% border="0" cellpadding="4" cellspacing="0" >
        <tr align="center" >';
	echo'</tr></table></center></div></div>';

require("system/application/config/create_character.php");
$GLOBALS['players'] = $players;



echo '<br /><div align="center">';
@$_world = (int)$_REQUEST['world'];
if(!@$config['servers'][$_world]['vapusid'])
    echo @"Please edit your config.php:<br /><span style=\"font-size: 8px\">\$config['servers'][{$_world}]['vapusid'] = ID; // Replace ID with the server id from **********<br />
	To get the ID just register and click on the server the last number in the URL is your ID (/otlist.serv/10 means ID = 10)
    </span>";
else
    echo @'<a href="http://**********/otlist.serv/'.$config['servers'][$_world]['vapusid'].'"><img src="http://**********/otlist.graph/'.$config['servers'][$_world]['vapusid'].'/'.$config['VAPusGraphStep'].'" alt="http://********** Server Graph" /></a>';

echo "</div><br />"; 

$ide = new IDE;
	try { $ide->loadInjections("players_online"); } catch(Exception $e) { error($e->getMessage()); }
echo form_open("character/online", array('method'=>'POST'));
if(count($config['worlds']) > 1) {
	echo "<b>World </b> &nbsp; <select name='world'>";
	echo "<option value=''>All</optino>";
	foreach($config['worlds'] as $key=>$value) {
		echo "<option ".set_select('world', $key)." value='$key'>$value</option>";
	}
	echo "</select>&nbsp; &nbsp;";
	
}
echo "<b>Sort by </b> &nbsp; <select name='sort'>";
echo "<option  value=''>None</option>";
echo "<option ".set_select('sort', 'level')." value='level'>Level</option>";
echo "<option ".set_select('sort', 'Vocation')." value='Vocation'>Profession</option>";
echo "<option ".set_select('sort', 'name')." value='name'>Name</option>";
echo "<option ".set_select('sort', 'vip')." value='vip'>vip</option>";
echo "</select>";
echo "&nbsp; <input type='submit' value='Order'>";
echo "</form>";

echo "</form>";
if(count($players) > 0) {
	echo "<table width='100%'>";
	echo "<tr><td><center><b>Name</b></center></td><td><center><b>Level</b>
	</center></td><td><center><b>
	Vocation</b></center></td><td><center><b>
	Vip</b></center></td><td><center><b>
	World</b></center></td></tr>";
	foreach($players as $row) {
		if(in_array(strtolower($row['name']), $config['restricted_names'])) continue;
		echo "<tr><td><center><a href=\"../character/view/".$row['name']."\">".$row['name'].
		"</a></center></td><td><center>".$row['level'].
		"</center></td><td><center>".getVocationName($row['vocation'], $row['promotion']).
		"</center></td><td><center>".getvipstatus($row['vip'], $row['vip']).
		"</center></td><td><center>".$config['worlds'][$row['world_id']]."</center></td></tr>";
	}
	echo "</table>";
}
else
	alert("There is no players online.");
?>


I just tried.. no experience of this, and i guess i need your vip table or smth but try this and tell me the errors. :)
 
i got this error

Fatal error: Call to undefined function getvipstatus() in C:\UniServer\www\system\application\views\online_players.php on line 59

my vip table is vip_time

if its hard to do maybe a new page of VIP players can more easier

thx
 
Code:
<?php
global $config; 
echo'<div class="message"><div class="title">Who is Online</div><div class="content"><center>
        <table align="center" width="80% border="0" cellpadding="4" cellspacing="0" >
        <tr align="center" >';
	echo'</tr></table></center></div></div>';

require("system/application/config/create_character.php");
$GLOBALS['players'] = $players;



echo '<br /><div align="center">';
@$_world = (int)$_REQUEST['world'];
if(!@$config['servers'][$_world]['vapusid'])
    echo @"Please edit your config.php:<br /><span style=\"font-size: 8px\">\$config['servers'][{$_world}]['vapusid'] = ID; // Replace ID with the server id from **********<br />
	To get the ID just register and click on the server the last number in the URL is your ID (/otlist.serv/10 means ID = 10)
    </span>";
else
    echo @'<a href="http://**********/otlist.serv/'.$config['servers'][$_world]['vapusid'].'"><img src="http://**********/otlist.graph/'.$config['servers'][$_world]['vapusid'].'/'.$config['VAPusGraphStep'].'" alt="http://********** Server Graph" /></a>';

echo "</div><br />"; 

$ide = new IDE;
	try { $ide->loadInjections("players_online"); } catch(Exception $e) { error($e->getMessage()); }
echo form_open("character/online", array('method'=>'POST'));
if(count($config['worlds']) > 1) {
	echo "<b>World </b> &nbsp; <select name='world'>";
	echo "<option value=''>All</optino>";
	foreach($config['worlds'] as $key=>$value) {
		echo "<option ".set_select('world', $key)." value='$key'>$value</option>";
	}
	echo "</select>&nbsp; &nbsp;";
	
}
echo "<b>Sort by </b> &nbsp; <select name='sort'>";
echo "<option  value=''>None</option>";
echo "<option ".set_select('sort', 'level')." value='level'>Level</option>";
echo "<option ".set_select('sort', 'Vocation')." value='Vocation'>Profession</option>";
echo "<option ".set_select('sort', 'name')." value='name'>Name</option>";
echo "<option ".set_select('sort', 'vip')." value='vip'>vip</option>";
echo "</select>";
echo "&nbsp; <input type='submit' value='Order'>";
echo "</form>";

echo "</form>";
if(count($players) > 0) {
	echo "<table width='100%'>";
	echo "<tr><td><center><b>Name</b></center></td><td><center><b>Level</b>
	</center></td><td><center><b>
	Vocation</b></center></td><td><center><b>
	Vip</b></center></td><td><center><b>
	World</b></center></td></tr>";
	foreach($players as $row) {
		if(in_array(strtolower($row['name']), $config['restricted_names'])) continue;
		echo "<tr><td><center><a href=\"../character/view/".$row['name']."\">".$row['name'].
		"</a></center></td><td><center>".$row['level'].
		"</center></td><td><center>".getVocationName($row['vocation'], $row['promotion']).
		"</center></td><td><center>".getvip_time($row['vip'], $row['vip']).
		"</center></td><td><center>".$config['worlds'][$row['world_id']]."</center></td></tr>";
	}
	echo "</table>";
}
else
	alert("There is no players online.");
?>

try this then
 
Back
Top