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

0 Members and 1 Guest are viewing this topic.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #90 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 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:


Project offline

Offline veix

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

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 #92 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.
MAяTRIX


Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #93 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...

Project offline

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 #94 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...
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 gedcom

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

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 #96 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
MAяTRIX


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #97 on: February 16, 2006, 06:40:35 PM »
@gedcom:

Is your OS Server hosting under linux or Windows Server ?

Offline gedcom

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #98 on: February 16, 2006, 07:34:50 PM »
@TheOracle

unix

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 #99 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
* V@no did homework - googling around :)


@gedcom:
1) make sure you upload any .php, .inc files in ACSII mode not in BINARY
2) follow this instructions and check the geoip.inc file
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 martrix

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


* V@no did homework - googling around :)

* martrix did read it - giggling around  :lol:
MAяTRIX


Offline djith

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

Offline djith

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

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #103 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 ...
« Last Edit: March 16, 2006, 02:40:30 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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 #104 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.
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)