Whitegreek
Sniping with the pistol...
+4|6845
Chuy what's with the Cents per Hour thing and the $50 base thing I'm seeing at the bottom of all the stat pages? Your doing a great job at it all. I'll hopefully be donating some money this weekend.
Lord_Arkhan
Member
+0|6778

aTi|Sanders wrote:

oh shit! fixing it now and will have a fixed version up in 3 mins.


fixed......
It is Great! Thank You!

See --> http://www.bf2-nss.de/include.php?path= … ntentid=46

Edit: I have your Script modded in my Site-Style. Thank You for the Wonderfull Script.

Last edited by Lord_Arkhan (2005-11-17 15:44:21)

bonk
Member
+0|6733
This only seems to be for php, how would I write such a small API with asp.net ?
Will I need this BF2S MyLeaderBoard XML Feed for it ? Where can I find this XML feed ?
http://bf2s.com/my-leaderboard.php doesn't seem to have an xml link ....
NM156
The H4xor Mod
+161|6846|North Texas
Refer to this post: http://forums.bf2s.com/viewtopic.php?pid=37090#p37090

DERERLEUCHTETE created an ASP.net solution, and said he was willing to share. Use this email link for your request. Although the link he provided in his post is broke, he may be willing to help you. I suspect that the recent changes to the feed, messed up his page. Good luck.
gunlinger_73
Member
+0|6734
Hey guys. could anyone help me. I have the country images but i am in need of the relative friendly name for each country code. Would be greatly appreciated.
NM156
The H4xor Mod
+161|6846|North Texas
Sure, these came from the game itself:

Code:

array(
    "AD" => "Andorra",
    "AE" => "United Arab Emirates",
    "AF" => "Afghanistan",
    "AG" => "Antigua and Barbuda",
    "AI" => "Anguilla",
    "AL" => "Albania",
    "AM" => "Armenia",
    "AN" => "Netherlands Antilles",
    "AO" => "Angola",
    "AR" => "Argentina",
    "AS" => "American Samoa",
    "AT" => "Austria",
    "AU" => "Australia",
    "AW" => "Aruba",
    "AZ" => "Azerbaijan",
    "BA" => "Bosnia-Herzegovina",
    "BB" => "Barbados",
    "BD" => "Bangladesh",
    "BE" => "Belgium",
    "BF" => "Burkina Faso",
    "BG" => "Bulgaria",
    "BH" => "Bahrain",
    "BI" => "Burundi",
    "BJ" => "Benin",
    "BM" => "Bermuda",
    "BN" => "Brunei",
    "BO" => "Bolivia",
    "BR" => "Brazil",
    "BT" => "Bhutan",
    "BV" => "Bouvet Island",
    "BW" => "Botswana",
    "BY" => "Belarus",
    "BZ" => "Belize",
    "CA" => "Canada",
    "CC" => "Cocos (Keeling Islands)",
    "CF" => "Central African Republic",
    "CG" => "Congo",
    "CH" => "Switzerland",
    "CK" => "Cook Islands",
    "CL" => "Chile",
    "CM" => "Cameroon",
    "CN" => "China",
    "CO" => "Colombia",
    "CR" => "Costa Rica",
    "CU" => "Cuba",
    "CV" => "Cape Verde",
    "CX" => "Christmas Island",
    "CY" => "Cyprus",
    "CZ" => "Czech Republic",
    "DE" => "Germany",
    "DJ" => "Djibouti",
    "DK" => "Denmark",
    "DM" => "Dominica",
    "DO" => "Dominican Republic",
    "DZ" => "Algeria",
    "EC" => "Ecuador",
    "EE" => "Estonia",
    "EG" => "Egypt",
    "EH" => "Samoa",
    "ER" => "Eritrea",
    "ES" => "Spain",
    "ET" => "Ethiopia",
    "FI" => "Finland",
    "FJ" => "Fiji",
    "FK" => "Falkland Islands",
    "FM" => "Micronesia",
    "FO" => "Faroe Islands",
    "FR" => "France",
    "GA" => "Gabon",
    "GD" => "Grenada",
    "GE" => "Georgia",
    "GF" => "French Guiana",
    "GH" => "Ghana",
    "GI" => "Gibraltar",
    "GL" => "Greenland",
    "GM" => "Gambia",
    "GN" => "Guinea",
    "GP" => "Guadeloupe",
    "GQ" => "Equatorial Guinea",
    "GR" => "Greece",
    "GS" => "S. Georgia",
    "GT" => "Guatemala",
    "GU" => "Guam",
    "GW" => "Guinea-Bissau",
    "GY" => "Guyana",
    "HK" => "Hong Kong",
    "HM" => "Heard and McDonald Islands",
    "HN" => "Honduras",
    "HR" => "Croatia",
    "HT" => "Haiti",
    "HU" => "Hungary",
    "ID" => "Indonesia",
    "IE" => "Ireland",
    "IL" => "Israel",
    "IN" => "India",
    "IO" => "British Indian Ocean",
    "IQ" => "Iraq",
    "IR" => "Iran",
    "IS" => "Iceland",
    "IT" => "Italy",
    "JM" => "Jamaica",
    "JO" => "Jordan",
    "JP" => "Japan",
    "KE" => "Kenya",
    "KG" => "Kyrgyzstan",
    "KH" => "Cambodia",
    "KI" => "Kiribati",
    "KM" => "Comoros",
    "KN" => "St Kitts-Nevis",
    "KP" => "North Korea",
    "KR" => "South Korea",
    "KW" => "Kuwait",
    "KY" => "Cayman Islands",
    "KZ" => "Kazakhstan",
    "LA" => "Laos",
    "LB" => "Lebanon",
    "LC" => "St Lucia",
    "LI" => "Liechtenstein",
    "LK" => "Sri Lanka",
    "LR" => "Liberia",
    "LS" => "Lesotho",
    "LT" => "Lithuania",
    "LU" => "Luxembourg",
    "LV" => "Latvia",
    "LY" => "Libya",
    "MA" => "Morocco",
    "MC" => "Monaco",
    "MD" => "Moldova",
    "MG" => "Madagascar",
    "MH" => "Marshall Islands",
    "MK" => "Macedonia",
    "ML" => "Mali",
    "MM" => "Myanmar",
    "MN" => "Mongolia",
    "MO" => "Macau",
    "MP" => "Northern Mariana Islands",
    "MQ" => "Martinique",
    "MR" => "Mauritania",
    "MS" => "Montserrat",
    "MT" => "Malta",
    "MU" => "Mauritius",
    "MV" => "Maldives",
    "MW" => "Malawi",
    "MX" => "Mexico",
    "MY" => "Malaysia",
    "MZ" => "Mozambique",
    "NA" => "Namibia",
    "NC" => "New Caledonia",
    "NE" => "Niger",
    "NF" => "Norfolk Island",
    "NG" => "Nigeria",
    "NI" => "Nicaragua",
    "NL" => "Netherlands",
    "NO" => "Norway",
    "NP" => "Nepal",
    "NR" => "Nauru",
    "NU" => "Niue",
    "NZ" => "New Zealand",
    "OM" => "Oman",
    "PA" => "Panama",
    "PE" => "Peru",
    "PF" => "French Polynesia",
    "PG" => "Papua New Guinea",
    "PH" => "Philippines",
    "PK" => "Pakistan",
    "PL" => "Poland",
    "PM" => "St. Pierre and Miquelon",
    "PN" => "Pitcairn Islands",
    "PR" => "Puerto Rico",
    "PT" => "Portugal",
    "PW" => "Palau",
    "PY" => "Paraguay",
    "QA" => "Qatar",
    "RE" => "Reunion",
    "RO" => "Romania",
    "RU" => "Russia",
    "RW" => "Rwanda",
    "SA" => "Saudi Arabia",
    "SB" => "Solomon Islands",
    "SC" => "Seychelles",
    "SD" => "Sudan",
    "SE" => "Sweden",
    "SG" => "Singapore",
    "SH" => "St. Helena",
    "SI" => "Slovenia",
    "SJ" => "Svalbard and Jan Mayen Islands",
    "SK" => "Slovak Republic",
    "SL" => "Sierra Leone",
    "SM" => "San Marino",
    "SN" => "Senegal",
    "SO" => "Somalia",
    "SR" => "Suriname",
    "ST" => "Sao Tome and Principe",
    "SV" => "El Salvador",
    "SY" => "Syria",
    "SZ" => "Swaziland",
    "TC" => "Turks & Caicos Islands",
    "TD" => "Chad",
    "TG" => "Togo",
    "TH" => "Thailand",
    "TJ" => "Tajikistan",
    "TM" => "Turkmenistan",
    "TN" => "Tunisia",
    "TO" => "Tonga",
    "TP" => "Timor",
    "TR" => "Turkey",
    "TT" => "Trinidad & Tobago",
    "TV" => "Tuvalu",
    "TW" => "Taiwan",
    "TZ" => "Tanzania",
    "UA" => "Ukraine",
    "UG" => "Uganda",
    "UK" => "United Kingdom",
    "UM" => "US Minor Outlying Islands",
    "US" => "United States",
    "UY" => "Uruguay",
    "UZ" => "Uzbekistan",
    "VA" => "Holy See (Vatican City)",
    "VE" => "Venezuela",
    "VG" => "Virgin Islands (British)",
    "VI" => "Virgin Islands (US)",
    "VN" => "Vietnam",
    "VU" => "Vanuatu",
    "WF" => "Wallis and Futuna Islands",
    "YE" => "Yemen",
    "YT" => "Mayotte",
    "YU" => "Yugoslavia",
    "ZA" => "South Africa",
    "ZM" => "Zambia",
    "ZR" => "Zaire",
    "ZW" => "Zimbabwe"
    );
gunlinger_73
Member
+0|6734
NM156, Thank you very much. I have tried your mod to the xml feed. and it rocks. I have added the extra feilds (KILLS, DEATHS,KDR,WINS,LOSSESS,WLR) to the table along with a country's field. for which i can complete, lol. Also because the clan i am in doesnt really have set squads i have made an option to seperate the groups by clan status as opposed to squads.

Thanks chuy for the xml feed and thanks NM156 for your mod. Hope to have something uploaded soon. when i do i post a link.

cheers
NM156
The H4xor Mod
+161|6846|North Texas
Thanks man.. I appreciate it. I suppose I should update the code in my download link. Totally forgot about that. I don't know if you run a Nuke site(I don't personally), but I've got a modules written, with tons of options. As soon as I know more about the new expansion, I'll release it here.
gunlinger_73
Member
+0|6734
cool. Yeah at present clan running a nuke site. i am coding a larger clan module and this has intergrated nicely with that.

right bed for me. 
cheers

laters
Jenspm
penis
+1,716|6732|St. Andrews / Oslo

Is it possible to make a detailed, step-by-step description of how to add a leaderboard to your clan-website. I am a noob on the PC and i am not familiar with XML, HTML and all that stuff This is a GREAT site by the way. It is fun to compare my stats with fellow soldiers...

Jens
https://static.bf2s.com/files/user/26774/flickricon.png https://twitter.com/phoenix/favicon.ico
Jenspm
penis
+1,716|6732|St. Andrews / Oslo

Hi,
Does anyone want to make a leaderboard for my clan? That would be great... I am not good at that XML/HTML stuff and need some held. Maybe if you write out an html code with all our stats, so i can copy and paste it into our website... Our members are:

[[[@LPH@]]]Beta
[[[@LPH@]]]Tobz
OtownsHero
Jenspm
AKMUNTHE
comander133
NorwegianSpirit
Armaggeddonguy

Thank you!
Jenspm
https://static.bf2s.com/files/user/26774/flickricon.png https://twitter.com/phoenix/favicon.ico
NM156
The H4xor Mod
+161|6846|North Texas
You're going to need a web site that supports PHP, or some other form of dynamic scripting(CGI/ASP/etc). If it's one of those cheesy free sites, you may not have PHP capabilities. Simple HTML will not work for this purpose.

Do you have a link you can provide to your clan's web site? You have to give us more details about your site, before anyone can help you.
Jenspm
penis
+1,716|6732|St. Andrews / Oslo

I think it is a cheasy free website:P Well, here it is anyway: www.alphabf2.tk
https://static.bf2s.com/files/user/26774/flickricon.png https://twitter.com/phoenix/favicon.ico
NM156
The H4xor Mod
+161|6846|North Texas
Sorry bud: http://members.freewebs.com/page.jsp?page=faqs#asp

Can I run ASP scripts? Can I use ColdFusion?
Due to security reasons, we do not allow these types of applications and scripts to be run on our servers. You can however link to remote scripts from your website.

What about MySQL, MSACCESS, and PHP?
Unfortunately, Freewebs does not offer these functions.

Can I use CGI and Perl scripts?
We do support these types of scripts. CGI/Perl accounts are specially created for users and can be signed up for after logging in from the Premium Services page.
Unless you have their Premium Services package(not free), you won't be able to do this on your web site.
Jenspm
penis
+1,716|6732|St. Andrews / Oslo

ok, thanks
we are planning on upgrading soon... I will ask again then... Do you have an e-mail adress or something?
https://static.bf2s.com/files/user/26774/flickricon.png https://twitter.com/phoenix/favicon.ico
NM156
The H4xor Mod
+161|6846|North Texas
You can use the Email or PM link... right below my name.
chuyskywalker
Admin
+2,439|6847|"Frisco"

Make sure when you upgrade to go with a larger company since you're new. They provider better support. I use ASmallOrange.com for my other shared hosting.
rezyn8
Member
+3|6772|Melbourne, Australia
Hey guys - I am getting the following error when trying to use the xml script aTi|saunders put together. What versions or php.ini settings do I need to get it to write the cache files? Or is there something else?

Code:

Warning: Invalid argument supplied for foreach() in /index.php on line 28
I have set permissions correctly but for some reason it won't write to the cache folder.
Jenspm
penis
+1,716|6732|St. Andrews / Oslo

Thanks for the tip! Is a small orange kind of like freewebs, where you make a website with templates and stuff, or do u have to make it by your self on publisher or sumthing and upload it to the website? Can you have a leaderboard on it if you choose "tiny package"?
https://static.bf2s.com/files/user/26774/flickricon.png https://twitter.com/phoenix/favicon.ico
aTi|Sanders
Hold your Fire, I forgot my gun!
+0|6767

rezyn8 wrote:

Hey guys - I am getting the following error when trying to use the xml script aTi|saunders put together. What versions or php.ini settings do I need to get it to write the cache files? Or is there something else?

Code:

Warning: Invalid argument supplied for foreach() in /index.php on line 28
I have set permissions correctly but for some reason it won't write to the cache folder.
If you add more PID's then it takes time to update. The foreach that grabs the PID's tries to grab those but it cant because the XML only updates every 2 hours.

I get this question alot and it will be fixed when the XML feed updates.
gunlinger_73
Member
+0|6734
hey guys,
              NM156 here is a link to my mod of yours. i have changed your squadgroup to be different groupings. ie: group by clan status and rank for now. maybe when the clan get more established we shalll be having some squads. then add that option to drop down. Anyway's cheers and apologies if the server is slow. we having some issues and are changing hosts soon

http://clan-asbo.co.uk/modules.php?name=clan&pa=leaderboard
NM156
The H4xor Mod
+161|6846|North Texas
That's pretty damn sweet, nice job man! I never thought about having separate group options like that.
gunlinger_73
Member
+0|6734
nice one cheers.

the groups will work for any group array you throw at it. as long as  the group array correctly parsed into a multidimensional array.  One thing to consider when doing this was each time another group is selected  the parsed pid string is different. Same pid's just in a different order so the result is a new cache filename. This was no good ofcourse so I get all the pids from my members table(db) ordered by pid aan pass that to the mlb->get() function. Then i create the group arrays seperatly using ORDER BY 'group type' on sql. Then create the relevant groups array accordingly. So now any group returned is always using the same cache file instead of creating a new one for each group type. Any new clan members they just get inlcluded on next update.

For now i just used clan status and rank to group by. But will be adding more at some point. Like weapon / map / kit / army etc. so you can check yourself aginst all members who have the same favourite kit / map etc.

I am new to php and programming in general so this been fun to do.

Last edited by gunlinger_73 (2005-11-24 09:48:42)

direwolf
Member
+0|6823
Hey Chuy,

Great work!

Is there any chance on getting an awards only feed?  Perhaps something that is restricted to allow queries once every 12 hours or so?  Manually updating player awards is a nightmare so it would be great to run a script to do this.
aTi|Sanders
Hold your Fire, I forgot my gun!
+0|6767
I've been working on some things having to do with EA stats and SQL. I must say that i now understand why jeff cant release XML versions of the feed with awards. I would even find it dificult to build Awards into my portal yet i have the awards in SQL. Though i have to say that with the current data involved he is doing a great job.

So be happy with what you have.

Board footer

Privacy Policy - © 2024 Jeff Minard