2006-04-29, 09:03 AM
Hello there, use this version it is easier.
open ./index.php
find
above it add
now in the Admin CP >Templates > Modify / delete > expand > index page templates > index_whosonline
find
below it add
regards
open ./index.php
find
eval("\$whosonline = \"".$templates->get("index_whosonline")."\";");
above it add
$query = $db->query("SELECT title, namestyle FROM ".TABLE_PREFIX."usergroups");
$usertitles = "";
while($usertitle = $db->fetch_array($query)) {
$usertitles .= "[".str_replace("{username}", $usertitle['title'] , $usertitle['namestyle'])."] ";
}
now in the Admin CP >Templates > Modify / delete > expand > index page templates > index_whosonline
find
<tr>
<td class="trow1"><span class="smalltext">$lang->online_note<br />$onlinemembers</span></td>
</tr>
below it add
<tr> <td class="tcat">Group Legend</td></tr>
<tr> <td class="trow1">$usertitles</td></tr>
regards