Closed (fixed)
Project:
IP to Country
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2009 at 09:31 UTC
Updated:
5 Nov 2009 at 12:40 UTC
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
Comment #1
stefan81 commentedWell, I installed
http://drupal.org/project/countries_api
now the comments work.
Comment #2
mrfelton commented