PDA

View Full Version : Flag Icons



michael_s
06-26-2007, 02:12 PM
Here is a zip file with flags of all* countries.
I used it in combination with the Visitor Web Stats contribution by Azer.

Normally gif images are used but i changed the line 908 in admin/visitors.php
to

echo tep_image(DIR_WS_FLAGS . strtolower(geoip_country_name_by_addr($gi, $visitors['browser_ip'])) . '.ico', geoip_country_name_by_addr($gi, $visitors['browser_ip']));

i put the files in admin/images/flags/
DIR_WS_FLAGS was not set in my case so in
admin/include/configure.php i put

define('DIR_WS_FLAGS', DIR_WS_IMAGES . 'flags/');

I couldn't find this stuff anywhere else so i hope this could help someone.

Cheerios

Visitor Web Stats contribution :
http://www.oscommerce.com/community/contributions,4067/category,all/search,Visitor+Web+Stats

More... (http://www.oscommerce.com/community/contributions,1627)