Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 9
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1784 times and has 8 replies Next Thread
KeithSloan
Cruncher
Joined: May 1, 2009
Post Count: 25
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Public statistics.

I would like to provide a link to my statistics from my own website.
Is it possible to arrange for statistics to be made available on a public uri.

Thanks
----------------------------------------

[Feb 1, 2014 9:32:33 AM]   Link   Report threatening or abusive post: please login first  Go to top 
deltavee
Ace Cruncher
Texas Hill Country
Joined: Nov 17, 2004
Post Count: 4894
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

I would like to provide a link to my statistics from my own website.
Is it possible to arrange for statistics to be made available on a public uri.

Thanks

How about a widget? http://www.worldcommunitygrid.org/ms/viewGetMarketingImage.do
[Feb 1, 2014 9:51:43 AM]   Link   Report threatening or abusive post: please login first  Go to top 
jonnieb-uk
Ace Cruncher
England
Joined: Nov 30, 2011
Post Count: 6105
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

You could make use of a SNURK sig such as appear at the foor of this post, deltavee's post and many other members posting in the forum. To obtain one post a request here .

Alternatively your personal stats, in XML format, are here:

https://secure.worldcommunitygrid.org/stat/viewCompareMembers.do?userNames[0].value=KeithSloan&xml=true

(Copy & paste the whole line rather than clicking on the link)

[edit]You could also add a link to your website to My Forum Profile wink
----------------------------------------

To Join follow this link: Join the UK Team All Welcome! UK Team thread
----------------------------------------
[Edit 2 times, last edit by jonnieb-uk at Feb 1, 2014 10:50:48 AM]
[Feb 1, 2014 10:26:35 AM]   Link   Report threatening or abusive post: please login first  Go to top 
KeithSloan
Cruncher
Joined: May 1, 2009
Post Count: 25
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

You could make use of a SNURK sig such as appear at the foor of this post, deltavee's post and many other members posting in the forum. To obtain one post a request here .

Alternatively your personal stats, in XML format, are here:

https://secure.worldcommunitygrid.org/stat/viewCompareMembers.do?userNames[0].value=KeithSloan&xml=true

(Copy & paste the whole line rather than clicking on the link)

[edit]You could also add a link to your website to My Forum Profile wink


Okay I am trying to read the xml with php but don't understand what I am doing

I have
<?php
$url="https://secure.worldcommunitygrid.org/stat/viewCompareMembers.do?userNames[0].value=KeithSloan&xml=true";
$xml = simplexml_load_file($url);
$value = (string) $xml->query->results->item[0];
echo $value
?>

But I seem to just get a blank ot null as $xml

How should I be accessing
----------------------------------------

[Feb 7, 2014 6:31:55 AM]   Link   Report threatening or abusive post: please login first  Go to top 
jonnieb-uk
Ace Cruncher
England
Joined: Nov 30, 2011
Post Count: 6105
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

Sorry Keith but I have no knowledge of php. sad I've asked team colleagues if anyone can assist or maybe someone else in the wider community will provide a solution.
----------------------------------------

To Join follow this link: Join the UK Team All Welcome! UK Team thread
[Feb 7, 2014 10:59:44 AM]   Link   Report threatening or abusive post: please login first  Go to top 
KeithSloan
Cruncher
Joined: May 1, 2009
Post Count: 25
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

Sorry Keith but I have no knowledge of php. sad I've asked team colleagues if anyone can assist or maybe someone else in the wider community will provide a solution.


Perhaps you could confirm that the URL returns xml.

If I enter the URL in a browser, I just get the info as text, which is not what I was expecting. I was expecting some xml stuff along with the info. Maybe browsers process xml and just display text, but that was not what I was expecting.
----------------------------------------

[Feb 7, 2014 1:17:01 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KeithSloan
Cruncher
Joined: May 1, 2009
Post Count: 25
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

Doing some more testing it looks like https://secure.worldcommunitygrid.org/stat/viewCompareMembers.do?userNames[0].value=KeithSloan&xml=true

Returns text rather than xml. If I leave off the xml=true I get a web page.
Is there a way to get it to output the stats as xml?
----------------------------------------

[Feb 7, 2014 7:35:34 PM]   Link   Report threatening or abusive post: please login first  Go to top 
wplachy
Senior Cruncher
Joined: Sep 4, 2007
Post Count: 423
Status: Offline
Reply to this Post  Reply with Quote 
Re: Public statistics.

the link https://secure.worldcommunitygrid.org/stat/viewCompareMembers.do?userNames[0].value=KeithSloan&xml=true returns:

<?xml version="1.0" encoding="UTF-8"?>
-<MemberStats>
-<MemberStat>
<Name>KeithSloan</Name>
<MemberId>583284</MemberId>
<RegisterDate>2009-05-01</RegisterDate>
<LastResult>2014-02-07T17:55:41</LastResult>
<NumDevices>3</NumDevices>
-<StatisticsTotals>
<RunTime>42985803</RunTime>
<RunTimeRank>79451</RunTimeRank>
<Points>1703000</Points>
<PointsRank>56817</PointsRank>
<Results>3247</Results>
<ResultsRank>57589</ResultsRank>
</StatisticsTotals>
.
.
.
</MemberStat>
</MemberStats>

Which is XML. It work fine in both IE and Firefox. I've been using it for 3 years to capture my EOD stats.

What are you seeing?
----------------------------------------
Bill P

[Feb 8, 2014 12:20:34 AM]   Link   Report threatening or abusive post: please login first  Go to top 
KeithSloan
Cruncher
Joined: May 1, 2009
Post Count: 25
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Public statistics.

With Firefox 20.0 on Ubuntu 10.04 it just gives me the text values, but I have now found that if I save the page as a file it gives the full xml. Also if I try Chromium it gives me the xml. So thanks I will go back to my php and try a figure why accessing as xml is not working,
----------------------------------------

----------------------------------------
[Edit 1 times, last edit by KeithSloan at Feb 8, 2014 9:19:08 AM]
[Feb 8, 2014 9:15:40 AM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread