Back Reply to topic
Dawormie 
(started thread)
Blue-Ribbon Chicken 
Topics: 2
Posts: 8
Playing:  Age of Conan
Ingame:  Daworm
Years registered: * * * * * * * * * * * * * * * * *
Guildstatushtml Posted: Post 03:19 Sun - Jul 27, 2008

I'd like to see this expanded slightly... perhaps it'll need to be run from the sql setup (assuming the sql plugin does "live" updates of status as well).

I'd like to see it do up a output based on class and names of those online at the time.

I can easily tweak it so I can have it show name / class / level in it's own <td> field, but nfi on how to have it automatically create a list based on class ordering automatically. I probably won't bother in the long run. But it's an idea.


I'd also like to see a "last online" output... so you can track from a webpage when someone was last online (and have it output if that char is flagged as a "alt" or not).

It'd be handy for guild management that's for sure.
Reply with quote


Dawormie 
(started thread)
Blue-Ribbon Chicken 
Topics: 2
Posts: 8
Playing:  Age of Conan
Ingame:  Daworm
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 10:14 Sat - Aug 02, 2008

I've been poking at this and editing what I think is the right file that generates the HTML output...

But the HTML output stays the same...

I even restarted the bot to be sure.
Can you advise which file I have to edit to alter the HTML output? I'm wanting to change what is created to something more easily sortable and add some nice styling to it all.
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 08:30 Sun - Aug 03, 2008

plugins/buddy/guildstatushtml/index.php
lines17-45 write the html-code

try replacing lines 23 and 24 with this code to get a grouped&sorted html
Code:

   $BuddyClasses=array();
   foreach($BuddyList as $buddy)
      $BuddyClasses[]=$buddy["class"];
   $BuddySorted =$BuddyList;
   array_multisort($BuddyClasses,SORT_ASC,$BuddySorted);
   $BuddyClasses="";
   foreach ($BuddySorted as $buddy) {
      if ( $guildmates[$buddy["name"]] && $buddy["status"]>0 ) {
         if ($BuddyClasses!=$buddy["class"]) {
            fwrite($f1,"<tr>".
               "<td colspan='2' class='gensmall'>".
               "<img src='".$buddy["class"].".gif' width='37px' height='38px'>".
               classname($buddy["class"])."</td>"
               );
         }

code is untested zwinkern
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Back Reply to topic