L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 02:44:28 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: History module borked?
Pages: [1]   Go Down
« previous next »
Print
Author Topic: History module borked?  (Read 788 times)
0 Members and 1 Guest are viewing this topic.
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


History module borked?
« on: September 13, 2006, 10:14:46 AM »

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-
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: History module borked?
« Reply #1 on: September 13, 2006, 12: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:
                                $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:
                                $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);
Logged

Eternalist
General of The Syndicate
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: History module borked?
« Reply #2 on: September 13, 2006, 07:38:17 PM »

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 13, 2006, 07:44:54 PM by Khalem » Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: History module borked?
« Reply #3 on: September 14, 2006, 07:33:25 AM »

Where are the xml feeds accessed for history on characters?
Logged

Eternalist
General of The Syndicate
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: History module borked?
« Reply #4 on: September 14, 2006, 08:47:38 AM »

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 Sad 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 :\
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: History module borked?
« Reply #5 on: September 14, 2006, 12:00:56 PM »

Quote from: Khalem on September 14, 2006, 08:47:38 AM
Unfortunately, guild info does not have XML output Sad 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.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: History module borked?
« Reply #6 on: September 14, 2006, 01: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.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1088


Re: History module borked?
« Reply #7 on: September 18, 2006, 12: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
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: History module borked?
« previous next »
 
Jump to:  

Recent
Bot not working after tod...
by Alreadythere
[Today at 01:04:41 PM]

Tokens Calulator
by Temar
[December 03, 2008, 01:09:03 PM]

Bebot does not work with ...
by IKShadow
[December 03, 2008, 08:54:04 AM]

!items database
by Temar
[December 03, 2008, 07:27:59 AM]

massive_pvp_time_table 1
by Sudoka
[December 03, 2008, 06:49:07 AM]

Log playtime from buddys ...
by IKShadow
[December 02, 2008, 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]
Stats
Members
Total Members: 1246
Latest: Vingus
Stats
Total Posts: 11190
Total Topics: 1507
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 6
Guests: 16
Total: 22
scape
Organizer
vikor
Snarfblatt
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.761 seconds with 28 queries. (Pretty URLs adds 0.028s, 4q)
Loading...