I have tried adding this to index.php
//--- Kommentar-Autor 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_code_by_addr($gi, $comment_row[$i]['comment_ip']);
if (empty($cid)) $cid = "lan";
$countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
$comment_user_flag = "<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>";
//--- Kommentar-Autor COUNTRY FLAGS ---
$site_template->register_vars(array(
"comment_id" => $comment_row[$i]['comment_id'],
"comment_user_flag" => $comment_user_flag,[code]
and
[code]{comment_user_flag}
But all I get is a gif with a question mark.
I have even tried removing this as index.php has not this code:
"comment_id" => $comment_row[$i]['comment_id'],
but it had no effect.
Sorry... I knew how to do this 5 years ago. I have since been so busy beyond belief and forgotten a lot of stuff. Im now trying to do my site before the world economy falls off cliff, humanity is reset and people start eating their young.[/code][/code]