dswp.de http://www.dswp.de/old/ |
|
[B3] LocalisationPlugin http://www.dswp.de/old/announcements/localisationplugin-t828-10.html |
Page 2 of 3 |
Author: | XiniX [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
hy wurst.....hab mal ne frage. es gibt ja den countryfilter, also wenn ein player auf den server kommt erscheint das Land woher er stammt. funktioniert dieses prog auch so? oder muss ich mit !locate [name] selber rausfinden? beste grüsse |
Author: | wurst [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
müsstest du selber rausfinden. es gibt (glaube ich) ein plugin dass das kann, ich persönlich würde übrigens niemals ein ganzes land ausschliessen. das ding lokalisiert direkt über den b3, also per python. übrigens: die auflösung des orts über http request und php api ist aufwendiger als es über das python im bot zu machen. naja, so hat man noch eine tolle geoIP-api mit der man supi hp effekte wie "heisse girls in deiner nähe" etc zusammenbasteln kann. was man immer braucht, ist die proprietäre DB von maxmind, die gibts einmal in neu für geld und in veraltet für umsonst... |
Author: | XiniX [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
kennst du dich damit zufällig aus? bei mir erscheint leider nur - - bei country |
Author: | JackAv [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
wurst wrote: hm, mit dem ?ip= gibst du ihm die IP, ohne die kann er nicht viel machen. hier ist übrigens noch ein besserer: dswp_tools/distance/geoip_test_api.php?ip=84.151.191.241 btw: mir schwant was das problem ist theres no php-geoip extension installed? did u download a ca. 40 MB database file and installed that php mod? Wie muss der PHP mod aufgespielt werden? Edit: abder die geoip seite auf dem dswp server sollte doch auch gehen oder? Edit2: ist proprietäre DB ein Datenbank system? wenn ja gibts da keine server software sodass das local geht? |
Author: | wurst [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
gugel --> howto install php geoip (+ dein betriebssystem) |
Author: | XiniX [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
sry man, ich bin blutiger anfänger. meine server hat ein kumpel von mir gemacht bzw alles installiert. ich will nur das wen wer kommt sein land da steht. hab den countryfilter den es bei "bigbrotherbot.com" gibt installiert, es kommt aber nur -- bei land von php und den ganzen kram hab ich null ahnung. sry is so kann das dein prog? oder kann es nur manuele abfragen steuern? |
Author: | JackAv [ 11.13.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
XiniX wrote: sry man, ich bin blutiger anfänger. meine server hat ein kumpel von mir gemacht bzw alles installiert. ich will nur das wen wer kommt sein land da steht. hab den countryfilter den es bei "bigbrotherbot.com" gibt installiert, es kommt aber nur -- bei land von php und den ganzen kram hab ich null ahnung. sry is so kann das dein prog? oder kann es nur manuele abfragen steuern? tja der kumpel bin ich^^ |
Author: | XiniX [ 11.14.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
kannst du damit was anfangen? weis ned was ich wo reinschreiben soll.....mein english is auch ned das beste ^^ <configuration plugin="countryfilter"> <settings name="commands"> <set name="cfcountry-country">40</set> </settings> <settings name="settings"> <!-- 'code': 2 character code ie: NL 'code3': 3 character code ie: NLD 'name': full name ie: Netherlands --> <set name="cf_country_print_mode">name</set> <!-- Specify Countries that will not generate messages. LAN (private ranges) = - - (but without the whitespace!) ALL Countries = all or use the Countrycode with 2 characters --> <set name="cf_message_exclude_from">none</set> <!-- You can limit the connection by using cf_allow_from, cf_deny_from, and cf_order. Please specify this by the country code of two characters. Basically, it is the same as the mod_access module of Apache. See this URL: http://httpd.apache.org/docs/mod/mod_access.html Examples: Allowing only NL and US. Others are denied: <set name="cf_order">deny,allow</set> <set name="cf_deny_from">all</set> <set name="cf_allow_from">NL US</set> Denying only US. Others are allowed: <set name="cf_order">allow,deny</set> <set name="cf_allow_from">all</set> <set name="cf_deny_from">US</set> If you want to find country codes, refer to this page. http://www.maxmind.com/app/iso3166 --> <set name="cf_order">allow,deny</set> <set name="cf_allow_from">all</set> <set name="cf_deny_from">none</set> <!-- Specify the path of GeoIP.dat file. --> <set name="cf_geoipdat_path">b3/extplugins/GeoIP/GeoIP.dat</set> </settings> <settings name="messages"> <!-- Message when player is allowed to connect. $name is replaced with player name. $country is replaced with country name. An empty message will make allowed connections silent --> <set name="cf_allow_message">^7$name ^2(Country: $country)^7 connected.</set> <!-- Message when player is denied. %(name)s is replaced with player name. %(country)s is replaced with country name. An empty message will make allowed connections silent --> <set name="cf_deny_message">^7$name ^1(Country: $country)^7 was rejected by B3.</set> <settings name="ignore"> <!-- Add a list of names of players that will be able to allways connect. Seperate names with a , --> <set name="names"></set> <!-- Add a list of IP's of players that will be able to allways connect. Seperate ip's with a , --> <set name="ips"></set> </settings> </settings> </configuration> |
Author: | JackAv [ 11.14.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
Ich kapier halt nicht was das mir apache zu tun hat. Man muss ja nirgends eine adresse angeben. |
Author: | SKracht [ 11.15.09 ] |
Post subject: | Re: [B3] LocalisationPlugin |
Ich will keineswegs Werbung für andere Foren machen, aber schau doch mal auf Tutorials.de ich bin da immer recht schnell fündig geworden oder man bekommt sehr schnell antwort. Grüßle |
Page 2 of 3 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |