Country Flags

Everything technical and nerdy stuff here plz !

Re: Country Flags

Postby wurst » 06.29.09

btw.
dswp nationalism pt II :o

nationalismus_part_2.png
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: Country Flags

Postby Deviant » 06.30.09

Seems nice :)

Hmmm how about making the flags clickable to open a list of all registered players who are from that country? Just an crappy idea :?
Image
User avatar
Deviant
Ingame Mod
 
Posts: 436
Joined: 03.03.09
Location: Finland

Re: Country Flags

Postby XTJ7 » 06.30.09

not too much nationalistic thinking in here, kenpachi :D
we are internet peoplezzz!
<XTJ7> !penis
<CuntBot> XTJ7, your penis is 23.3 cm long. 8=========D
<XTJ7> !8ball do i rock?
<CuntBot> XTJ7: OH YEAH !
<BEH> !8ball you lieing too?
<CuntBot> BEH: Totally not.
<BEH> -_-''
User avatar
XTJ7
Kanzlerin
 
Posts: 1063
Joined: 07.24.08
Location: Germany
-----tdm:  
nick: [dswp]xtj7
skill: 753.35
kills: 98
deaths: 95
ratio: 1.03

Re: Country Flags

Postby Deviant » 06.30.09

XTJ7 wrote:not too much nationalistic thinking in here, kenpachi :D
we are internet peoplezzz!


Hah, I suppose that's true. We all live under the same sky, breath the same air and and and ummm... stuff. Anyway, I'm shocked to discover that Humppalakki is actually from Germany! Does the name have some meaning in germany too since Humppa is a music genre and Lakki is a hat in finnish :O

And on a lesser sidenote; The Deviant show is starting it's 25th season with episode 1! Yes it's my birthday, yay !
Image
User avatar
Deviant
Ingame Mod
 
Posts: 436
Joined: 03.03.09
Location: Finland

Re: Country Flags

Postby wurst » 06.30.09

je i had that thought too, in the second when i included the flag on main player table i thought: humm, could be nice to klick on the flag.
maybe i include a link to national police or we play the national hymn then, midi with the good old atari/frogger + urt sounds. should be supi...

no seriously.

je sure we could set a crountry filter, we just need to pass another variable through the phpbb template but blinky did it for allready for so many...

btw: before i do that i would like to implement another thing:
generally its easily possible to get the IP of the client which is surfing the page.
sure its np to localize him too.
my idea is to print out the distance of them two, so u see an info on a player profile like: "this user is 20/200/2000 Km away from u"
maybe extra infos like "make a lan, this user is from the same city!" could be nice

background is to use the spy power to find friends and enhance teamplay, not to spy just (that classical 007-spy-behaviour)
its important to use power in a positive way, that needs to be shown...
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: Country Flags

Postby wurst » 06.30.09

oki bump...

Distance from you to the user that u look is now done.
Here a pic of how it looks like:

nationalismus_part_3.png
(2.22 KiB) Downloaded 4087 times


The code for that is quite simple
(just for reminding myself silly code beginer n00b on calculate a distance on a ball...)

Code: Select all
 
// distance calculation --> surfer <--> displayed player
 
    $surferip=$_GET['surferip'];
 
     $record = geoip_record_by_name($surferip) ;
     if($record) {
        $lat1 = $record['latitude'] ;
        $lon1 = $record['longitude'] ;
                }


    $lat2 = $row[latitude];
    $lon2 = $row[longitude];
   
   
    $distance = (6378*3.1415926*sqrt(($lat2-$lat1)*($lat2-$lat1) + cos($lat2/57.29578)*cos($lat1/57.29578)*($lon2-$lon1)*($lon2-$lon1))/180);
    $intdistance = ((int)$distance);
    $intdistancemiles = ((int)(0.621371192 * $intdistance));
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: Country Flags

Postby SvaRoX » 06.30.09

Coool well played Wurst :)
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: Country Flags

Postby Samtron » 06.30.09

wurst wrote:its important to use power in a positive way, that needs to be shown...
Wise, really!

wurst wrote:$distance = (6378*3.1415926*sqrt(($lat2-$lat1)*($lat2-$lat1) + cos($lat2/57.29578)*cos($lat1/57.29578)*($lon2-$lon1)*($lon2-$lon1))/180);
LOL!

In general: I like the distance indicator, too bad that many of you are from western and southern Germany... or even Finland ;)
Image
User avatar
Samtron
Godlike
 
Posts: 1296
Joined: 01.08.09
Location: Berlin, Germany
-----tdm:  
nick: Samtron
skill: 584.92
kills: 316
deaths: 269
ratio: 1.17

Re: Country Flags

Postby wurst » 06.30.09

wow thx svarox.
u made it, i just put it on display :)

ah, not to forget:
- can i zip the plugin and post it here with some install instructions?
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: Country Flags

Postby SvaRoX » 06.30.09

:)
Humm I will send you the zip files for the various plugins... I have to add some comments/readme/TODO before putting it online ;)
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

PreviousNext

Who is online

Users browsing this forum: No registered users and 44 guests

Misc