Hi,

Does this code still work in 6.x-1.2 ?

<?php
$path = explode('/',drupal_lookup_path('source',$_GET['q']));
$node = node_load($path[1]);
$co = ip2cc_get_country($node->hostname);
print_r($co->country_code2);
print_r($co->country_code3);
print_r($co->country_name);
print_r($co->net_name);
print_r($co->as_number);
?>

I placed it into page.tpl.php but nothing shows up.
I did it because I want to check if the module works.
Also no Icons show up in the comments, even though I've set the permissions.

Comments

stefan81’s picture

Well, I installed
http://drupal.org/project/countries_api
now the comments work.

mrfelton’s picture

Status: Active » Closed (fixed)