dswp.de
http://www.dswp.de/old/

Country Flags
http://www.dswp.de/old/forum-gameserver-support/country-flags-t813-10.html
Page 2 of 3

Author:  wurst [ 06.29.09 ]
Post subject:  Re: Country Flags

btw.
dswp nationalism pt II :o

Attachment:
nationalismus_part_2.png
nationalismus_part_2.png [ 14.14 KiB | Viewed 4893 times ]

Author:  Deviant [ 06.30.09 ]
Post subject:  Re: Country Flags

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 :?

Author:  XTJ7 [ 06.30.09 ]
Post subject:  Re: Country Flags

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

Author:  Deviant [ 06.30.09 ]
Post subject:  Re: Country Flags

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 !

Author:  wurst [ 06.30.09 ]
Post subject:  Re: Country Flags

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...

Author:  wurst [ 06.30.09 ]
Post subject:  Re: Country Flags

oki bump...

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

Attachment:
nationalismus_part_3.png
nationalismus_part_3.png [ 2.22 KiB | Viewed 3677 times ]


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

Code:
  
// distance calculation --> surfer <--> displayed player
 
    $surferip=$_GET&#91;'surferip'&#93;;
 
          $record = geoip_record_by_name($surferip) ;
          if($record) {
                  $lat1 = $record&#91;'latitude'&#93; ;
                  $lon1 = $record&#91;'longitude'&#93; ;
                }


    $lat2 = $row&#91;latitude&#93;;
    $lon2 = $row&#91;longitude&#93;;
   
   
    $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));
 

Author:  SvaRoX [ 06.30.09 ]
Post subject:  Re: Country Flags

Coool well played Wurst :)

Author:  Samtron [ 06.30.09 ]
Post subject:  Re: Country Flags

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 ;)

Author:  wurst [ 06.30.09 ]
Post subject:  Re: Country Flags

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?

Author:  SvaRoX [ 06.30.09 ]
Post subject:  Re: Country Flags

:)
Humm I will send you the zip files for the various plugins... I have to add some comments/readme/TODO before putting it online ;)

Page 2 of 3 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/