Author Topic: Country Flag  (Read 1463 times)

Offline peshmerge

  • Newbie Member
  • *
  • Topic Author
  • Posts: 4
  • Karma: +0/-0
    • View Profile
    • Awards
Country Flag
« on: May 22, 2015, 19:47 »
I'd like to see where the players are from, it would be fun.

Like this.



thanks.

Offline DatFace

  • Rorschach
  • Honored member
  • HolyShit Member
  • *
  • Posts: 5786
  • Country: gr
  • Karma: +454/-259
  • ..see what im chweing iz a magic shroom
  • Awards Winner of 1 Signature of the Week Contest [COMMON] Winner of 3 Photoshop Challenge Contests [RARE] Tours staff member [RARE] Forum staff member [RARE] Shadow Raze Tour Award [RARE] Tour Pro Member [EPIC] Mirana Wars Winner [RARE]
    • View Profile
    • Awards
Re: Country Flag
« Reply #1 on: May 22, 2015, 20:22 »
Please axplain me that "fun" feeling ;D

Anyway, i don't think its possible (i guess is hard to code something like that) but IF its possible, it would be great for the top 3 or 5.

Offline Ayd.Mev

  • Ayd's Admin Safelist Member
  • Hero Member
  • *
  • Posts: 650
  • Country: tr
  • Karma: +71/-128
  • ''When you feel hopeless think like Atatürk''
  • Server Account: Ayd.Mev
    PSR: Loading
    Games: Loading
    Wins/Loses: Loading/Loading
    Hero K/D/A: Loading
    Creep K/D/N: Loading
    Show/hide more stats
  • Awards Patreon Supporter [RARE] Contributor [COMMON] LA Ladder #2 [LEGENDARY]
    • View Profile
    • Awards
Re: Country Flag
« Reply #2 on: May 22, 2015, 20:51 »
lol i m from turkey guys!!!

Offline peshmerge

  • Newbie Member
  • *
  • Topic Author
  • Posts: 4
  • Karma: +0/-0
    • View Profile
    • Awards
Re: Country Flag
« Reply #3 on: May 22, 2015, 21:33 »
Haha xD It shouldnt be hard, exactly like the PSR taken from database. It could use some kind of code to take country status from IP Adress.

Offline div.ide

  • Honored member
  • WickedSick Member
  • *
  • Posts: 1763
  • Country: pl
  • Karma: +235/-61
  • Awards Winner of 1 Challenge of the Week [COMMON] Forum staff member [RARE] Drummer - Music Quiz #2 [RARE] Trumpeter- Music Quiz #3 [COMMON]
    • View Profile
    • Awards
Re: Country Flag
« Reply #4 on: May 22, 2015, 22:47 »
I don't think it wouldn't be that hard to code, since hostbot already has geolocation integrated (remember good old !from command?) which does precisely that - translates IP into country code. It would, however, require recoding bot to keep track of and pass additional info into database, and I guess altering database structure can sometimes be tedious. Adding one more column into stat page web interface is quite trivial, if you have the data stored.

There's one major problem though. The whole geolocation thing is very faulty and inconsistent, frequently yielding wrong country or no country at all. Besides, you either track everyone, or no one, so "top 3" kind of idea doesn't really work, on the backend side at least.
01010111 01100101 01101100 01101100 00100000 01100100 01101111 01101110 01100101 00101100 00100000 01101110 01100101 01110010 01100100 00101110

Offline Lagi

  • "Unnecessary manager of irregular transactions"
  • Honored member
  • MonsterKill Member
  • *
  • Posts: 2539
  • Country: hu
  • Karma: +226/-135
  • Awards Winner of 1 Signature of the Week Contest [COMMON] Winner of 5 Photoshop Challenge Contests [EPIC] Hacks staff member [RARE] Forum staff member [RARE] 1st place on GFX Ladder 2015 [UNIQUE] Mirana Wars Winner [RARE] Junior Tournament Member [RARE] Violinist - Music Quiz #1 [EPIC] Drummer - Music Quiz #2 [RARE] Trumpeter- Music Quiz #3 [COMMON] 2nd Place of GFX Special Event #1 [UNIQUE]
    • View Profile
    • Awards
Re: Country Flag
« Reply #5 on: May 22, 2015, 22:50 »
I don't think it wouldn't be that hard to code, since hostbot already has geolocation integrated (remember good old !from command?) which does precisely that - translates IP into country code. It would, however, require recoding bot to keep track of and pass additional info into database, and I guess altering database structure can sometimes be tedious. Adding one more column into stat page web interface is quite trivial, if you have the data stored.

There's one major problem though. The whole geolocation thing is very faulty and inconsistent, frequently yielding wrong country or no country at all. Besides, you either track everyone, or no one, so "top 3" kind of idea doesn't really work, on the backend side at least.
True, bot still thinks im from Ukraine. For like 2 years by now, and I've never been there at all.
I know what I stand for;
I STAND FOR ME!!!

Þetta er það lengsta sem ég fer.
Aldrei aftur samur maður er.
Ljóta leiðin heillar nú á ný,
daginn sem ég lífið aftur flý.



Offline jeandarc

  • Administrator
  • HolyShit Member
  • *
  • Posts: 5198
  • Country: jp
  • Karma: +865/-650
  • Server Account: jeandarc
    PSR: Loading
    Games: Loading
    Wins/Loses: Loading/Loading
    Hero K/D/A: Loading
    Creep K/D/N: Loading
    Show/hide more stats
  • Awards Lagabuse Legend Winner of 1 Challenge of the Week [COMMON] Winning 3 seasons of Football Betting [EPIC] GFX Tournament Participant [COMMON] Making 50 bets in Footbal Betting [COMMON] GFX staff member [RARE] Winner of 1 Signature of the Week Contest [COMMON] LA Ladder #11-25 [EPIC] 1v1 Earthshaker Tournament Winner [RARE] 1v1 Queen of Pain Tour Winner [RARE] Winner of 5 ShadowRaze Tours [LEGENDARY] Mirana Wars Winner [RARE] Pudge 1v1 Tournament Winner [RARE] Invoker Wars Tournament [RARE] 1v1 AR Tour Winner [RARE] Pudge Wars Tournament Winner [RARE] 2v2 SHOM Tournament Winner [RARE] Uther Party Tournament Winner [COMMON] MadBalls Tournament Winner [RARE] Junior Tournament Member [RARE]
    • View Profile
    • Awards
Re: Country Flag
« Reply #6 on: May 22, 2015, 23:02 »
Guys your stupidity makes me throw out, i dont even know from where to start

Offline Astaroth

  • Satan Admin
  • Honored member
  • GodLike Member
  • *
  • Posts: 13282
  • Country: is
  • Karma: +926/-303
  • Blood for the Blood God!
  • Awards Forum staff member [RARE]
    • View Profile
    • Awards
Re: Country Flag
« Reply #7 on: May 23, 2015, 14:24 »
I doubt anyone will make it - why would you need to see (on the stats page) where are they from?

I'm not saying I'm against it, just nobody will make it happen.

Signature by Rocka

Offline Jimmy

  • Honored member
  • GodLike Member
  • *
  • Posts: 11536
  • Country: cs
  • Karma: +772/-523
  • (Retired) LA Clan Chieftain
  • Awards Best B&U mod of the month 5 times [LEGENDARY] MVP Member [LEGENDARY] LA High Staff [EPIC] Lagabuse Legend Advisor Winner of 5 Photoshop Challenge Contests [EPIC] IHRL Member [RARE] Best Tours mod of the month 3 times in a row [EPIC] VIP Member [EPIC] Contributor [COMMON] B&U staff member [RARE] Hacks staff member [RARE] Tours staff member [RARE] Forum staff member [RARE] Best Hacks Moderator of the month [RARE] GodLike Tournament Member [LEGENDARY] Best Tours mod of the month 5 times in a row [LEGENDARY] Tournaments Contribution [RARE] DotA 5v5 Tournament Winner [EPIC] Pudge Wars Tournament Winner [RARE]
    • View Profile
    • Awards
Re: Country Flag
« Reply #8 on: May 23, 2015, 14:27 »
I doubt anyone will make it - why would you need to see (on the stats page) where are they from?

I'm not saying I'm against it, just nobody will make it happen.
National intolerance in making