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

0 Members and 2 Guests are viewing this topic.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #120 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
« Last Edit: September 28, 2006, 09:52:51 AM by KurtW »

Offline TubeTopia

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • TubeTopia
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #121 on: October 24, 2006, 06:23:04 AM »
works fine in  1.7.4
"Don't worry about the world coming to an end today. It's already tomorrow in Australia." Charles Schultz

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #122 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
Danke Harald




Offline Gibsy

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


später:



by Gibsy
« Last Edit: March 22, 2007, 10:35:54 AM by Gibsy »

Offline egoplawi

  • Newbie
  • *
  • Posts: 15
  • Punksy möchte die Welt erobern.
    • View Profile
    • Punksy.com
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #124 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

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #125 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
As long as I can finish my site before I die.

Offline Po4emu4Man

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


später:



by Gibsy

I have the same problems with ", , , , , ,"

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #127 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....
As long as I can finish my site before I die.

Offline Gibsy

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Gibsys Spielparadies
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #128 on: July 06, 2007, 09:32:33 PM »



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

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #129 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....
As long as I can finish my site before I die.

Offline Nasenbär

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

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [MOD]country flags of your visitors in "Who's online?" in home page
« Reply #131 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

Offline Nasenbär

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

Offline Nasenbär

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Komma Fehler
« Reply #133 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/ wird nach jeder flagge ein komma gesetzt.

auf meiner seite 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  :)

Offline Nasenbär

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