[BETA] Country flags on posts based on ip (geoip lite)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
User avatar
Lonewolf147
Registered User
Posts: 82
Joined: Fri Jul 12, 2013 3:13 pm
Location: Milwaukee, WI
Name: Scott

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Lonewolf147 »

Alright, I'll give that a try and let you know.

Also, when I try to clean install with AutoMOD I get this error message:

Code: Select all

Information

The MOD is missing an action matching the find ‘ {postrow.POST_DATE}’
and it doesn't install. I have to do it all manually.
User avatar
Lonewolf147
Registered User
Posts: 82
Joined: Fri Jul 12, 2013 3:13 pm
Location: Milwaukee, WI
Name: Scott

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Lonewolf147 »

Goztow wrote:it should show you the ip that generated the country. It could help to determine the cause. Post it here or PM it to me if u prefer.

Code: Select all

Postby Lonewolf » Sat Dec 28, 2013 10:11 pm  United Kingdom C:\Users\XXXXXX\Documents\My Web Sites\phpbb\geolitedb/GeoIP.dat 
This is what get's displayed. No IP address, but the file location for GeoIP.dat, right after the flag image.

If I go to the Who's Online and look at all the IP's of those logged in, my IP shows up as my LAN Router IP (168.0.0.1), the other users logged on from outside my LAN have correct external IP's showing.
Last edited by Lonewolf147 on Fri Jan 03, 2014 6:23 pm, edited 1 time in total.
Goztow
Registered User
Posts: 376
Joined: Fri Aug 17, 2007 10:31 am
Location: Belgium
Contact:

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Goztow »

My mistake. replace $correctlink with $row['poster_ip']
User avatar
Lonewolf147
Registered User
Posts: 82
Joined: Fri Jul 12, 2013 3:13 pm
Location: Milwaukee, WI
Name: Scott

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Lonewolf147 »

Alright, I added that code instead and my board doesn't like it. When I try to view any topic I just get a white screen (indicative of a error 500). But, without that code, I found I can click on the information button for each post and it will show me the IP address of the poster.

As I suspected, all of my posts are showing an IP address of my local LAN. Everyone else that is posting from outside the LAN has the correct IP and flag. I guess my local IP address is what United Kingdom uses.
JohnGoodie
Registered User
Posts: 4
Joined: Thu Mar 06, 2014 6:17 pm

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by JohnGoodie »

Working good for me. Thank you!!
Seeeler
Registered User
Posts: 78
Joined: Sat Apr 28, 2012 9:03 pm

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Seeeler »

Download link is not working, been trying for days, does anyone have it? please share it
Goztow
Registered User
Posts: 376
Joined: Fri Aug 17, 2007 10:31 am
Location: Belgium
Contact:

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Goztow »

The link works fine here.
Goztow
Registered User
Posts: 376
Joined: Fri Aug 17, 2007 10:31 am
Location: Belgium
Contact:

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Goztow »

Zac2613 just sent me this. I have not tested this, so use at your own risk.
Hi Goztow,
I had a need for your Country flags on posts based on ip so I have repacked
it with autoMod with the following alterations.

[Added] Mod now controlled via Board configuration/Board features.
[Added] Switch for view by everyone or Admin/Mods only.
[Added] SubSilver2 style edits.
[Fix] W3C validation on Image code.

Moved the image to the bottom of the post instead of where it was, this was
done to eliminate issues on install via automod as previously read in the
thread, where its situated now is above the attachments/post edited & bump
post, so it wont get pushed out of place @ a later date.

If the servers on you can log into the testboard & try it out

http://zac2613.zapto.org/testboards/boa ... hp?f=2&t=1
user= tester_1 pass= 123456

Download The Mod: http://bandbsat.com/fileuploader/b8cc5f5dc5a34840

I have altered this Mod to suite my needs, if you find it ok & want to add
it to your thread please do so, I thought Id give you a copy eitherway.

Regards
zac
Seeeler
Registered User
Posts: 78
Joined: Sat Apr 28, 2012 9:03 pm

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Seeeler »

Oh well, link was not working in my country, it said: you don't have permission :o
so i used a proxy to download the file ;)

btw, Zac2613's mod looks fishy, i tried downloading the file a few times, it keeps stucking at 99.99% and asks to upgrade to premium for downloading the file.

Tell him to upload on a decent server otherwise don't share.
zac2613
Registered User
Posts: 22
Joined: Tue Oct 12, 2010 11:54 pm

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by zac2613 »

Seeeler wrote:Oh well, link was not working in my country, it said: you don't have permission :o
so i used a proxy to download the file ;)

btw, Zac2613's mod looks fishy, i tried downloading the file a few times, it keeps stucking at 99.99% and asks to upgrade to premium for downloading the file.

Tell him to upload on a decent server otherwise don't share.
Theres nothing wrong with the file upload site, there has been downloads of that file since it was uploaded & many other files too, however, if you have encountered an issue I apologise for the inconvenience.

Removed link version 1.0.0 is now in the first post.
Last edited by zac2613 on Mon Jul 14, 2014 11:30 pm, edited 2 times in total.
Goztow
Registered User
Posts: 376
Joined: Fri Aug 17, 2007 10:31 am
Location: Belgium
Contact:

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Goztow »

Zac2613 made a version 1.0.0. I updated my first post to reflect this. All credit goes to him for it!

If someone feelsl ike validating this mod... be my guest! Just keep my credits somewhere ;).
zac2613
Registered User
Posts: 22
Joined: Tue Oct 12, 2010 11:54 pm

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by zac2613 »

Mod updated to 1.0.1

Changes
Just updated for most recent phpBB version.

This Mod has been packed for phpBB 3.0.14
Download: phpBB country IP flags in posts
Goztow
Registered User
Posts: 376
Joined: Fri Aug 17, 2007 10:31 am
Location: Belgium
Contact:

Re: [BETA] Country flags on posts based on ip (geoip lite)

Post by Goztow »

Updated first post.
Locked

Return to “[3.0.x] MODs in Development”