Announcement

Join us on Discord: https://discord.gg/nf43FxS
Cimlite
Member
+1|5770|Sweden
I've got no idea if this is possible, but I thought I'd ask anyway.

I use the start site www.netvibes.com, which is a site that basically is an online RSS viewer. I'd be really nice if there was a possibility to get some form of RSS leaderboard thingy, were you saw the scores/SPMs of a group of people.

Is something like this planned or even possible? I know that you probably could code something to compile the XML feeds there are now, but me personally... got no clue as how to do that.

Other than this request, I can't think of anything else I'd like to see on the site. It's perfect.
midgetspy
Member
+3|5753
Save as a .php and customize to your liking, should be pretty obvious:

Code:

<?php 

$your_leaderboard_url = 'http://www.yourclan.com/your-leaderboard.php';
$your_clan_name = 'Some Clan';
$your_pid_list = '6192697,44574519,43505390,43861993';

require('./bf2s-mlb.php');
$mlb->get($your_pid_list); 
?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title><?=$your_clan_name?> Stats</title>
    <link><?=$your_leaderboard_url?></link>
    <description>Battlefield 2 Stats Leaderboard for <?=$your_clan_name?></description>
    <language>en-us</language>
<?
foreach ($mlb->getList('') as $player) {
?>
    <item>
      <title><?=$player['NICK']?></title>
      <link><?=$player['LINK']?></link>
      <description>Score: <?=$player['SCORE']?>, SPM: <?=$player['SPM']?></description>
    </item>
<?
}
?>
  </channel>
</rss>
Mr_Self-Destruct
Member
+0|5687|Gilbert, Arizona
damn. the problem for me would be having to convert my American dough into Euros.
chuyskywalker
Admin
+2,439|5773|"Frisco"

Er...online services do money conversion quite nicely. But anyway, yeah midgetspy got it right. Kinda an odd way to display that thing, but there it is.
Cimlite
Member
+1|5770|Sweden
Thanks a lot for the help.

This is what I wanted, the box at the bottom of the page:
https://img457.imageshack.us/img457/7015/bf2srss0ub.th.gif
midgetspy
Member
+3|5753
Happy to help.

Nic
chuyskywalker
Admin
+2,439|5773|"Frisco"

Cimlite wrote:

This is what I wanted, the box at the bottom of the page:
http://img457.imageshack.us/img457/7015 … 0ub.th.gif
Heh, nice. That does look snazzy

Board footer

Privacy Policy - © 2021 Jeff Minard