BF2S.com MyLeaderBoard Demo

This page provides a basic demo of how the BF2S_MLB class can be used to pull a custom leaderboard from BF2S.com and display it on your own pages.

Check out the source code of this page to see how rediculously easy this is. The documentation is available as well.

Default, no parameters

SPM

Time

As a list, by rank

Plain, all fields

Raw Data, Baby!



Raw data can be pre-sorted, too -- in this case, on time



Debug Info, when activated -- errors alawys show

ERRORS: Can't make a list till you've queried for it.
Can't make a list till you've queried for it.
Can't make a list till you've queried for it.
Can't make a list till you've queried for it.
Can't make a list till you've queried for it.
Can't make a list till you've queried for it.
Can't make a list till you've queried for it.
Message Log
  1. LOG[t] ():
    1. get(43917103,45507687,45138378,43485335,44260977,39709471)
    2. Cache file testing/creation complete: 1
    3. cache_recall(43917103,45507687,45138378,43485335,44260977,39709471, 360)
    4. Cache file ( /www/jrm.cc/site/extras/mlb/cache/9a62ec38dd166bcfe94df97c1f404cf6.txt ) is too old.
    5. No cached XML file exists (or it's too old.)
    6. Fresh XML, validating
    7. The freshened XML file is valid
    8. cache_store(43917103,45507687,45138378,43485335,44260977,39709471, content)
    9. Wrote cache file ( /www/jrm.cc/site/extras/mlb/cache/9a62ec38dd166bcfe94df97c1f404cf6.txt ) 
    10. showList(score, <tr><td><a href="{LINK}">{NICK}</a></td><td>{SCORE}</td><td>{SPM}</td><td>{TIME}</td></tr> )
    11. getList(score)
    12. Can't make a list till you've queried for it.
    13. showList(SPM, <tr><td><a href="{LINK}">{NICK}</a></td><td>{SCORE}</td><td>{SPM}</td><td>{TIME}</td></tr> )
    14. getList(SPM)
    15. Can't make a list till you've queried for it.
    16. showList(time, <tr><td><a href="{LINK}">{NICK}</a></td><td>{SCORE}</td><td>{SPM}</td><td>{TIME}</td></tr> )
    17. getList(time)
    18. Can't make a list till you've queried for it.
    19. showList(rank, <li>{NICK}, {RANK}</li> )
    20. getList(rank)
    21. Can't make a list till you've queried for it.
    22. showList(score, {NICK} - {PID} - {RANK} - {SCORE} - {SPM} - {KDR} - {WLR} - {COUNTRY} - {TIME} - {WINS} - {LOSSES} - {KILLS} - {DEATHS} - {LINK}<br /> )
    23. getList(score)
    24. Can't make a list till you've queried for it.
    25. getList()
    26. Can't make a list till you've queried for it.
    27. getList(time)
    28. Can't make a list till you've queried for it.