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

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

Author Topic: AoC YG player profile module  (Read 35730 times)

0 Members and 3 Guests are viewing this topic.

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: AoC YG player profile module
« Reply #45 on: February 11, 2010, 12:41:55 pm »
hmmmm realy ??? ... the yg-module works perfekt by me ... no probs and we us ist very often ... maybe just luck ^^

greez da drizz

ps: btw. @getrix how is the other module going on *gg*

Offline Tsamoonia

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
    • The Great Ones
Re: AoC YG player profile module
« Reply #46 on: October 16, 2010, 08:16:48 am »
can someone tel me when i log into yg site... where on teh home page am i supposed to go to contact whoever it is for an xml password.  i dont see anything about contacting anyone or requesting anything

Offline Tsamoonia

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
    • The Great Ones
Re: AoC YG player profile module
« Reply #47 on: October 21, 2010, 10:00:50 pm »
is anyone available to help me?  i know this is an old topic and maybe some things have changed on how this is done.   any ideas on what i should do... how do i get a hold of the YG guy for a password

Offline BoA-Gert

  • BeBot User
  • **
  • Posts: 45
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #48 on: October 22, 2010, 12:54:09 am »
Register and login on the YG site, once that's done click your name at the top right, then Age of Conan to show:

Quote
Age of Conan Settings

You can request access to our AoC database's XML System here..

That will get you the access...


And the info on their site:

Quote
If you do not have a password yet and wish to request one please create a YG Member account if you do not already have one and go to the Age of Conan tab under the My Account section and click the Request Access button.
« Last Edit: October 22, 2010, 12:56:18 am by BoA-Gert »

Offline Tsamoonia

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
    • The Great Ones
Re: AoC YG player profile module
« Reply #49 on: October 27, 2010, 01:14:19 pm »
ty very much.  i got it now :)

Offline Huesos

  • BeBot User
  • **
  • Posts: 45
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #50 on: December 11, 2010, 10:42:43 pm »
everything has been working a for over a year now til today, yg has some changes on their site..

Code: [Select]
[11-Dec-2010 22:05:13] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:05:13] PHP Warning:  simplexml_load_string(): Resource temporarily unavailable in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:05:13] PHP Warning:  simplexml_load_string(): ^ in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:09:10] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:09:10] PHP Warning:  simplexml_load_string(): Resource temporarily unavailable in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:09:10] PHP Warning:  simplexml_load_string(): ^ in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:09:32] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:09:32] PHP Warning:  simplexml_load_string(): Resource temporarily unavailable in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:09:32] PHP Warning:  simplexml_load_string(): ^ in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:12:40] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:12:40] PHP Warning:  simplexml_load_string(): Resource temporarily unavailable in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:12:40] PHP Warning:  simplexml_load_string(): ^ in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:19:58] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:19:58] PHP Warning:  simplexml_load_string(): Resource temporarily unavailable in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86
[11-Dec-2010 22:19:58] PHP Warning:  simplexml_load_string(): ^ in /srv/d_WH446-GANDI/home/BeBot/custom/modules/yg.php on line 86

I think they are having issues with their site and profile lookups directly
« Last Edit: December 11, 2010, 10:55:58 pm by Huesos »

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #51 on: February 04, 2011, 03:51:19 pm »
how can I configure the module to get the yg data in german?

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: AoC YG player profile module
« Reply #52 on: February 04, 2011, 04:50:25 pm »
on Line 84 where it says:
            $ch = curl_init ("http://aoc.yg.com/profilexml?n=$profilename&srv=$servername&pwd=$password");

Change this to
            $ch = curl_init ("http://aoc.yg.com/de/profilexml?n=$profilename&srv=$servername&pwd=$password");

And do the same on line 91

I didn't test this in the module but was able to get a German profile of myself by hitting:
http://aoc.yg.com/de/profilexml?n=Yite&srv=crom&pwd=XXXXXXXX

Quote
<level>80</level>
<server>Crom (PvE) EU</server>
<serverid>9</serverid>
<race>Stygier</race>
<class>Nekromant (Magier)</class>
<gender>Weiblich</gender>
-Yite [Crom]

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #53 on: February 04, 2011, 05:11:06 pm »
it works!
many thx

Offline maikee

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #54 on: February 05, 2011, 11:36:15 am »
Hi

german language works but it is possible to take the german special chars?

lowcase: ä, ö, ü, ß
uppercase: Ä, Ö, Ü

see the pic below
« Last Edit: February 05, 2011, 12:16:59 pm by maikee »

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #55 on: February 21, 2011, 07:14:00 am »
Hi

german language works but it is possible to take the german special chars?

lowcase: ä, ö, ü, ß
uppercase: Ä, Ö, Ü

see the pic below
Any news on this?

Kind regards

dill

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: AoC YG player profile module
« Reply #56 on: February 21, 2011, 09:49:43 am »
I wouldn't know how to fix this, the data pulled down from YG definately has the right characters in it (for example Gürtel)but I guess a charset value of some sort is needed to properly format it. Do other modules that support German show the proper characters (for examples if with Getrix' item db you do a !list Gürtel are the results displayed correctly)?
-Yite [Crom]

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #57 on: February 21, 2011, 01:22:16 pm »
Yes, Getrix's Itemquery (!items gürtel) works fine with ä ö ü.

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: AoC YG player profile module
« Reply #58 on: February 21, 2011, 02:54:07 pm »
Right, I found the cause of the problem which is the simplexml_load_string.

A google search turned up the following:

Quote
This looks SimpleXML is creating a UTF-8 string, which is then rendered in ISO-8859-1 (latin-1) or something close like CP-1252.

When you save the result to a file and serve that file via a web server, the browser will use the encoding declared in the file.

Including in a web page
Since your web page encoding is not UTF-8, you need to convert the string to whatever encoding you are using, eg ISO-8859-1 (latin-1).

This is easily done with iconv():

    $xmlout = iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $xmlout);

Saving to database
You database column is not using UTF-8 collation, so you should use iconv to convert the string to the charset that your database uses.

Assuming your database collation is the same as the encoding that you render in, you will not have to do anything when reading from the database.

Explanation
In UTF-8, a 0xc2 prefix byte is used to access the top half of the "Latin-1 Supplement" block which includes characters such as accented letters, currency symbols, fractions, superscript 2 and 3, the copyright and registered trademark symbols, and the non-breaking space.

However in ISO-8859-1, the byte 0xC2 represents an Â. So when your UTF-8 string is misinterpreted as one of those, then you get  followed by some other nonsense character.

Which hopefully will help some of the more experienced coders here to fix your issue :)
-Yite [Crom]

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Re: AoC YG player profile module
« Reply #59 on: February 21, 2011, 03:59:37 pm »
C'mon Getrix! RULE THE CODE8)

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 662
  • 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