WarcraftReamls.com
  FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups   RegisterRegister 
  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in 
Realm data feeds
Goto page 1, 2, 3, 4  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    WarcraftRealms.com Forum Index -> WarcraftRealms Developers
View previous topic :: View next topic  
Author Message
Rollie
Site Admin


Joined: 28 Nov 2004
Posts: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Tue Jan 11, 2005 11:31 pm    Post subject: Realm data feeds Reply with quote

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
View user's profile Send private message Visit poster's website
InuTracy



Joined: 13 Jan 2005
Posts: 3

WR Updates: 0
InuTracy WR Profile

PostPosted: Thu Jan 13, 2005 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Khael



Joined: 05 Feb 2005
Posts: 13

WR Updates: 0
Khael WR Profile

PostPosted: Sat Feb 05, 2005 9:03 am    Post subject: Easy Reply with quote

I found it extremely easy to use Wink

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
View user's profile Send private message
Tarasque



Joined: 09 Feb 2005
Posts: 1
Location: Panama
WR Updates: 0
Tarasque WR Profile

PostPosted: Wed Feb 09, 2005 5:13 pm    Post subject: Reply with quote

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 Wink I'm more into design than programming Rolling Eyes
_________________
Back to top
View user's profile Send private message Visit poster's website
Rollie
Site Admin


Joined: 28 Nov 2004
Posts: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Wed Feb 09, 2005 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kitaka



Joined: 11 Feb 2005
Posts: 9

WR Updates: 0
Kitaka WR Profile

PostPosted: Fri Feb 11, 2005 11:45 am    Post subject: Reply with quote

the guild data is well, but is there any way to show the sex?
i plan a little img for all Chars Wink and for that i need the gender
Back to top
View user's profile Send private message
Rollie
Site Admin


Joined: 28 Nov 2004
Posts: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Fri Feb 11, 2005 1:04 pm    Post subject: Reply with quote

Unfortunately there is no way to determine gender (as far as I know).
Back to top
View user's profile Send private message Visit poster's website
Keronos
Guest







PostPosted: Thu Mar 03, 2005 3:55 am    Post subject: Broken ? Reply with quote

This seems to be broken at the moment ?

I get zero byte files from the links Sad
Back to top
Rollie
Site Admin


Joined: 28 Nov 2004
Posts: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Thu Mar 03, 2005 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Keronos
Guest







PostPosted: Thu Mar 03, 2005 11:53 am    Post subject: Reply with quote

possible to put a sample file up for the meanwhile ?
Back to top
thisKman
Guest







PostPosted: Mon Mar 07, 2005 1:29 pm    Post subject: Reply with quote

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: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Mon Mar 07, 2005 1:37 pm    Post subject: Reply with quote

You need to download the file periodically instead of pulling it each time the page is accessed.
Back to top
View user's profile Send private message Visit poster's website
thisKman
Guest







PostPosted: Mon Mar 07, 2005 2:16 pm    Post subject: Reply with quote

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: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Mon Mar 07, 2005 2:35 pm    Post subject: Reply with quote

Yup, that'd be great =)
Back to top
View user's profile Send private message Visit poster's website
thisKman
Guest







PostPosted: Mon Mar 07, 2005 3:02 pm    Post subject: Reply with quote

Ok. Thx! I will post again if the code is done.
Back to top
Keronos
Guest







PostPosted: Tue Mar 08, 2005 1:56 am    Post subject: Reply with quote

It's still broken though ?
Back to top
Rollie
Site Admin


Joined: 28 Nov 2004
Posts: 5374
Location: Austin, TX
WR Updates: 480,131
Rollie WR Profile

PostPosted: Tue Mar 08, 2005 9:42 am    Post subject: Reply with quote

Shouldn't be! I fixed it a few days ago!
Back to top
View user's profile Send private message Visit poster's website
thisKman
Guest







PostPosted: Tue Mar 08, 2005 10:53 am    Post subject: Reply with quote

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







PostPosted: Wed Mar 09, 2005 4:28 am    Post subject: Reply with quote

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







PostPosted: Wed Mar 09, 2005 4:34 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    WarcraftRealms.com Forum Index -> WarcraftRealms Developers All times are GMT - 6 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
WarcraftRealms.com  


Powered by phpBB © 2001, 2005 phpBB Group