collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: History module borked?  (Read 3688 times)

0 Members and 1 Guest are viewing this topic.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
History module borked?
« on: September 13, 2006, 05:14:46 pm »
Hi all,

I guess the history module has died due to the recent Auno revamp?  Anyone aware of a patch to get it working?

Cheers,

-jj-

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: History module borked?
« Reply #1 on: September 13, 2006, 07:36:26 pm »
Looks like he changed all this CSS stuff. I hacked this up quickly, at work so not sure if it's parsing correctly, org mates say it is

Change this part:

Code: [Select]
                                $result = preg_grep('#^<td>200#', explode("\n", $result));
                                $ymera .= "<font color='CCInfoHeadline'>History for ".$name."<br>";
                                foreach ($result as $line)
                                {
                                        $result = str_replace("</td>","",$line);
                                        $result = str_replace("</tr>","<td>",$result);
                                        $result = split("<td>",$result);


To this:

Code: [Select]
                                $result = preg_grep('#^<td class=\"field_left\"#', explode("\n", $result));
                                $ymera .= "<font color='CCInfoHeadline'>History for ".$name."<br>";
                                foreach ($result as $line)
                                {
                                        $result = str_replace("</td>","",$line);
                                        $result = str_replace("</tr>","<td>",$result);                                         $result = str_replace(" class=\"field_left\"","",$result);
                                        $result = str_replace(" class=\"field_right\"","",$result);
                                        $result = split("<td>",$result);
Eternalist
General of The Syndicate

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: History module borked?
« Reply #2 on: September 14, 2006, 02:38:17 am »
I could have sworn Auno's character lookup used XML O.o

I'l have a look once i get everything back into working order on my dev box.

Edit:
Just checked, Auno does have XML feeds for this stuff, so why on earth we are wasting time parsing HTML is beyond me.
Foxferal wrote the version in use right now, im not too happy with the layout of the module however. His version was based on IGN, which makes me suspect that IGN's history module did HTML parsing instead of using Auno's XML version.
« Last Edit: September 14, 2006, 02:44:54 am by Khalem »
BeBot Founder and Fixer Kingpin

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: History module borked?
« Reply #3 on: September 14, 2006, 02:33:25 pm »
Where are the xml feeds accessed for history on characters?
Eternalist
General of The Syndicate

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: History module borked?
« Reply #4 on: September 14, 2006, 03:47:38 pm »
http://auno.org/ao/char.php?output=xml&dimension=1&name=Khalem

Notice the output=xml arg.

Unfortunately, guild info does not have XML output :( Else we would have a 100% fallback if Funcom XML is unavailible.

I already plan to add a whois fallback to BeBot since the odds of Funcom AND Auno being down at the same time is slim, and Funcom is unavailible more often than not :\
BeBot Founder and Fixer Kingpin

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: History module borked?
« Reply #5 on: September 14, 2006, 07:00:56 pm »
Unfortunately, guild info does not have XML output :( Else we would have a 100% fallback if Funcom XML is unavailible.

Possibly because Auno's site only knows about characters that are in an org or have been in an org in the past. If we asked nicely Auno might be able to update it. Or we could offer to update his PHP for him. The needed information is there, it just needs an xml output option.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: History module borked?
« Reply #6 on: September 14, 2006, 08:24:10 pm »
Aye.

However, small point. Auno does not know about unguilded characters without them having been manually added.
It does however know about all guilds afaik, which means it would serve as a fullworthy XML replacement for guild info.
In addition any character that has ever been in a guild for long enough to make it into the guilds XML is also tracked as a character.
So for all intents and purposes, Auno's records are as complete as we could wish for tbh.
BeBot Founder and Fixer Kingpin

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: History module borked?
« Reply #7 on: September 18, 2006, 07:30:28 pm »
Updated the history module to use the xml feed instead of html one.

It's pretty basic, no coloring atm, but it does offer all information.

File, save as .php

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 161
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal