Author Topic: [MOD]country flags of your visitors in "Who's online?" in home page  (Read 265270 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #15 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #16 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.... :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #17 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);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #18 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...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #19 on: May 18, 2005, 03:03:26 AM »
Quote
etc......
are u sure they all identical?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #20 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...   :?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #21 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)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #22 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!)

Offline Knall

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #23 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 .....

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #24 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}
MAяTRIX


Offline Hein

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #25 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!

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #26 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 -

Offline Hein

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #27 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!

Offline Smart

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #28 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.

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #29 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
MAяTRIX