DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • June 25, 2017, 05:19:06 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Hook request (lib/pageparts.php)  (Read 2966 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« on: March 28, 2005, 02:42:26 AM »

Could there be a hook at about line 612?

I'd like to change the layout of the "online characters list".

I'm thinking of a change like this:
Code:
$list = modulehook("onlinecharlist", array("list" => "", "handled" => false, "onlinecount" => 0));
if ($list['handled'] == true) {
$ret .= $list['list'];
$onlinecount = $info['onlinecount'];
} else {
$ret.=appoencode(sprintf(translate_inline("`bOnline Characters (%s players):`b`n"),$count));
for ($i=0;$i<$count;$i++){
$row = db_fetch_assoc($result);
$ret.=appoencode("`^{$row['name']}`n");
$onlinecount++;
}
db_free_result($result);
}
Logged

Running for more than three years now:
Kendaer
Guest
« Reply #1 on: March 28, 2005, 07:46:16 AM »

I don't see any immediate problem with it.  Why do you want to change the output of the onlinechar list?

Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #2 on: March 28, 2005, 08:13:12 AM »

I want to show moderators and admins who are online in a seperate list on top of the other player, ordered by superuser status...

Logged

Running for more than three years now:
Kendaer
Guest
« Reply #3 on: March 28, 2005, 02:17:26 PM »

Ok.. Fair enough.

This should be in the code in the next release.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
41 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search