SWLE Forum Index
FAQ  Search  Memberlist  Usergroups  Register  Log in  Album  Download

Previous topic :: Next topic
XML data
Author Message
MUSHpark 
Gamer Legend

Helped: 1
Joined: 16 Mar 2008
Posts: 181
Posted: Sat May 23, 2009 5:18 am   XML data

Could we get some of the stats pages available as XML feeds? Probably not too hard to set up, and could be done without a login, allowing those of us who want to build custom stats pages (like Roman's most excellent daily averaage charts) to automate the data pulls without having to pick and choose off of the formatted results?
 
     
Roman 
Gamer God


Helped: 2 times
Age: 48
Joined: 06 May 2008
Posts: 407
Posted: Tue May 26, 2009 8:05 am   Re: XML data

MUSHpark wrote:
Could we get some of the stats pages available as XML feeds? Probably not too hard to set up, and could be done without a login, allowing those of us who want to build custom stats pages (like Roman's most excellent daily averaage charts) to automate the data pulls without having to pick and choose off of the formatted results?


I am for it. I could maybe also use the data for my Excel sheets (http://yarold.eu/phpBB2/viewtopic.php?t=4444)
 
     
MUSHpark 
Gamer Legend

Helped: 1
Joined: 16 Mar 2008
Posts: 181
Posted: Tue May 26, 2009 6:21 pm   

In answer to Stan's question in chat, the solution could be done on two primary pages

One page should be similar to http://swle.yarold.eu/dynasty.php but contain many more fields (from dynasty details page) plus maybe more information for gained/given (just add up numbers that would show on dynasty page):

Example code for proposed swle.yarold.eu/dynasty.xml (available without login):

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<dynastylist>
    <dynasty>
        <dynid>343</dynid>
        <name>Just 4 Fun</name>
        <members>49</members>
        <allysize>402</allysize>
        <allies>
            <allyid>123</allyid>
            <allyid>234</allyid>
            <allyid>345</allyid>
        </allies>
        <clicks>
            <total>8909343</total>
            <avgmember>426.29</avgmember>
            <avg>24871.50</avg>
            <yesterday>25277</yesterday>
        </clicks>
        <gained>
            <total>123456</total>
            <yesterday>12345</yesterday>
        </gained>
        <given>
            <total>123456</total>
            <yesterday>12345</yesterday>
        </given>
        <activity>
            <history1 date="09-04-16" total="20071" avg="453.48"/>
            <history2 date="09-04-07" total="20874" avg="453.205"/>
            (etc. for activity history)
        </activity>
    </dynasty>       
    <dynasty>
        (repeate above for all dynasties)
    </dynasty>
</dynastylist>



Other page should be similar to http://swle.yarold.eu/memberlist.php but contain many more fields (from profile). If there are too many members for a single page, it could probably be limited to show only active members, or perhaps only members in dynasties, or perhaps only members with at least 1 click yesterday or today.

Example code for proposed swle.yarold.eu/memberlist.xml (available without login):

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<memberlist>
    <member>
        <id>1204</id>
        <name>MUSHpark</name>
        <general>
            <lastlogin>2009-05-26 17:56:33</lastlogin>
            <lastactive>2009-05-26 18:42:46</lastactive>
            <status>active</status>
            <banned>no</banned>
            <flags>VIP</flags>
        </general>
        <stats>
            <credits>4928.3</credits>
            <totalreceived>258601</totalreceived>
            <totalclicks>324976</totalclicks>
            <totalclickstoday>191</totalclickstoday>
            <care status="on" passed="85" total="110"/>
        </stats>
        <dynasty>
            <dynname>MMC Mob</dynname>
            <dynid>339</dynid>
            <dynrank>kampaku</dynrank>
            <dynactivity>active</dynactivity>
            <dynave>841</dynave>
            <dyntotalclicksyest>940</totalclicksyest>
            <dyntotalclickstoday>181</dyntotalclickstoday>
        </dynasty>
        <links>
            <link>
                <url>http://site1 here/</url>
                <limit>0</limit>
                <visible main="no" history="no" dynasty="yes"/>
                <resettype>24h</resettype>
            </link>
            <link>
                (repeat above for all links)
            </link>
        </links>
        <misc>
            <adultcontent>yes</adultcontent>
            <linksexpire>24h</linksexpire>
            <allowmail>yes</allowmail>
            <advanced>yes</advanced>
            <profilelinks>no</profilelinks>
        </misc>
    </member>
    <member>
        (repeat above for all members)
    </member>
</memberlist>
 
     
Display posts from previous:   
Reply to topic
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
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group
Akagahara style created by Nash modified v0.8 by warna