4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: funpersian on May 08, 2005, 07:52:29 AM

Title: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: funpersian on May 08, 2005, 07:52:29 AM
hi all

This mod will show country flags of your visitors in "Who's online?" in home page !!!

demo
(https://www.sharemation.com/funpersian/23.jpg)





Visit the home page of the tools will be used in this mod:
http://www.maxmind.com/app/geoip_country
Read the licence and make sure its NOT conflicts with your usage.

Download the following files:
1) http://www.maxmind.com/download/geoip/api/php/geoip.inc
Save it in includes/ directory of your 4images installation

2) http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz <- Please Download from Attachment!
Extract the content of this archive (u can use WinZIP, WinRAR, 7-Zip or any other archivers)
Save the extracted file (GeoIP.dat) into includes/ directory (make sure u keep the case: its GeoIP.dat not geoip.dat)

3) http://www.maxmind.com/download/geoip/database/flag.zip
or
http://web.tampabay.rr.com/vano/redirect.html?flags.zip

Extract the flags (again, any compatible archivers would work, Windows XP users dont need any 3-party tools for that)
Save the files into flags/ folder in your 4images root directory.
For visitors with "unknown" or LAN IPs, save this image: (http://www.4homepages.de/forum/index.php?action=dlattach;topic=6709.0;id=35) as lan.gif into flags/ folder as well
For visitors with using satelite service, save this image: (http://www.4homepages.de/forum/index.php?action=dlattach;topic=6709.0;id=34) as a2.gif into flags/ folder.


4) Open Files :   includes/sessions.php

Find:

Code:
Code: [Select]
//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------

Add above

Code:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
    if (!class_exists("GeoIP"))
    {
      include(ROOT_PATH."includes/geoip.inc");
    }
    
    $gi = geoip_open(ROOT_PATH."includes/GeoIP.dat",GEOIP_STANDARD);
    $countries = array();
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/

Find:
Code:
Code: [Select]
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['session_user_id'];
Add after

Code:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
        $cid = geoip_country_code_by_addr($gi, $row['session_ip']);
        if (empty($cid)) $cid = "lan";
        $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
        $username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/  

Find:

Code:
Code: [Select]
$num_guests_online++;
Add after
Code:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
        $cid = geoip_country_code_by_addr($gi, $row['session_ip']);
        if (empty($cid)) $cid = "lan";
        $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
        $invitado_online_list  = "<font color=\"#00FFFF\">".$num_guests_online."</font><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$invitado_online_list ;
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/
if ($num_guests_online > 1){
$invitado_online_list .= " , ";
}

Find:

Code:
Code: [Select]
"num_guests_online" => $num_guests_online,
Add after

Code:
Code: [Select]
"invitado_online_list" => $invitado_online_list,

save changes


5?) Open templates/<your templates>/whos_online.html

Add

Code: [Select]
{invitado_online_list}
save changes


 :wink: :wink:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: artpics on May 08, 2005, 01:31:15 PM
all okay with V1.71 thank you    :) for this mod

 :wink:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: JensF on May 09, 2005, 12:33:31 AM
Works Great. Thanks for this...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ascanio on May 09, 2005, 01:09:43 AM
Ok this is a little strange hehehe in the screenshot that is on the first post the flags are showed just to say how many users there are for each country right?
I installed this mod an without modifiging the whos_online.html templates I see a flag next to the name of the user in the whos_online.html and that's cool but then I modify the whos_online.html and  with 20 user online 3 from usa and the rest form spain I just said the there was 3 from spain,2 from spain, 1 from spain :S

(http://members.cox.net/jaimeascanio/online.png)

(http://members.cox.net/jaimeascanio/online2.png)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 09, 2005, 02:33:07 AM
1) from the code above remove:
Code: [Select]
        $invitado_online_list  = "<font color=\"#00FFFF\">".$num_guests_online."</font><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$invitado_online_list ;
and
Code: [Select]
if ($num_guests_online > 1){
$invitado_online_list .= " , ";
}

2) find:
Code: [Select]
  $num_total_online = $num_registered_online + $num_guests_online;Insert above:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
  $invitado_online_list = array();
  if (!empty($countries))
  {
    asort($countries);
    foreach ($countries as $key => $val)
    {
      $invitado_online_list[] = "<font color=\"#00FFFF\">".$val."</font><img src=\"".ROOT_PATH."/flags/".strtolower($key).".gif\" align=\"middle\" alt=\"".(($key != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$key]] : "Unknown or LAN")."\" border=0>";
    }
  }
  $invitado_online_list = implode(" , ", $invitado_online_list);
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ascanio on May 09, 2005, 03:09:57 AM
Thanks !! but I get this error :S
Code: [Select]
Parse error: parse error, unexpected ')' in /home/ascanio/domains/girlsandgirls.net/public_html/includes/sessions.php on line 512
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 09, 2005, 04:21:26 AM
fixed now.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ascanio on May 11, 2005, 03:08:56 AM
thanks! now it worked :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: graficalicus on May 13, 2005, 04:07:29 PM
hmm. I get a white page when I alter sessions.php  (included below, without V@no's changes - )

Ideas what's interfering?  thx - - 8)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 13, 2005, 11:52:34 PM
maybe step 1 - 3 were not done properly? check permissions?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: callimero on May 14, 2005, 12:38:26 PM
hmmm....habe glaub ich alles so gemacht wie beschrieben, es geht aber nicht !

Fatal error: Call to undefined function: geoip_open() in /home/virtual/site249/fst/var/www/html/4_images/includes/sessions.php on line 389

was ist falsch ?

www.netzpfosten.de
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: bibabobu on May 15, 2005, 09:36:21 PM
Hi!

habe den mod denke ich korrekt installiert.
alles funktioniert.
Jedoch erhalte ich keine Flagge zu sehen sondern einen "Platzhalter" (weißes Feld) mit rotem Kreuz.
Was mache ich falsch? Kann mir jemand helfen?
Vielleicht hängt es auch damit zusammen, daß ich trasparente Gifs über die Galeriebilder als Diebstahlschutz gelegt habe.
Aber es ist doch eine andere HTML Datei (Whos_online.htm).

Bitte um Hilfe, ansonsten muß ich wohl alles rückgängig machen.

In bad english:
Could u please help me.
I ve installed the mod correctly.
but i can only see a spaceholder (red cross on white ground) instead of the flag gif.
i ve also installed transparent gif protection for gallery pics. perhaps thats the mistake. i dont know.
any ideas or solutions?
thanks
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: artpics on May 15, 2005, 11:52:33 PM
try putting the flag directory in a different folder  :wink:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: bibabobu on May 16, 2005, 12:45:57 AM
@artpics

in which folder do u mean?

i put it in the root folder /4images but there are no flags shown.

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: bibabobu on May 16, 2005, 12:59:17 AM
ok i found out.

there was a little mistake.
the flag folder in the download link was named flag.
but in the code was written flags.

it cost me a lot of time to find out.
please change that for other users of the mod in future.

now i am happy.  :mrgreen:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 16, 2005, 01:59:42 AM
ok i found out.

there was a little mistake.
the flag folder in the download link was named flag.
but in the code was written flags.

it cost me a lot of time to find out.
please change that for other users of the mod in future.

now i am happy. :mrgreen:
next time read more carefully the instructions ;)
there is nothing needs to be changed in the instructions.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: graficalicus on May 17, 2005, 05:54:31 PM
Quote
maybe step 1 - 3 were not done properly? check permissions?

hmm - - tried again - - still get a completely blank page...   :?

ah, well - - maybe a different MOD for me.... :(
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 18, 2005, 12:25:33 AM
blank page? want to see the error messages?
uncomment this line in global.php:
Code: [Select]
//error_reporting(E_ALL); (assuming u are using v1.7.1)
in v1.7 insert below the existing error_reporting line this:
Code: [Select]
error_reporting(E_ALL);
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: graficalicus on May 18, 2005, 02:55:45 AM
Code: [Select]
Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401
 etc......

and also
Code: [Select]
Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416
line 401 (and above/below:

Code: [Select]
$x = array(0,0);
    for ($i = 0; $i < 2; ++$i) {
      for ($j = 0; $j < $gi->record_length; ++$j) {
        [b]$x[$i] += ord($buf[$gi->record_length * $i + $j]) << ($j * 8);  [/b] // <=THIS IS LINE 401
      }
    }

investigating geoip.inc now......   but any ideas right off?  thx...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 18, 2005, 03:03:26 AM
Quote
etc......
are u sure they all identical?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: graficalicus on May 18, 2005, 03:18:16 AM
total messages:

Code: [Select]
Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416

 :?:    this one's beyond my know-how...   :?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on May 18, 2005, 03:30:20 AM
Quote
Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416
there something wrong with GeoIP.dat file, try to redownload it and reupload to your server (check the permissions too)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: graficalicus on May 18, 2005, 04:01:35 AM
OK - I'll try - -   <click  click clickity-click (dang!) <ctrl>+<Z> - drag....  click click....

cool! Little flags appear!

thanx v@no! That was it!

(Boys & girls - pay attention to ASCII or Binary when uploading stuff!)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Knall on June 07, 2005, 10:41:12 PM
hallo

super mod, aber weiß jemand wie ich bei der gesamtzahl nach der zahl ein leerzeichen hin bekomme ? Damit die ZAhl nicht direkt neben der Flagge steht, ich hätte auch gerne noch einen Zeilensprung damit die gesamtzahl sich etwas absetzt .....
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on June 10, 2005, 11:01:58 PM
ändere dies

Code: [Select]
<font color=\"#00FFFF\">".$num_guests_online."</font>in dies
Code: [Select]
<font color=\"#00FFFF\">".$num_guests_online." </font>
wohin möchtest du den Zeilenumbruch? Vor oder hinter den Flaggen mti Gesamtzahl?

Das kannst du aber auf jeden Fall in whos_online.html editieren... einfach <br /> vor oder hinter {invitado_online_list}
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Hein on June 12, 2005, 01:37:11 PM
Hi all,

it´s a great mod and i will really use it, but i can´t get to run.

I do all stepts (more than once), but when i save the changes in sessions.php then the gallery does not shown - only the complete code of. goip.inc and after it the error message:

Fatal error:  Call to undefined function:  geoip_open() in /home/www/web1/html/includes/sessions.php on line 37

whats wrong?

I use 4Image 1.7

Is this the mistake: ?

I have´nt this:
Code:

Code:
//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------
Add above

in my sessions.php i fond only this:
// Start Configuration

i hope sombody can help me.

thanks and greating from germany. Sorry for my bad english!
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: graficalicus on June 12, 2005, 03:19:43 PM
//----------------------------
//Start Configuration
//-----------------------------

is the same as
//Start Configuration -

(the "//" part tells the script to ignore these lines - so you can type anything in them, like hints for yourself & notes to yourself so you know what each part of the code does)

Anyway, your problem - make sure the files go in the correct folder on your server - =>download a new version of geoip and upload it to your server - you might have the problem I had, above, a corrupt file -
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Hein on June 12, 2005, 06:37:23 PM
Thanks graficalicus,  :lol:

i have done all steps more than once but now i know my mistake:

I save the geoip.inc now via "save as". Before this, i have copy all content of it in an editor-window and save this in as an file named geoip.inc.

Now is all running and i am happy about this new feature!

Thanks again and greeting from here!
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Smart on July 16, 2005, 05:28:51 PM
Hallo

erstmal ein geiler Mod finds gut das man sehen kann woher die user so kommen nicht schlecht :)

ich habe folgendes problem wollte den hack einbauen hab alles wie geschrieben gemacht bekomme aber diese meldung hier


Parse error: parse error, unexpected '{' in /home/adminjk/public_html/la/includes/geoip.inc on line 446

kann mir bitte einer helfen hab schon paar sachen probiert aber da ich nicht grad profi dadrinne bin würde ich mich freuen wenn mir einer helfen kann.

schonmal vielen dank.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on July 17, 2005, 12:11:03 AM
Hol dir noch einmal "geoip.inc" runter...
Bin mir nicht sicher, ob's hilft - das könnte es aber sein.  :D
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Smart on July 17, 2005, 12:31:22 AM
danke für die antwort

nur leider bringt das nix hab ich selber schon probiert hab alles 2 mal gemacht um zu schauen ob ich fehler  gemacht habe konnte aber keine finden und es kommt immer der gleiche fehler.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on July 17, 2005, 12:50:18 AM
hm, ich kann mir nicht vorstellen, wo der fehler sein könnte...

versuch es doch noch einmal - leere davor aber die Browser-Cache und die Cache des Proxy-Servers, falls du über LAN in's Internet gehst...

Wenn das nicht hilft, geh einfach alle Schritte noch einmal durch... :|

Da der "Fehler" in geoip.inc auftritt, kann man nur raten :(
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Smart on July 17, 2005, 12:06:47 PM
naja ich kann machen was ich will es klappt einfach nicht

habe mal die standart sessions.php genommen nachdem ich da alles geändert habe bekomme ich diese fehler meldung.

Parse error: parse error, unexpected $ in /home/adminjk/public_html/la/includes/sessions.php on line 498

Jetzt weiß ich leider nicht liegt es an diesem Mod hier und an einen anderen den ich schon früher mal eingebaut habe.

wollte dies mal mit der standarts sessions testen wo ich noch nix geändert habe wie man leider sieht klappt dies nicht.

um weiter hilfe währe ich sehr dankbar
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Vincent on July 18, 2005, 12:09:17 AM
is it possible to add them to the signature :?:
of corse yes because V@no has in his signature?

has somebody the code to do it?

sincerly
vincent
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Smart on July 20, 2005, 06:54:33 PM
das dab ich probiert klappt leider nichts ich weiß da jetzt nicht weiter ich hoffe mir kann noch einer helfen


edit: 27.7.2005

Hallo Leute

wollte nur mal sagen das ich es selber geschaft habe, trozdem großen dank an die leute die mir tips gegeben haben und helfen wollten.

MFG
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Boardy on July 27, 2005, 11:35:19 PM
Hallo


könnte mir jemand deutschen Support geben ?  Habe glaube alles so gemacht wie es da stand. Mein Englisch ist leider nicht besonders. Bei mir wird es leider nicht richtig angezeigt. Könnte mir da einer sagen was da bei mir schief gelaufen ist ?  :(



Bitte  :cry:


Siehe Bildanhang

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on July 28, 2005, 06:17:19 PM
Bei mir wird es leider nicht richtig angezeigt. Könnte mir da einer sagen was da bei mir schief gelaufen ist ?  :(
Kann es sein, dass du Firefox benutzt und die Flaggen nicht da gespeichert sind, wo sie sein sollten?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Boardy on July 28, 2005, 09:28:06 PM
Hab nochmal alles nach geschaut und habe den Fehler gefunden. Und zwar hatte ich einfach das Flag Verzeichnis auf den Server kopiert und das war der Fehler. Das Verzeichnis musste flags heißen und nicht flag, so wie es in dem Archiv des Downloads. Deshalb hat es die Flaggen nicht angezeigt gehabt. Nun gehts danke schön :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on July 28, 2005, 09:43:37 PM
na geht doch :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: bibabobu on July 29, 2005, 12:13:44 PM
stand bereits auf Seite 1 und 2 des Postings.
Hatte gleiches Problem.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Boardy on July 29, 2005, 02:18:56 PM
Naja mein Englisch ist nicht besonders deshalb wusste ich das nicht. Aber nun läufts ja *freu*  :D
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: djith on August 21, 2005, 01:16:32 PM
After doing all of this, i get a white page... i did something wrong , i'm sure of it...but what?
do i have to replace the code by the new codes or just add? and when it says add above does it mean whit a space between the codes or not ?

Help, i'm total nOOb
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on August 22, 2005, 07:21:39 PM
restore your back-ups to the state before you tried to implement this mod...

If the author says add this piece of code  above another piece of code then i looks like this before:

Quote
some piece of code blablabla don't mind...

another piece of code

and like this after

Quote
some piece of code blablabla don't mind...

this piece of code

another piece of code
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: donpedro on August 22, 2005, 11:50:00 PM
Hey,

great MOD, implemented and works fine !

thanks
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: djith on August 23, 2005, 10:36:43 AM
Thanks Matrix , will try it again :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: djith on August 23, 2005, 10:40:04 AM
euh....where is the root folder ?  :oops:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: leblover on September 04, 2005, 03:26:02 PM
i cant downloud the falg folder pls any help ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Mannheimer69 on September 04, 2005, 03:50:25 PM
i cant downloud the falg folder pls any help ?


You can use this Link: http://www.geocities.com/rochakchauhan/flag.zip

Mannheimer69
_____________
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: leblover on September 05, 2005, 07:55:51 PM
thx i just down loud it 
i wil now put it in my site
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: beseech on September 06, 2005, 06:46:36 PM
just a simply question :


How can i put this show 1 user/flag for each line ?

Example :


user 1
user 2

etc........

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: donpedro on September 10, 2005, 12:30:09 AM
Hi,

did anybody get an error when logging in as admin after installing this MOD ?

dp
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: beseech on September 10, 2005, 12:52:53 AM
nop this work fine :) i've both mods (this  and the other for admin panel) and both work fine !
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on October 06, 2005, 01:15:31 PM
i see the names of the registered users next to the flags. Can i get rid of the names ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: eZz on October 06, 2005, 09:29:22 PM
i got a little prob, the mod shos only the name of the countryes  but not the image  :?: any help?

my site address http://ez.pri.ee
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on October 07, 2005, 12:49:40 AM
i see the names of the registered users next to the flags. Can i get rid of the names ?
I guess, you could comment out this line:
Code: [Select]
        $username = (isset($row[$user_table_fields['user_level']]) && $row[$user_table_fields['user_level']] == ADMIN && $config['highlight_admin'] == 1) ? sprintf("<b>%s</b>", $row[$user_table_fields['user_name']]) : $row[$user_table_fields['user_name']];(in includes/sessions.php)

i got a little prob, the mod shos only the name of the countryes but not the image :?: any help?

my site address http://ez.pri.ee
Error 404:
http://ez.pri.ee/flags/us.gif
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on October 07, 2005, 12:50:46 PM
i see the names of the registered users next to the flags. Can i get rid of the names ?
I guess, you could comment out this line:
Code: [Select]
        $username = (isset($row[$user_table_fields['user_level']]) && $row[$user_table_fields['user_level']] == ADMIN && $config['highlight_admin'] == 1) ? sprintf("<b>%s</b>", $row[$user_table_fields['user_name']]) : $row[$user_table_fields['user_name']];(in includes/sessions.php)

works fine 
thx a lot !!!!  :D
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on October 07, 2005, 02:38:09 PM
i was too fast....

the names are gone, but the flags next to the names are still there....

can i get rid of that upper row of flags ?

(http://zedenleer.telenet.be/pics/flags.jpg)

that upper row is showing registered users that are logged in. ( with names already deleted )

i just want to see the country flags with the numbers

thx
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: JensF on October 07, 2005, 02:59:52 PM
Look this....


http://www.4homepages.de/forum/index.php?topic=7831.msg35812#msg35812
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: eZz on October 07, 2005, 04:22:36 PM
i got a little prob, the mod shos only the name of the countryes but not the image :?: any help?

my site address http://ez.pri.ee
Error 404:
http://ez.pri.ee/flags/us.gif
Quote

US is United States.gif
http://ez.pri.ee/flags/United%20States.gif

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Matthias70 on October 07, 2005, 06:01:13 PM
Hi eZz
Use this flags

http://www.hahn-hotel.com/flags/zip/world.small.zip

an rename in the code "gif" with "png" and everthing is O.K.

Matthias
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: eZz on October 07, 2005, 09:44:36 PM
ty dude   :D

now all works fine
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on October 08, 2005, 01:04:19 PM
Look this....


http://www.4homepages.de/forum/index.php?topic=7831.msg35812#msg35812

already did this, but no effect.
This is also not my problem.
My problem is that for every online registered user, there is a flag shown, (above the flags with the numbers of visitors of each country).
In the beginning there was the name of each registerd user next to those upper flags.
The name is gone because i removed some code, but the flags are still there...

(http://zedenleer.telenet.be/pics/flags.jpg)

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on October 08, 2005, 04:34:19 PM
just remove {user_online_list} from whos_online.html template...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on October 09, 2005, 10:04:24 AM
thx V@no
Title: Habe diesen mod installiert
Post by: knuffi on October 10, 2005, 10:21:17 PM
Hallo

Beim iInloggen kommt nun immer diese Fehlermeldung.

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/webandar/public_html/4images/includes/geoip.inc:495) in /home/webandar/public_html/4images/includes/sessions.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /home/webandar/public_html/4images/includes/geoip.inc:495) in /home/webandar/public_html/4images/includes/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/webandar/public_html/4images/includes/geoip.inc:495) in /home/webandar/public_html/4images/includes/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/webandar/public_html/4images/includes/geoip.inc:495) in /home/webandar/public_html/4images/includes/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/webandar/public_html/4images/includes/geoip.inc:495) in /home/webandar/public_html/4images/login.php on line 51

was ist hier falsch gelaufen.....
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Loda on October 20, 2005, 05:10:33 PM
a great mod.. thank you..
is it possible to count the flags of the users and show them in a new "statistic table"?

for example:
25 user - uk
20 user china
etc...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: beseech on October 20, 2005, 08:55:27 PM
this must be interesting like add this on stats :

(flag) + (country name) + ( Nºusers )

Good ideia Loda  ;)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Flo2005 on October 29, 2005, 02:49:08 PM
One little cosmetic correction

(http://www.snuup.de/4img_gfx/cosmetica.jpg)

I want a space without this underline  :o
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on October 29, 2005, 06:22:09 PM
I want a space without this underline  :o
Ah, you are so picky! ;)

in includes/sessions.php find:
Code: [Select]
        $username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".png"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/   
          $user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
Replace it with:
Code: [Select]
        $flag = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".png"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0>";
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/   
          $user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$flag."</a>&nbsp;<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: castor on October 29, 2005, 06:53:56 PM
@ V@no: 
          -    yeah thats good... searched also for it ..
          -    hehe .. in your code first Line at the end.. 1 space to much before  ";           :D
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Flo2005 on October 29, 2005, 06:57:50 PM
I also searched this space  :lol:

Yeah that´s fine!

=0> ";

very fine

....sometimes you must be picky  :lol:

Edit: Thanks  :mrgreen:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on November 06, 2005, 05:48:50 PM
there are still some flags missing in the flags.zip ( el salvador, honduras, suriname, ... )
i found all missing flags here : http://www.33ff.com/flags/world-flags0001.html
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: kief24 on November 06, 2005, 05:50:18 PM
Hi eZz
Use this flags

http://www.hahn-hotel.com/flags/zip/world.small.zip

an rename in the code "gif" with "png" and everthing is O.K.

Matthias

there are still some flags missing

Found them all here : http://www.33ff.com/flags/world-flags0001.html
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Vincent on November 13, 2005, 12:44:22 AM
Installed tonight and it works fine! thanks a lot!

just a small question - I would like to have the numer(of visitor) X flag

but i can't find out which part i have to change! in the middle of the second page is a change but this part of the code have been removed somewhere in the middle of the first page! hope you knwo what i mean!

sincerly vincent
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Vincent on November 15, 2005, 12:58:20 PM
it works nice -
it would be also nice to have a daily or weekly report of the country which visit the page sometimes i am realy surprised to see who found my page

sincerly
vincent
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on November 15, 2005, 01:20:32 PM
just a small question - I would like to have the numer(of visitor) X flag

ändere jeweils  ...
Quote
$invitado_online_list  = "<font color=\"#00FFFF\">".$num_guests_online." x </font><img src=\"".ROOT ...

mawenzi
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: djith on December 04, 2005, 01:02:40 AM
have these errors... realy don't know what to do.... checked everything, found an error.... i had geoip_inc.php insteed of geoip.inc.php....nevertheless.... still this error ....

[The clipboard is temporarily disabled. To restore normal function, simply close the web browser currently viewing a full size image at Avatars at Avatarcorner.com]

djeezes ... this clipboard mod works fine....

oh well... i had an error like this.... at includes blablabla line 35 ......

what to do?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on December 04, 2005, 04:56:33 AM
oh well... i had an error like this.... at includes blablabla line 35 ......

what to do?
well, for "blabblahblah" my answer would be: fix it yourself.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: waleed on December 14, 2005, 02:20:27 PM
hey vano plz i need ur help  :(

as you know am using 4images_vb35_integration

but after i installed this MOD i can only see Lan.gif flag
see the pic below 13 users with same flag
 :|

(http://www.w6w.net/upload2/14-12-2005/w6w_200512140819423dc6029e.JPG)

help plz
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on December 14, 2005, 03:17:28 PM
sorry, wthout knowing VB sturcture, I cant help you on this one. This is session manipulation, not just user related stuff - very different and more complicated.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: TheOracle on December 25, 2005, 10:07:10 PM
From the very first post, make sure you change :

Quote

$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['session_user_id'];


to :

Code: [Select]

$user_profile_link = (!empty($url_show_profile)) ? str_replace("{user_id}", $row['session_user_id'], $url_show_profile) : $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['session_user_id']);


from your sessions.php file.

Merry Christmas.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: jamstave on January 15, 2006, 12:21:13 AM
Hi..I tried to put the country flag in the comment.
what i did was

First i put this in the details.php
Code: [Select]
$main_template = 'details';


define('GET_CACHES', 1);
define('ROOT_PATH', './');
define('GET_USER_ONLINE', 1);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');

/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
    if (!class_exists("GeoIP"))
    {
      include(ROOT_PATH."includes/geoip.inc");
    }
   
    $gi = geoip_open(ROOT_PATH."includes/GeoIP.dat",GEOIP_STANDARD);
    $countries = array();
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/
if (!$image_id) {
  header("Location: ".$site_sess->url($url, "&"));
  exit;
}

Then i put this in the details.php
Code: [Select]
$comment_user_ip = ($user_info['user_level'] == GUEST) ? $comment_row[$i]['comment_ip'] : "";
      $cid = geoip_country_code_by_addr($gi, $row['session_ip']);
        if (empty($cid)) $cid = "lan";
        $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
        $comment_user_ip = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$comment_user_ip;

After i got Lan flag for all user now some one help me to show the country flag.

JameStave.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on January 15, 2006, 12:31:11 AM
At first sign replacing
Code: [Select]
$cid = geoip_country_code_by_addr($gi, $row['session_ip']);with:
Code: [Select]
$cid = geoip_country_code_by_addr($gi, $comment_row[$i]['comment_ip']);should do, but there might be more to it then that. Try though.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: jamstave on January 15, 2006, 12:46:51 AM
Thanks for help V@no now it work.
And i need to show the country name after the flag rather than alt.

Something like this
flag Canada IP

JamStave.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on January 15, 2006, 01:11:29 AM
You went so far by yourself in codding this, I'm surprised you've asked this question :P
use
Code: [Select]
(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Stoleti on January 15, 2006, 01:26:50 AM
and how make it only show name and not flag ( From: "Poland" ..) and not a image pic ...  :roll:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on January 15, 2006, 01:27:59 AM
That will show the name of the country, not the pic. If you havent noticed yet, that is the line used for alt of the flag
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Stoleti on January 15, 2006, 01:34:32 AM
i mean this show pic + (alt - country name) but i want just show country name without gif image(flag)...


default :  (flag + country name as "alt" )

i want : just the name of country without country flag ...

 8O
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on January 15, 2006, 01:53:43 AM
replace
Code: [Select]
$comment_user_ip = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$comment_user_ip;with
Code: [Select]
$comment_user_ip = (($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN");
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: MEXX on January 29, 2006, 02:56:34 PM
 Мод замечательный, но у меня некоторые сложности с показом изображения.
Когда правлю файл sessions.php, на превью картинка есть, но при открытии отображается прозрачный gif,
а не фото. В админ панели все нормально работает.
 Сделал изменения в файле details.php, чтобы в комментарии еще был и флаг, но опять ничего. Как будто ничего не менял.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Flo2005 on February 04, 2006, 08:49:27 AM
2 little questions:

a.
When I´m online on my gallery I´m allways shown as unknown (http://www.snuup.de/lite//templates/lite/images/flags/lan.gif) but why?
I tried my internet - login more than 15 times but nothing has changed I´m still shown as unknown...


b.
When I take a "mouseover" on each flag on Firefox - I don´t see the quickinfo e.g. United States or Germany of each land of the flag...

It´s nice to become help  :wink:

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: veix on February 05, 2006, 06:08:23 PM
hi all

This mod will show country flags of your visitors in "Who's online?" in home page !!!


4) Open Files :   includes/sessions.php

Find:

Code:
Code: [Select]
//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------

Add above



Find:
Code:
Code: [Select]
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['session_user_id'];
Add after

Find:

Code:
Code: [Select]
$num_guests_online++;

Find:

Code:
Code: [Select]
"num_guests_online" => $num_guests_online,
Add after



save changes


5?) Open templates/<your templates>/whos_online.html

Add

save changes


 :wink: :wink:

Thanks a lot for this mod.
But i have NONE of those codes in my sessions.php file .
How can i include those codes then ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on February 15, 2006, 06:51:40 PM
2 little questions:
ad a:
Might it be, that you're working on the same computer on which your site runs?
For visitors with "unknown" or LAN IPs, save this image:  as lan.gif into flags/

ad b
You don't see the "alternative" text on mouse-over, because the "alt" and the "title" option of the <img>tag has to be filled out... if you have just the "alt" option, firefox will show no mouseover "tooltip" text.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Flo2005 on February 15, 2006, 07:05:39 PM
ok *thx*

but for a:

I have the unknown symbol on my localhost and also when I´m online...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on February 16, 2006, 02:35:49 AM
You don't see the "alternative" text on mouse-over, because the "alt" and the "title" option of the <img>tag has to be filled out... if you have just the "alt" option, firefox will show no mouseover "tooltip" text.
Thank you for this info. I was wondering myself why FF ignores alt text...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: gedcom on February 16, 2006, 12:01:02 PM
Its a great MOD, thanks
but I get some difficulties

this warnings for guests
========================
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 98

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 106
========================

and first two warrnings when logged
========================

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 98

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/vhosts/gedcom.ru/html/www/audio/includes/geoip.inc:497) in /www/vhosts/gedcom.ru/html/www/audio/includes/sessions.php on line 98
========================

please help, where i was incorrect  installing MOD

thank you
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on February 16, 2006, 03:43:47 PM
Thank you for this info. I was wondering myself why FF ignores alt text...
FF doesn't ignore it - FF shows the alt text "under" the image untill the image gets loaded...or not :D
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: TheOracle on February 16, 2006, 06:40:35 PM
@gedcom:

Is your OS Server hosting under linux or Windows Server ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: gedcom on February 16, 2006, 07:34:50 PM
@TheOracle

unix
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on February 17, 2006, 03:24:30 AM
FF doesn't ignore it - FF shows the alt text "under" the image untill the image gets loaded...or not :D
That's right, alt is image replacement text, while title is the yellow info bar on mouse over
/me did homework - googling around :)


@gedcom:
1) make sure you upload any .php, .inc files in ACSII mode not in BINARY
2) follow this (http://www.4homepages.de/forum/index.php?topic=3378.0) instructions and check the geoip.inc file
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: martrix on February 17, 2006, 09:53:29 AM
but for a:

I have the unknown symbol on my localhost and also when I´m online...
Well my question is still:
a1) on which computer is the gallery running?
a2) from which computer do you visit the gallery?

Because - if both machines are on the same LAN or WI-FI LAN (or Whatever-local-network) or if both computers are in fact one machine with one IP (the 127.0.0.1/localhost as you say, than there will be that "unknown" symbol...

Well, but there could be another reason - your IP is not listed in the GeoIP database...
Maybe you could re-download the geoip.inc and the geoip.dat again and refresh the files in your gallery with 'em and your IP might show up with a flag...
If other visitors from the outside are shown with a flag, everything should be fine...


/me did homework - googling around :)

/me did read it - giggling around  :lol:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: djith on February 24, 2006, 02:54:27 PM
installed this mod and figured out that something is wrong on my webpage with it

when i have 12 users online there is not such as 3 (flag holland), 6 (flag belgium), 3(flag usa)

but funny enough....

1(flag holland) 2( flag holland) 3 (flag holland) 4 (flag belgium) 5(flag belgium) 6 ( flag belgium) 7 (flag belgium) 8 ( flag belgium) 9 ( flag belgium) 10 (flag usa) 11 ( flag usa) 12 ( flag usa) ,,,,,,,,,,, 

don't know where to look for in the code to correct this
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: djith on February 24, 2006, 03:03:47 PM
oh, ok it happened before on page 1 of this thread.....i fixed now :)

cool to have a forum :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on March 01, 2006, 06:20:05 PM
... for everyone who also misses flags from Nicaragua , Liechtenstein , Europe ...
... save the flag-images as ni.gif / li.gif / eu.gif in folder /flags ...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on March 21, 2006, 03:11:03 PM
That means, for some reason the visitor had their session changed after login, perhaps they had cookies blocked.
As of robots - they dont normaly use cookies, and they can use "old" sessionid or they can ignore sessionid and that means, each page they visit, will create new session.
What you see in ACP is actual "active" sessions.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: himu on March 25, 2006, 04:37:53 AM
Guys

How do I put Flag next to username in ACP Who's Online?
Can someone help me?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on March 25, 2006, 04:47:25 AM
there is another mod for that...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: himu on March 25, 2006, 06:12:52 AM
there is another mod for that...

Thanks! got it:
[MOD] Country flags (based on IP) in whos online in ACP
http://www.4homepages.de/forum/index.php?topic=6709.0
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Flo2005 on March 26, 2006, 09:07:07 PM
Mawenzi:
Quote
You don't see the "alternative" text on mouse-over, because the "alt" and the "title" option of the <img>tag has to be filled out... if you have just the "alt" option, firefox will show no mouseover "tooltip" text.

Do these changes to see quick-info of each flag also in FireFox

Find in sessions.php:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
        $cid = geoip_country_code_by_addr($gi, $row['session_ip']);
        if (empty($cid)) $cid = "lan";
        $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
        $username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/

Replace with:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
        $cid = geoip_country_code_by_addr($gi, $row['session_ip']);
        if (empty($cid)) $cid = "lan";
        $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
        $flag = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" title=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unbekannt oder LAN")."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0>";
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/

Now find:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
  $invitado_online_list = array();
  if (!empty($countries))
  {
    asort($countries);
    foreach ($countries as $key => $val)
    {
      $invitado_online_list[] = "<font color=\"#00FFFF\">".$val."</font><img src=\"".ROOT_PATH."/flags/".strtolower($key).".gif\" align=\"middle\" alt=\"".(($key != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$key]] : "Unknown or LAN")."\" border=0>";
    }
  }
  $invitado_online_list = implode(" , ", $invitado_online_list);
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/

Replace with:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
  $invitado_online_list = array();
  if (!empty($countries))
  {
    asort($countries);
    foreach ($countries as $key => $val)
    {
      $invitado_online_list[] = "<font color=\"#000000\">".$val." </font><img src=\"".ROOT_PATH."/flags/".strtolower($key).".gif\" align=\"middle\" title=\"".(($key != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$key]] : "Unknown or LAN")."\" alt=\"".(($key != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$key]] : "Unknown or LAN")."\" border=0>";
    }
  }
  $invitado_online_list = implode(" , ", $invitado_online_list);
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/

Please check out which kind of flags you´re using e.g. *.gif or *.png !

Ciao by Flo
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: wallpapers on March 27, 2006, 08:34:21 PM
Great mod i have not installed before.  8)
but i have a little problem.  :oops:

If a guest login on the site he is seeing a couple op errors

Code: [Select]
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/tunedcar/public_html/includes/geoip.inc:497) in /home/tunedcar/public_html/includes/sessions.php on line 105

Warning: Cannot modify header information - headers already sent by (output started at /home/tunedcar/public_html/includes/geoip.inc:497) in /home/tunedcar/public_html/includes/sessions.php on line 113

Warning: Cannot modify header information - headers already sent by (output started at /home/tunedcar/public_html/includes/geoip.inc:497) in /home/tunedcar/public_html/includes/sessions.php on line 113

Warning: Cannot modify header information - headers already sent by (output started at /home/tunedcar/public_html/includes/geoip.inc:497) in /home/tunedcar/public_html/includes/functions.php on line 47

Does anybody knows what the problem is.
I'm using 4images v1.7.2

You can login with user & pass: 4images on: http://www.tuned-cars.net/index.php
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on March 28, 2006, 06:10:28 AM
Edit goip.inc and remove anything above <?php and after ?> (newlines, spaces, etc)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: wallpapers on March 28, 2006, 06:23:52 AM
Quote
Edit goip.inc and remove anything above <?php and after ?> (newlines, spaces, etc)
I would write the same  :D
it is working now
thanks V@NO
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Flo2005 on April 14, 2006, 08:32:47 PM
For those who also used gif-flags I´ve redesigned and added some flags :wink:

Satellite :arrow: (http://www.snuup.de/lite/templates/lite/images/flags/a2.gif), Lan / Unknown :arrow: (http://www.snuup.de/lite/templates/lite/images/flags/lan.gif)

(http://www.snuup.de/lite/templates/lite/images/flags/ps.gif), (http://www.snuup.de/lite/templates/lite/images/flags/kw.gif), (http://www.snuup.de/lite/templates/lite/images/flags/lt.gif), (http://www.snuup.de/lite/templates/lite/images/flags/mt.gif), (http://www.snuup.de/lite/templates/lite/images/flags/ae.gif), (http://www.snuup.de/lite/templates/lite/images/flags/sy.gif), (http://www.snuup.de/lite/templates/lite/images/flags/cl.gif), (http://www.snuup.de/lite/templates/lite/images/flags/ma.gif), and some others... I can´t remeber :?

Edited 18.04.06: Europe (eu.gif) -> (http://www.snuup.de/lite/templates/lite/images/flags/eu.gif)

Edited 21.05.06: Dominican Republic (do.gif) -> (http://www.snuup.de/lite/templates/lite/images/flags/do.gif)

Edited 22.05.06: Myanmar (mm.gif) -> (http://www.snuup.de/lite/templates/lite/images/flags/mm.gif)

Edited 29.09.06: Seychelles (sc.gif) -> (http://www.snuup.de/lite/templates/lite/images/flags/sc.gif)

Edited 29.09.06: El Salvador (sv.gif) -> (http://www.snuup.de/lite/templates/lite/images/flags/sv.gif)

Edited 29.09.06: Honduras (hn.gif) -> (http://www.snuup.de/lite/templates/lite/images/flags/hn.gif)

You can download the complete package here: last updated 29.09.06 http://www.snuup.de/4img_gfx/country_flags.zip

I´ve lost some flags? flo@snuup.de or PM me here on 4homepages Forum http://www.4homepages.de/forum/index.php?action=pm;sa=send;u=9640
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Stoleti on April 20, 2006, 02:29:40 AM
I've a simply question :

How can i show Reg. users and the guest users (obviously with flags) separated ? (not together) for example show reg. and guest in 2 different tables ? :?:

And if possible show the guests list , in vertical way (1 per row)  :mrgreen:
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on April 20, 2006, 04:28:22 AM
{invitado_online_list} is for guests only
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Stoleti on April 20, 2006, 04:56:03 AM
{invitado_online_list} is for guests only

Thanks  :) and about make 1 per row (flag/nº of users) , can i added a <br> on code ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: janick on May 10, 2006, 11:15:43 AM
http://www.maxmind.com/download/geoip/database/flag.zip
or
http://web.tampabay.rr.com/vano/redirect.html?flags.zip

I can´t download it???
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on May 10, 2006, 11:38:33 AM
@ janick

... try this ... http://www.4homepages.de/forum/index.php?topic=7831.msg67436#msg67436
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ciprianmp on July 22, 2006, 12:17:05 PM
Any changes we should take into account when we upgrade to 1.7.3? I did the upgrade editing file by file, and it seems something went wrong:
Code: [Select]
Notice: Undefined variable: invitado_online_list in /home/ciprian/public_html/gallery/includes/sessions.php on line 529This is not from sessions.php as it appeared before I edited that file. Where should the variable be defined? Any ideas?
http://ciprianmp.com/gallery

Correction: Well, that message only appear when there is no guest to display, so it is not related to the upgrade (I might have had that error before, but haven't noticed it.) I'll try the fix myself, sorry.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Nicky on September 09, 2006, 01:23:30 AM
thx.
nice mod!

working fine for me.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: KurtW on September 28, 2006, 09:42:41 AM
Hi,

i have the same problem with version 1.7.3.
But the error shows everytime on "home"

Code: [Select]
Notice: Undefined variable: invitado_online_list in /home/www/web113/html/malediven/includes/sessions.php on line 516
The country flags are showing


######################################### EDIT ###############################

Problem fixed.
With the changed code from v@no in thread page1 it works fine with Version 1.7.3

############################################################################

Thanks
Kurt
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: TubeTopia on October 24, 2006, 06:23:04 AM
works fine in  1.7.4
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Jan-Lukas on February 17, 2007, 01:13:49 AM
Funktioniert SUPER, nur dann will der Bilder Download nicht mehr.
Kommt eine Fehlermeldung in der session.php Zeile 98

da steht dieses drin
Code: [Select]
session_name(urlencode(SESSION_NAME));
    session_start();
    $this->demand_session();

hier ein wenig mehr von der session.php





Code: [Select]
*    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
    if (!class_exists("GeoIP"))
    {
      include(ROOT_PATH."includes/geoip.inc");
    }

    $gi = geoip_open(ROOT_PATH."includes/GeoIP.dat",GEOIP_STANDARD);
    $countries = array();
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/
//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------

define('SESSION_NAME', 'sessionid');

$user_table_fields = array(
  "user_id" => "user_id",
  "user_level" => "user_level",
  "user_name" => "user_name",
  "user_password" => "user_password",
  "user_email" => "user_email",
  "user_showemail" => "user_showemail",
  "user_allowemails" => "user_allowemails",
  "user_invisible" => "user_invisible",
  "user_joindate" => "user_joindate",
  "user_activationkey" => "user_activationkey",
  "user_lastaction" => "user_lastaction",
  "user_location" => "user_location",
  "user_lastvisit" => "user_lastvisit",
  "user_comments" => "user_comments",
  "user_homepage" => "user_homepage",
  "user_icq" => "user_icq"
);

//-----------------------------------------------------
//--- End Configuration -------------------------------
//-----------------------------------------------------

function get_user_table_field($add, $user_field) {
  global $user_table_fields;
  return (!empty($user_table_fields[$user_field])) ? $add.$user_table_fields[$user_field] : "";
}

class Session {

  var $session_id;
  var $user_ip;
  var $user_location;
  var $current_time;
  var $session_timeout;
  var $mode = "get";
  var $session_info = array();
  var $user_info = array();

  function Session() {
    global $config;
    $this->session_timeout = $config['session_timeout'] * 60;
    $this->user_ip = $this->get_user_ip();
    $this->user_location = $this->get_user_location();
    $this->current_time = time();

    // Stop adding SID to URLs
    @ini_set('session.use_trans_sid', 0);

    session_name(urlencode(SESSION_NAME));
    session_start();
    $this->demand_session();
  }

  function set_cookie_data($name, $value, $permanent = 1) {
    $cookie_expire = ($permanent) ? $this->current_time + 60 * 60 * 24 * 365 : 0;
    $cookie_name = COOKIE_NAME.$name;
    setcookie($cookie_name, $value, $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE);
  }

  function read_cookie_data($name) {
    global $HTTP_COOKIE_VARS;
    $cookie_name = COOKIE_NAME.$name;
    return (isset($HTTP_COOKIE_VARS[$cookie_name])) ? $HTTP_COOKIE_VARS[$cookie_name] : false;
  }

  function get_session_id() {
    if (SID == '') {
      $this->mode = "cookie";
    }

    $this->session_id = session_id();
  }

  function demand_session() {
    $this->get_session_id();
    if (!$this->load_session_info()) {


hoffe es kann einer helfen
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Gibsy on March 22, 2007, 10:10:43 AM
Hallo,

kann mir jemand sagen was da nicht stimmt :?: und die kommas dahinter, das vertehe ich nicht, bitte um Hilfe.
(http://www.gibsy.com/dim/gibsy_files/Bild6.gif)

später:
(http://www.gibsy.com/dim/gibsy_files/Bild7.gif)


by Gibsy
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: egoplawi on June 20, 2007, 05:48:36 PM
Hallo!

Habe gerade diesen Mod installiert. Funktioniert einwandfrei. Vielen Dank!

Thanx for this mod. It works fine.

Egoplawi
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: AntiNSA2 on June 29, 2007, 06:35:37 AM
Starting completely from scratch and remodding everything grrrr...

Havent seen this question... how can we show flags for guests to and not just registered users?

If its simple excuse me I have been oout of the loop for a year-

Thanks!
Robert
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Po4emu4Man on June 29, 2007, 11:29:11 AM
Hallo,

kann mir jemand sagen was da nicht stimmt :?: und die kommas dahinter, das vertehe ich nicht, bitte um Hilfe.
(http://www.gibsy.com/dim/gibsy_files/Bild6.gif)

später:
(http://www.gibsy.com/dim/gibsy_files/Bild7.gif)


by Gibsy

I have the same problems with ", , , , , ,"
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: AntiNSA2 on June 29, 2007, 11:53:17 AM
Starting completely from scratch and remodding everything grrrr...

Havent seen this question... how can we show flags for guests to and not just registered users?

If its simple excuse me I have been oout of the loop for a year-

Thanks!
Robert

If it helps I am using version 1.7.4 and can not see any flags of any users unless logged in as a registered user-- I just upgraded from 1.7.0...

I wish rproctor and all those lost posts were here....
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Gibsy on July 06, 2007, 09:32:33 PM
(http://www.gibsy.com/dim/gibsy_files/Bild6.gif)
(http://www.gibsy.com/dim/gibsy_files/Bild7.gif)

Kann mir da jemand weiter helfen :oops:
Ich habe es nochmals versucht und wieder das gleiche :cry:
Es ist vieles auf Englisch geschrieben und ich weiß nicht warum die Länderfahnen nicht angezeigt werden.
Es steht immer Unknown or LAN.

Weiß da jemand einen rat oder der alles auf Deutsch erklärt, ich danke im voraus für die mühe, LG Gibsy
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: AntiNSA2 on July 07, 2007, 04:24:11 AM
And if you are helping him and know why I have no flags for guests pleasae let me know....
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Nasenbär on July 08, 2007, 08:33:12 AM
Hallo Leute

Benutze noch Version 1.7  :wink:. Habe alles so installiert wie im Eingangsposting beschrieben! Funzt auch soweit ganz gut, nur wenn ihr das Bild anschaut, kann da was net stimmen !?

Es sind insgesamt 4 User Online .... 4 davon auch Germany, 3 aus USA, 2 aus USA, 1 aus USA und die ganzen Kommas am Schluss !?

Könnt ihr mir da bitte bitte helfen  :) :)

Vielen Dank
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: KurtW on July 08, 2007, 09:03:00 AM
Hallo Gibsy,

ist die 4images Userverwaltung kombiniert mit phpbb :?:

Falls ja, entsteht der Fahler daraus.
Den Fehler hatte ich damals auch, und nach etlichen Stunden/Tagen von Fehlversuchen
aufgegeben.
 :cry:
Gruß
Kurt
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Nasenbär on July 08, 2007, 10:41:12 AM
Quote
Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416
there something wrong with GeoIP.dat file, try to redownload it and reupload to your server (check the permissions too)

Hi Vano

what is the correct permissions for GEOIP.dat ?? Is this Pic OK ??

THX  :)
Title: Re: Komma Fehler
Post by: Nasenbär on July 08, 2007, 11:00:04 AM
zuerst ein danke schön für dieses tolle script.

ich habe dies erfolgreich installiert, leider habe ich noch ein kleines detail zur korrektur:

bei der webseite http://gallery.vano.org/en/ (http://gallery.vano.org/en/) wird nach jeder flagge ein komma gesetzt.

auf meiner seite http://www.bildergallery.com (http://www.bildergallery.com) wird nur am schluss ein komma gesetzt.

was ist hier falsch, wie kann ich dies ändern, dass nach jeder flagge ein komma gesetzt wird.


danke für die hilfe, grüsse ivan graf

Den selbern Fehler habe ich leider auch - bitte um HILFE  :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Nasenbär on July 08, 2007, 05:34:15 PM
@Nasenbär, Po4emu4Man

schaut hier
http://www.4homepages.de/forum/index.php?topic=7831.msg51895#msg51895

ich benutze dies (firefox tauglich)
http://www.4homepages.de/forum/index.php?topic=7831.msg65857#msg65857

ich habe übigens für die geoip keine speziellen rechten gesetzt. hast du eine fehlermeldung?

gruss ivan

Hallo

Ich benutze Firefox und IE !! Nur das mit den Kommas funzt net  :? :cry:

Hier weiterlesen : http://www.4homepages.de/forum/index.php?topic=7831.msg95727#msg95727

THX for Help  :wink: :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Gibsy on July 09, 2007, 10:57:03 AM
Hallo Gibsy,

ist die 4images Userverwaltung kombiniert mit phpbb :?:

Falls ja, entsteht der Fahler daraus.
Den Fehler hatte ich damals auch, und nach etlichen Stunden/Tagen von Fehlversuchen
aufgegeben.
 :cry:
Gruß
Kurt

Hallo Kurt,
ja, bei mir ist phpbb mit 4images integriert, wenn es deshalb nicht funktioniert dann weiß ich wenigstens
das ich kein fehler gemacht habe :wink:

Schade eigendlich, muß ich halt wieder rausnehmen, Danke nochmals für deine mühe Kurt

LG Gibsy
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Koosje on August 12, 2007, 08:49:38 PM
If I use this mod I cannot login anymore.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: thunderstrike on August 14, 2007, 12:08:54 AM
Quote
If I use this mod I cannot login anymore.

... Is do - precise error ... ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Koosje on August 14, 2007, 05:41:12 PM
Blank page!
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: KurtW on August 14, 2007, 05:56:50 PM
Hi Koosje,

 :lol: :lol:
Do you think, any one can help you with this infos about your page and problems:

Quote
If I use this mod I cannot login anymore.
Quote
Blank page!


Kurt
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: thunderstrike on August 14, 2007, 06:04:10 PM
In global.php file, use error_reporting. Go back to MOD page. See if error message show.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on September 06, 2007, 06:05:46 PM
Is this version compatible with 4images 1.7.4 ? and if any one check it then plz tell me so i can use it for my gallery: www.deskbeauty.com
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on September 08, 2007, 05:42:02 PM
Is this version compatible with 4images 1.7.4 ? and if any one check it then plz tell me so i can use it for my gallery: www.deskbeauty.com
Will anyone plz help and tell me how to show online users on all pages, currently my site only shows Whos online on Homepage, plz tell me how to setup it to show online users also on category pages ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on September 10, 2007, 03:24:55 AM
I have did everything right but i am getting flags broken image and it shows in double, will anyone plz help ?

Visit: www.deskbeauty.com  and see footer.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on September 10, 2007, 10:56:22 AM
... this is the url of one of your flags : http://www.deskbeauty.com/flags/us.gif ...
... but there is not a flag with this extension, it is not the right url ... !
... are your flags in the folder : http://www.deskbeauty.com/flags/ ... ? ... yes ... !

... but your flags are png-images not gif-images ... !
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on September 10, 2007, 05:24:20 PM
You are right bro i have png flag files so it was showing broken bcoz i put .gif extension in code but now i have changed gif extension to png and flags are showing but at end it is displaying quma,s like this , , , , , , ,

Should i have to put gif flag files then it will correct it or i have some mistake in sessions.php ?
Plz help as u before did, i will be very thankfull.

Visit: www.deskbeauty.com  and check footer
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on September 12, 2007, 03:41:43 AM
You are right bro i have png flag files so it was showing broken bcoz i put .gif extension in code but now i have changed gif extension to png and flags are showing but at end it is displaying quma,s like this , , , , , , ,

Should i have to put gif flag files then it will correct it or i have some mistake in sessions.php ?
Plz help as u before did, i will be very thankfull.

Visit: www.deskbeauty.com  and check footer

Will anyone plz help why ,,, quomas are showing after alll user flags, as the default is after every flag a ,, quma should be displayed but at my site quomas are showing after all user flags, plz tell me what i did wrong with code and what to do now ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: thunderstrike on September 12, 2007, 03:56:55 AM
In includes/sessions.php file,

have this ?

Quote
$user_online_list .= ($user_online_list != "") ? ", " : "";
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on September 13, 2007, 02:15:04 AM
Everything is working good and flags are also visible but after all user flags it show quomas,,,
As by default after every user flag there is a quoma, but quomas or appearing after all user flags.

Check: www.deskbeauty.com  and go to footer

and plz help me how to get out these quomas ,,,, ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: thunderstrike on September 13, 2007, 04:05:28 AM
Ok but question no answer for mine ...

In includes/sessions.php file,

have this ?

Quote
$user_online_list .= ($user_online_list != "") ? ", " : "";
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: skiemor on September 28, 2007, 05:20:25 PM
Everything is working good and flags are also visible but after all user flags it show quomas,,,
As by default after every user flag there is a quoma, but quomas or appearing after all user flags.

Check: www.deskbeauty.com  and go to footer

and plz help me how to get out these quomas ,,,, ?

sessions.php
Um Zeile 493 oder 494: nimm' das Komma aus den Gänsefüßchen raus.
if ($num_guests_online > 1){
$invitado_online_list .= "hier das Komma raus ";
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: skiemor on September 28, 2007, 06:48:46 PM
Hallo, ich habe jetzt bei drei Gästen aus Deutschland drei Flaggen in der Anzeige:
3 flag 2 flag 1 flag. Cooler wäre es, wenn nur eine Flagge angezeigt würde und davor (besser noch dahinter) die Anzahl 3.
Kann mir jemand sagen, was ich dazu ändern muss. Inzwischen setze ich meine Suche danach fort. Es scheint ja irgendwie zu gehen. ;-)

Wer suchet, der findet:

http://www.4homepages.de/forum/index.php?topic=7831.msg35812#msg35812

Gruß.


Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: jilla on September 28, 2007, 06:50:11 PM
thanx a lot!  :wink:

__
http://ksavary.com (http://ksavary.com) -- dream means sogn
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: skiemor on September 28, 2007, 08:28:46 PM
Hallo, Besucher aus Deutschland, die mit AOL surfen, kriegen die Ami-Flagge verpasst. ;-)
Kann man das ändern?

Gruß.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on September 29, 2007, 12:48:50 AM
@skiemor
... nicht mehr alle ... ;)
... über die IP wird der Standort des Providers ermittelt und der ist bei AOL nun mal irgendwo in Kansas ...
... da aber Alice bei AOL-D eingestiegen ist, werden bereits einige IPs mit Standort Hamburg vergeben ...
... du kannst also AOL-Surfer mit D- oder US-Flagge haben ...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: skiemor on September 29, 2007, 11:00:39 AM
@mawenzi, danke für die Info. ;-)

@skiemor
... nicht mehr alle ... ;)
... über die IP wird der Standort des Providers ermittelt und der ist bei AOL nun mal irgendwo in Kansas ...
... da aber Alice bei AOL-D eingestiegen ist, werden bereits einige IPs mit Standort Hamburg vergeben ...
... du kannst also AOL-Surfer mit D- oder US-Flagge haben ...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mathuatden on October 17, 2007, 05:22:31 AM
How can work with 4images1.7.4?
I have a blank page when hack this mod, who can send me session.php file (v1.7.4)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: thunderstrike on October 17, 2007, 01:04:12 PM
Quote
who can send me session.php file (v1.7.4)

You can download fresh copy of 4images and use sessions.php file ...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mathuatden on October 17, 2007, 02:06:07 PM
I want session.php file (v1.7.4)  which was hack this mod
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Omsky on November 20, 2007, 09:21:15 AM
mini fix  :mrgreen:

change in mod code .../includes/sessions.php
find
Code: [Select]
alt=
replace to
Code: [Select]
title=
alt= not worked in Mozilla FireFox.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: thunderstrike on November 20, 2007, 01:50:35 PM
No need for replace. Add title with alt. ;)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: orb4 on December 02, 2007, 07:32:58 PM
Hello, this mod works great in 1.7.4, thank you!

I also wanted to add flags in comments like here :
http://www.4homepages.de/forum/index.php?topic=7831.msg57237#msg57237

jamstave says he put 2nd part of the code also in details.php; yes, but where?

All this code is only for details.php? There is not any code in comment_bit.html?

but no flag appears in comments for me.
Please, help me, HOW to proceed simply with this code?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: shadowhunter on December 09, 2007, 08:15:53 PM
Hallo!
Kann ich dasselbe mit diesem GeoIP machen, wenn ich anstatt eine IP-Adresse das ganze Land (z.B. Germany) habe?
Sodass das ausgeschrieben Land, welches in der Datenbank liegt, das Country Flag anzeigen?
Wird dies überhaupt mit diesem Script zugelassen?
Ich habe etwas probiert, aber es wird nur das Land anstatt das Flag angezeigt:
Code: [Select]
//--- User COUNTRY FLAGS ---
    if (!class_exists("GeoIP"))
    {
      include(ROOT_PATH."includes/geoip.inc");
    }
    $gi = geoip_open(ROOT_PATH."includes/GeoIP.dat",GEOIP_STANDARD);
    $countries = array();
    //$cid = geoip_country_names($gi, $user_row['user_country']);
    $cid = $user_row['user_country'];
    if (empty($cid)) $cid = "lan";
    $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
    $user_flag = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".png"."\" style=\"vertical-align:text-bottom\" alt=\"".$cid."\"  title=\"".$cid."\" border=0>";
   //--- User COUNTRY FLAGS ---

Bin dankbar für eure Hilfe!
Gruss
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Pedrocas on March 20, 2008, 05:25:34 PM
Does anybody knows if this MOD works with version 1.7.6?

Thanks,
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: shadowhunter on March 21, 2008, 04:19:40 PM
Does anybody knows if this MOD works with version 1.7.6?
Yes, this MOD works perfectly with 1.7.6!
Greetings
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: sanko86 on April 29, 2008, 01:10:00 PM
Thanks perfect
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: axlrose on September 06, 2008, 05:20:03 AM
Having problem here with the user and visitors online not accurate?
Anyone could help me here to fix this problem?

Attached herewith a print screen for reference, thank you!
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on September 06, 2008, 06:55:38 PM
Did you add any codes besides the code from the very first post?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: axlrose on September 08, 2008, 12:09:24 PM
Did you add any codes besides the code from the very first post?

Already fix the problem...
but, i can't see this below: 

For visitors with "unknown" or LAN IPs, save this image:  as lan.gif into flags/ folder as well
For visitors with using satelite service, save this image: as a2.gif into flags/ folder.


Any settings to improved here?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on September 08, 2008, 01:42:31 PM
Sorry, you can't see the images? or what?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: d1eter on September 09, 2008, 08:01:54 AM
just implement it..
cool mod..!!

 :P
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 07, 2008, 04:01:10 AM
How to show all users with one flag, for example if 3users are from india then it shows
User1: Indian Flag
User2: Indian Flag
User3: Indian Flag
Now i want that it show 3 users with only one indian flag ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 08, 2008, 02:45:29 AM
How to show all users with one flag, for example if 3users are from india then it shows
User1: Indian Flag
User2: Indian Flag
User3: Indian Flag
Now i want that it show 3 users with only one indian flag ?

Anyone here to plz help with showing one country related user with one flag ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on November 08, 2008, 01:31:54 PM
... strange ...
... my mod instalation do that ...
... I think there is some missing code in your installation and you should check your code ...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 08, 2008, 04:52:41 PM
... strange ...
... my mod instalation do that ...
... I think there is some missing code in your installation and you should check your code ...

Dear i just want that assume when 5 users are online from a country then they all show under one flag i mean
5-China Flag (it show five users are online from china)

Instead all five users with flags like
1-China Flag
2-China Flag
3-China Flag
4-China Flag
5-China Flag

Is it possible ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on November 08, 2008, 05:53:32 PM
remove
Code: [Select]
          $user_online_list .= ($user_online_list != "") ? ", " : "";

replace
Code: [Select]
        $username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
with:
Code: [Select]
        $username_c[$cid][] = "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;


Remove:
Code: [Select]
          $user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;

Find:
Code: [Select]
    $invitado_online_list  = "<font color=\"#00FFFF\">".$num_guests_online."</font><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$invitado_online_list ;
Replace with:
Code: [Select]
    $username_c[$cid]['guest'] = isset($username_c[$cid]['guest']) ? $username_c[$cid]['guest']+1 : 1;

Find:
Code: [Select]
  $num_total_online = $num_registered_online + $num_guests_online;
Insert below:
Code: [Select]
/*
  MOD VISITORS COUNTRY FLAGS
  START INSERT
*/
  if (!isset($username_c)) $username_c = array();
  $lang['guest'] = "guest";
  $lang['guests'] = "guests";
  foreach ($username_c as $cid => $array)
  {
    $user_online_list .= ($user_online_list != "") ? "; " : "";
    $user_online_list .= "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ";
    if (isset($array['guest']))
    {
      $user_online_list .= $array['guest']." ".$lang['guest'.($array['guest'] > 1 ? "s":"")];
      unset($array['guest']);
      $user_online_list .= (count($array)) ? ", " : "";
    }
    $user_online_list .= implode(", ", $array);
  }
/*
  MOD VISITORS COUNTRY FLAGS
  END INSERT
*/


{invitado_online_list} no longer used.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: metal_brain on November 09, 2008, 01:37:44 PM
great Mod thanks :)
working perefectly
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 09, 2008, 10:03:56 PM
i am gettings this error while coding to show one country related users with one flag.

Warning: Invalid argument supplied for foreach() in /hsphere/local/home/mydomain/mydomain.com/includes/sessions.php on line 743

file is attached.

Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on November 09, 2008, 10:41:11 PM
above
Code: [Select]
  foreach ($username_c as $cid => $array)
insert:
Code: [Select]
if (!isset($username_c))
  $username_c = array();
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 12, 2008, 02:05:43 AM
Thanks for reply,
I had mad changes as you said and this error i gone
Warning: Invalid argument supplied for foreach() in /hsphere/local/home/mydomain/mydomain.com/includes/sessions.php on line 743

but the flags are still showing differently i mean one flag for all users related to a contry.
i have attached the session and htaccess files
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on November 12, 2008, 02:47:42 AM
The error you've showed in your last post is exactly the same as in previous post, this mean you didn't change the file on the server. The attached file is modified and ok, on the server was not.
Since I don't have a public site, all I could test your attached file was with 4 users from two different IPs, so that looked fine - one flag for two users from the same IP.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 12, 2008, 09:02:53 AM
Dear i am thankfull to you but you didnt read my last post clearly as i said that the error is gone but one flag for a country users is not working, check it here: www.deskbeauty.com
The session and htacces fiels which i attached in last post same i am using at DeslBeauty.com but the problem is still there: visit www.deskbeauty.com and see footer.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 14, 2008, 02:04:05 AM
Dear i am thankfull to you but you didnt read my last post clearly as i said that the error is gone but one flag for a country users is not working, check it here: www.deskbeauty.com
The session and htacces fiels which i attached in last post same i am using at DeslBeauty.com but the problem is still there: visit www.deskbeauty.com and see footer.

Dear plz help
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on November 14, 2008, 07:36:22 AM
Sorry for the delay.

I've updated my post with the changes, and attached your fixed sessions.php to this post.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 14, 2008, 04:21:46 PM
Sorry for the delay.

I've updated my post with the changes, and attached your fixed sessions.php to this post.

Thanks but your attached file is not working it only show currently online users without details and flags, check it here and see footer:
http://www.deskbeauty.com
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@no on November 14, 2008, 04:32:03 PM
oh, as I mentioned in my post at previous page {invitado_online_list} no longer used. Use {user_online_list}
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 14, 2008, 05:24:43 PM
oh, as I mentioned in my post at previous page {invitado_online_list} no longer used. Use {user_online_list}
Sory for asking again and again but plz tell where to put {user_online_list}
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: V@nо on November 14, 2008, 07:09:43 PM
in whois_online template
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on November 15, 2008, 02:13:45 AM
in whois_online template
Thanks its working.
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Falldog on December 02, 2008, 12:04:10 AM
Would someone mind taking a look at my sessions.php and editing it so it says flagx2 instead of flag, flag, flag etc?

I tried modifying the script but instead of my site coming up I just get a blank page.

Thanks in advance!
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: ashfaq on January 09, 2009, 09:12:06 AM
How can we show who is online with flags at category.html or footer to show on all pages, is it possible ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: KurtW on February 10, 2009, 05:14:28 PM
After doing all of this, i get a white page... i did something wrong , i'm sure of it...but what?
do i have to replace the code by the new codes or just add? and when it says add above does it mean whit a space between the codes or not ?

Help, i'm total nOOb


Hi,

i now, this is a old posting.
but today i had also this problem with the white page.
=> upload the "GeoIP.dat" in BINARY MODE

Für Probleme nach dem Einbau mit einer weissen Startpage:
=> die "GeoIP.dat" im BINARY MODE hochladen


Gruss
Kurt
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: AntiNSA2 on March 11, 2009, 04:54:49 AM
How hard would it be to use a google map to geocode visitors and show them on a small google map on the front page of current visitors? I mean if yiou can find the location and place a flag?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on March 11, 2009, 09:46:56 AM
@ AntiNSA2

... you need a max-mind-db ... about 10gb ... and a little bit of code ...
... or use Kurts [Mod] IP Spy: User location in googlemap / User Standort in Google Map ...
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: AntiNSA2 on March 11, 2009, 10:10:16 AM
I dont understand... with yahoo pipes you can geocode rdd feeds.... google mapds offer the api...
geocode.ip offers country information... and you can see the IP in many posts...


In fact in a lot of signatures you can see the persons ip address... and a little man holding up a sighn that says the name of the city the visitor is from...

Its nots that hard to install the google map....

Google has the databse...

How hard is it to make everything meet?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: mawenzi on March 11, 2009, 10:24:39 AM
... you are right ... Its not that hard to install ... but to write a installations discription for every one ... ;)
... btw ...
... a very fast solution you find here ... very nice little animated world maps ...
-> http://www.geo-loc.com/index_en.php?lg=en
-> http://www.geo.dianacht.de
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: AntiNSA2 on March 11, 2009, 03:26:39 PM
Ah it is beyond me :) I am fighting jus tto get the mods done with instructions :)
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: votebea1 on June 25, 2009, 07:51:56 PM
Hi everybody,

I installed exactly like 'funpersian' explain.
I don't get any error, but works only with registered user.
I'm using a 177 version of 4mages with black II template.
Please ,somebody can help me to see the flags of all visitors including members?

Best regards,
votebea1

www.votebeautifulgirls.com
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Bodzio on December 16, 2009, 01:23:02 AM
I also have a problem with the flags. It works fine with showing registered user flags, but it doesn't work good with guests: http://www.bonjovi.pl/galeria/index.php

3 gości online. (3 z United States 2 z United States 1 z United States , , )  - it should just say "3 z United States"...

Any adivice?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: x23piracy on October 21, 2010, 03:51:19 AM
Hi,

for me this is a much more cleaner setup:

Code: [Select]
     $invitado_online_list[] = "<font color=\"#303030\">".$val." </font><img src=\"".ROOT_PATH."/flags/".strtolower($key).".gif\" align=\"absmiddle\" alt=\"".(($key != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$key]] : "Unknown or LAN")."\" border=0>";
ein Leerzeichen hinter die Anzahl der Besucher aus Land X:

davor:
Code: [Select]
<font color=\"#303030\">".$val."</font>
danach:
Code: [Select]
<font color=\"#303030\">".$val." </font>
die ausrichtung der grafik zum text wirklich annähernd mittig:

davor:
Code: [Select]
align=\"middle\"
danach:
Code: [Select]
align=\"absmiddle\"
in der whos_online.html habe ich das ganze dann noch in eine tabelle gesetzt,
ich wollte die aufzählung der flaggen rechts haben:

Code: [Select]
{lang_user_online_detail}
<br />
<div align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td>{user_online_list}</td>
<td align="right">{invitado_online_list}</td>
</tr>
</table>
</div>

Das sieht dann so aus:
(http://www.xup.in/pic,12424464/temp.png) (http://www.xup.in/dl,12424464/temp.png/)

wer das komma (,) noch los werden will macht das:

davor:
Code: [Select]
  $invitado_online_list = implode(" , ", $invitado_online_list);
danach:
Code: [Select]
  $invitado_online_list = implode(" ", $invitado_online_list);
Das sieht dann so aus:
(http://www.xup.in/pic,67844718/temp.png) (http://www.xup.in/dl,67844718/temp.png/)


Gruß Jens
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Jan-Lukas on January 11, 2012, 05:51:50 PM
Hi,
Das Zip * GeoIP.dat.gz im ersten Posting enthält nur einen leeren Ordner "GeoIP.dat", gehört da nicht eine Datei rein ?
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Rembrandt on January 11, 2012, 06:28:47 PM
Hi,
Das Zip * GeoIP.dat.gz im ersten Posting enthält nur einen leeren Ordner "GeoIP.dat", gehört da nicht eine Datei rein ?
Wie es aussieht haben die ihre Files geändert, den ersten Post habe ich editiert.
Die *zip Files im Anhang sind in Ordnung.

mfg Andi
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Jan-Lukas on January 11, 2012, 06:39:13 PM
Hi,
Das Zip * GeoIP.dat.gz im ersten Posting enthält nur einen leeren Ordner "GeoIP.dat", gehört da nicht eine Datei rein ?
Wie es aussieht haben die ihre Files geändert, den ersten Post habe ich editiert.
Die *zip Files im Anhang sind in Ordnung.

mfg Andi

Da hatte ich auch schon gesucht, trotzdem ist das GeoIP.dat.gz im Anhang bis auf einen Ordner Namens "GeoIP.dat" leer.
Ist das so richtig, das da nur ein Ordner drin ist, und der in den include Ordner gehört, oder fehlt da doch eine Datei ??
Wäre ja blöd ein Zip mit einem leeren Ordner zu machen, da hätte dann der Spruch gereicht einen Ordner zu erstellen ;)

LG

Harald
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Rembrandt on January 11, 2012, 06:59:06 PM
...Da hatte ich auch schon gesucht, trotzdem ist das GeoIP.dat.gz im Anhang bis auf einen Ordner Namens "GeoIP.dat" leer.
...
dreh mal deinen downloadmanager ab falls du einen an hast.
im Anhang sind in der geoip.zip die datei "geoip.inc" und in der geoip.dat.gz die datei "geoip.dat" enthalten, keine ordner.

mfg Andi
Title: Re: [MOD]country flags of your visitors in "Who's online?" in home page
Post by: Jan-Lukas on January 11, 2012, 08:27:46 PM
OK, mit dem richtigen Entpacker geht es dann  :wink:

Danke