| View previous topic :: View next topic |
| Author |
Message |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Tue Jan 11, 2005 11:31 pm Post subject: Realm data feeds |
|
|
| Please post all your questions and feedback on the <a href='http://www.warcraftrealms.com/dataexport.php'>Realm Data Export</a> feature in this thread. |
|
| Back to top |
|
 |
InuTracy
Joined: 13 Jan 2005
Posts: 3
WR Updates: 0
InuTracy WR Profile
|
Posted: Thu Jan 13, 2005 7:43 pm Post subject: |
|
|
It's freaking hard to use! Is there a tutoriol to help? There is no clear way to use this, at all and I really want to display it on my web site for my guild. _________________
Hl2 > H2? Decide yourself |
|
| Back to top |
|
 |
Khael
Joined: 05 Feb 2005
Posts: 13
WR Updates: 0
Khael WR Profile
|
Posted: Sat Feb 05, 2005 9:03 am Post subject: Easy |
|
|
I found it extremely easy to use
I mean it doesnt get much easier when you are given a comma separated csv file, updated every hour.
This shit rocks, thank you Rollie & Co. _________________ Khael[SUN]
GUILD OF SUN - slaying carebears since 1873
Webmaster: http://www.guildofsun.com |
|
| Back to top |
|
 |
Tarasque
Joined: 09 Feb 2005
Posts: 1
Location: Panama
WR Updates: 0
Tarasque WR Profile
|
Posted: Wed Feb 09, 2005 5:13 pm Post subject: |
|
|
This feature seems interesting. I was looking something similar, like having the realm status (online/offline) that could be viewed from my site, something like a few fansites have.
Anyways, it would be interesting to use the data, but a guide or tutorial would rock I'm more into design than programming  _________________
 |
|
| Back to top |
|
 |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Wed Feb 09, 2005 6:40 pm Post subject: |
|
|
The realm data feeds I provide give basic realm statistical information, not if the realm is currently up or not.
The realm data can be retrieved in the same manner as posted in the guild export thread. You would just need to point the save file at the realm data files instead of the guild files. |
|
| Back to top |
|
 |
Kitaka
Joined: 11 Feb 2005
Posts: 9
WR Updates: 0
Kitaka WR Profile
|
Posted: Fri Feb 11, 2005 11:45 am Post subject: |
|
|
the guild data is well, but is there any way to show the sex?
i plan a little img for all Chars and for that i need the gender |
|
| Back to top |
|
 |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Fri Feb 11, 2005 1:04 pm Post subject: |
|
|
| Unfortunately there is no way to determine gender (as far as I know). |
|
| Back to top |
|
 |
Keronos
Guest
|
Posted: Thu Mar 03, 2005 3:55 am Post subject: Broken ? |
|
|
This seems to be broken at the moment ?
I get zero byte files from the links  |
|
| Back to top |
|
 |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Thu Mar 03, 2005 9:07 am Post subject: |
|
|
| ah yeah, I need to do a little work since the move to get it back 100%. Gimme a day or so =) |
|
| Back to top |
|
 |
Keronos
Guest
|
Posted: Thu Mar 03, 2005 11:53 am Post subject: |
|
|
| possible to put a sample file up for the meanwhile ? |
|
| Back to top |
|
 |
thisKman
Guest
|
Posted: Mon Mar 07, 2005 1:29 pm Post subject: |
|
|
I have read the terms of use, but Guild data processing is still unclear. Can I use the the link like a file? Is it allowed to use it like this (in PHP):
$data_array = file("http://www.warcraftrealms.com/exports/guildexport.php?guildid=id_comes_here"); ? |
|
| Back to top |
|
 |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Mon Mar 07, 2005 1:37 pm Post subject: |
|
|
| You need to download the file periodically instead of pulling it each time the page is accessed. |
|
| Back to top |
|
 |
thisKman
Guest
|
Posted: Mon Mar 07, 2005 2:16 pm Post subject: |
|
|
| The method is that I download that file once a day, and use my stored one. Is it ok then? |
|
| Back to top |
|
 |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Mon Mar 07, 2005 2:35 pm Post subject: |
|
|
| Yup, that'd be great =) |
|
| Back to top |
|
 |
thisKman
Guest
|
Posted: Mon Mar 07, 2005 3:02 pm Post subject: |
|
|
| Ok. Thx! I will post again if the code is done. |
|
| Back to top |
|
 |
Keronos
Guest
|
Posted: Tue Mar 08, 2005 1:56 am Post subject: |
|
|
| It's still broken though ? |
|
| Back to top |
|
 |
Rollie
Site Admin

Joined: 28 Nov 2004
Posts: 5364
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile
|
Posted: Tue Mar 08, 2005 9:42 am Post subject: |
|
|
| Shouldn't be! I fixed it a few days ago! |
|
| Back to top |
|
 |
thisKman
Guest
|
Posted: Tue Mar 08, 2005 10:53 am Post subject: |
|
|
Finally the code is done, so my Guild data processor is working! As agreed it gets the data once a day from warcraftrealms.com, it makes a copy of it then uses the stored one till the next refresh time comes (after 24 hours). Here it is (without the HTML code):
| Code: |
$now = time();
//Setting up the variables
$date_file_name = "some_datefile_name.temp";
$date_file = file("$date_file_name");
$next_day = $date_file[0] + 24*3600;
$link = "http://www.warcraftrealms.com/exports/guildexport.php?guildid=guild_id";
$filename = "some_file_name.dat";
$title = "Guild_name";
if($now > $next_day)
{
$file = $filename;
$d_file = file("$link");
$open_file = fopen($file, "w");
for($i = 0;$i < count($d_file);$i++)
{
fwrite($open_file, "$d_file[$i]");
}
fclose($open_file);
//Updating the stored date
$open_file = fopen("$date_file_name", "w");
fwrite($open_file, "$now");
fclose($open_file);
}else{
$d_file = file("$filename");
}
...Some html code...
//Printing out the member data
for($i = 1;$i < count($d_file);$i++)
{
$line = explode(",", $d_file[$i]);
list($month, $day, $year) = explode("/", $line[4]);
echo "the data in the format you like ($line[0..5])";
}
//The first line contains no member data
$member_count = count($d_file) - 1;
echo "member count with the format you like";
...Some html code...
|
That's it. Not too much but it works : )) |
|
| Back to top |
|
 |
Keronos
Guest
|
Posted: Wed Mar 09, 2005 4:28 am Post subject: |
|
|
| Rollie wrote: | | Shouldn't be! I fixed it a few days ago! |
But isn't... All of the links for SERVER feeds I tried give zero byte files. |
|
| Back to top |
|
 |
Keronos
Guest
|
Posted: Wed Mar 09, 2005 4:34 am Post subject: |
|
|
To test this, try this:
| Code: | | gzopen('http://www.warcraftrealms.com/exports/download.php?fname=EU-Emerald%20Dream.csv.gz','r') |
I have no trouble opening the guild files, but server files are down |
|
| Back to top |
|
 |
|
|
|