Closed (works as designed)
Project:
Country Icons
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2010 at 08:32 UTC
Updated:
27 Feb 2011 at 13:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedIt should only display the unknown icon if an unrecognised country code is being used. Is IP2CC installed correctly (including it's country database)?
Comment #2
deepesh commentedYeah, IP2CC module and it's database seems fine - here is my status report.
http://imgur.com/IC6br.jpg
Comment #3
deepesh commentedAny updates on the issue ?
Comment #4
splash112 commentedThink I have a solution.
Country_icons expect a lowercase country code and IP2CC provides a uppercase code.
Might me nice to use a simple drupal_strtolower() in the theme function.
Thanks
Mark
Comment #5
deepesh commentedAny fixed version you have to share ?
Comment #6
splash112 commentedPlease try the amended module file in the attachment.
Comment #7
yngens commentedtried attached module, nothing changed. will the official version be released?
Comment #8
Scyther commentedIs this still a problem, even after drupal_strtolower() ?
Comment #9
federico commentedMaybe the space before the ip address has something to do with this issue?
Comment #10
deepesh commentedAnybody willing to look into this ?
Comment #11
Scyther commented@deepesh can you give more info please. Which Country Icons and IP to Country version do you run? And any info that could be in handy for us.
Comment #12
Scyther commenteddeepesh, if you could edit countryicons.module as below and visit a page that has these icons displayed and copy paste the result here of what the value of $code is.
For me when I installed ip2cc and so, I got it to work, so if you could help us with some debug it would be great!
Comment #13
deepesh commentedI am not very sure how to add this PHP code in module file, I don't have devel module install so can you pls. send the edited countryicons.module file which I can replace to get desired value ?, also, I remember I was asked to edit some theme file to make this work and when upgrading the theme to D6 the coder might have made some mistake so If you can tell what section I need to look for that editing (to make country icons visible in comments) I can check that too?
Comment #14
Scyther commented1. If you have the option to install Devel module it would be great, easier to get the value outputed on the page.
2. Make a backup copy of your countryicons.module file.
3. Download attached file and unzip and put the "new" countryicons.module file in your countryicons directory.
4. Visit a page on your site that should show a country icon.
5. If you have Devel installed you should see a message like this http://uccio.org/files/devel_dvm.PNG . If you don't have Devel, a message will be printed out on top of your page. Message should look like "$code: ***" for either way.
6. Copy the message you get and paste it in here or take a print screen.
7. Remove the "new" countryicons.module file and copy back your backup of that file that you did in step 2.
8. Uninstall Devel if you had installed it in step 1.
Comment #15
deepesh commentedDid as instructed (using Devel) and the screencap is attached.
Comment #16
Scyther commentedBy reviewing your screenshot, your issue is not caused by countryicons.
IP to Country module sends 'unknown' as a country code to the theme function and that is why you get unknown.png icons on your site. Why it does that, I don't know, you have to write a issue to that module instead.