//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------
/*
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
*/
$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'];
/*
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
*/
$num_guests_online++;
/*
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 .= " , ";
}
"num_guests_online" => $num_guests_online,
"invitado_online_list" => $invitado_online_list,
{invitado_online_list}
$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 ;
andif ($num_guests_online > 1){
$invitado_online_list .= " , ";
}
$num_total_online = $num_registered_online + $num_guests_online;
Insert above:/*
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
*/
Parse error: parse error, unexpected ')' in /home/ascanio/domains/girlsandgirls.net/public_html/includes/sessions.php on line 512
ok i found out.next time read more carefully the instructions ;)
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:
maybe step 1 - 3 were not done properly? check permissions?
//error_reporting(E_ALL);
(assuming u are using v1.7.1)error_reporting(E_ALL);
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......
Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416
$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
}
}
etc......are u sure they all identical?
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
Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416there something wrong with GeoIP.dat file, try to redownload it and reupload to your server (check the permissions too)
<font color=\"#00FFFF\">".$num_guests_online."</font>
in dies<font color=\"#00FFFF\">".$num_guests_online." </font>
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?
some piece of code blablabla don't mind...
another piece of code
some piece of code blablabla don't mind...
this piece of code
another piece of code
i cant downloud the falg folder pls any help ?
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:
$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?Error 404:
my site address http://ez.pri.ee
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?Error 404:
my site address http://ez.pri.ee
Look this....
http://www.4homepages.de/forum/index.php?topic=7831.msg35812#msg35812
I want a space without this underline :oAh, you are so picky! ;)
$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: $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> <a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
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
just a small question - I would like to have the numer(of visitor) X flag
$invitado_online_list = "<font color=\"#00FFFF\">".$num_guests_online." x </font><img src=\"".ROOT ...
oh well... i had an error like this.... at includes blablabla line 35 ......well, for "blabblahblah" my answer would be: fix it yourself.
what to do?
$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'];
$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&".URL_USER_ID."=".$row['session_user_id']);
$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;
}
$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;
$cid = geoip_country_code_by_addr($gi, $row['session_ip']);
with:$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.
(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")
$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$comment_user_ip = (($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN");
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:
2 little questions:ad a:
For visitors with "unknown" or LAN IPs, save this image: as lan.gif into flags/
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...
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
FF doesn't ignore it - FF shows the alt text "under" the image untill the image gets loaded...or not :DThat's right, alt is image replacement text, while title is the yellow info bar on mouse over
but for a:Well my question is still:
I have the unknown symbol on my localhost and also when I´m online...
/me did homework - googling around :)
there is another mod for that...
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.
/*
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
*/
/*
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
*/
/*
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
*/
/*
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
*/
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
Edit goip.inc and remove anything above <?php and after ?> (newlines, spaces, etc)I would write the same :D
{invitado_online_list} is for guests only
Notice: Undefined variable: invitado_online_list in /home/ciprian/public_html/gallery/includes/sessions.php on line 529
This is not from sessions.php as it appeared before I edited that file. Where should the variable be defined? Any ideas?Notice: Undefined variable: invitado_online_list in /home/www/web113/html/malediven/includes/sessions.php on line 516
The country flags are showing session_name(urlencode(SESSION_NAME));
session_start();
$this->demand_session();
* (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()) {
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
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
(http://www.gibsy.com/dim/gibsy_files/Bild6.gif)
(http://www.gibsy.com/dim/gibsy_files/Bild7.gif)
QuoteFatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416there something wrong with GeoIP.dat file, try to redownload it and reupload to your server (check the permissions too)
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
@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 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
If I use this mod I cannot login anymore.
If I use this mod I cannot login anymore.
Blank page!
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.comWill 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 ?
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
$user_online_list .= ($user_online_list != "") ? ", " : "";
In includes/sessions.php file,
have this ?Quote$user_online_list .= ($user_online_list != "") ? ", " : "";
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 ,,,, ?
@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 ...
who can send me session.php file (v1.7.4)
alt=
title=
//--- 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 ---
Does anybody knows if this MOD works with version 1.7.6?Yes, this MOD works perfectly with 1.7.6!
Did you add any codes besides the code from the very first post?
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 ?
... strange ...
... my mod instalation do that ...
... I think there is some missing code in your installation and you should check your code ...
$user_online_list .= ($user_online_list != "") ? ", " : "";
$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: $username_c[$cid][] = "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
$user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
$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: $username_c[$cid]['guest'] = isset($username_c[$cid]['guest']) ? $username_c[$cid]['guest']+1 : 1;
$num_total_online = $num_registered_online + $num_guests_online;
Insert below:/*
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
*/
foreach ($username_c as $cid => $array)
insert:if (!isset($username_c))
$username_c = array();
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.
Sorry for the delay.
I've updated my post with the changes, and attached your fixed sessions.php to this post.
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}
in whois_online templateThanks its working.
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
$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>";
<font color=\"#303030\">".$val."</font>
<font color=\"#303030\">".$val." </font>
align=\"middle\"
align=\"absmiddle\"
{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>
$invitado_online_list = implode(" , ", $invitado_online_list);
$invitado_online_list = implode(" ", $invitado_online_list);
Hi,Wie es aussieht haben die ihre Files geändert, den ersten Post habe ich editiert.
Das Zip * GeoIP.dat.gz im ersten Posting enthält nur einen leeren Ordner "GeoIP.dat", gehört da nicht eine Datei rein ?
Hi,Wie es aussieht haben die ihre Files geändert, den ersten Post habe ich editiert.
Das Zip * GeoIP.dat.gz im ersten Posting enthält nur einen leeren Ordner "GeoIP.dat", gehört da nicht eine Datei rein ?
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.dreh mal deinen downloadmanager ab falls du einen an hast.
...