vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point User Map (https://vborg.vbsupport.ru/showthread.php?t=244236)

FTDave 01-22-2012 10:23 PM

I've checked her IP. It is a static IP address. I checked all of her IPs when searching for her ips in vbulletin admin.

They are all the same. 98.249.54.16
http://whatismyipaddress.com/ip/98.249.54.16
culpepper virgina.
Also in the session table it has that address.
I checked with phpmyadmin with cpanel.
Is there anyway I could manually put a piece of code in the usermap.php to show her on the map if usermap sees that number in session table?

digitalpoint 01-22-2012 11:03 PM

If you look in the sessions table, does that user have more than one entry (based on userid)?

FTDave 01-22-2012 11:31 PM

No sir.
I click on userid in the session table and I only see her userid once.
Her userid is 3014 and host is 94.249.54.16 in the session table.

TombstoneWarrior 01-23-2012 12:16 AM

for this to work for most members we are going to need the geoip install instructions because i cant figure that install out and there site is not very helpful!!

FTDave 01-23-2012 12:39 AM

Yeah. I never messed with servers much. I just tinkered with my dedicated server and it finally worked.

digitalpoint 01-23-2012 01:59 AM

Quote:

Originally Posted by FTDave (Post 2291177)
No sir.
I click on userid in the session table and I only see her userid once.
Her userid is 3014 and host is 94.249.54.16 in the session table.

Can you make a PHP script that is just this and post the output?

PHP Code:

<?php
print_r 
(geoip_record_by_name('94.249.54.16'));


FTDave 01-23-2012 03:58 AM

Array ( [continent_code] => NA [country_code] => US [country_code3] => USA [country_name] => United States [region] => VA [city] => Culpeper [postal_code] => 22701 [latitude] => 38.4347991943 [longitude] => -77.9866027832 [dma_code] => 511 [area_code] => 540 )

I swear. There is no pin anywhere near virginia.
Is it cached? Anyway to clear cache?
The first time I ran this output it said chatanooga.
So I downloaded file again and its output said culpepper

FTDave 01-23-2012 04:04 AM

I downloaded the geoipcity.dat file again and it moved her from chatanooga to culpepper but it does not show up on map.

FTDave 01-23-2012 04:07 AM

I checked the session file and she is still in the file.

digitalpoint 01-23-2012 04:45 AM

It does cache their location until they time out of the session/who's online (15m by default on vB for them to not be online).

FTDave 01-25-2012 12:26 AM

Its been a whole day and she still doesn't show up on the map but on the session file. That is weird.
Your code shows them in culpepper, the ip 98.249.54.16 is on the session database but know pin anywhere near culpepper virginia.

datoneer 02-06-2012 07:21 PM

I've installed GeoIp but i get empty page only, nothing showing...
vb version 4.1.10. - is that problem?

digitalpoint 02-06-2012 09:03 PM

Quote:

Originally Posted by datoneer (Post 2296943)
I've installed GeoIp but i get empty page only, nothing showing...
vb version 4.1.10. - is that problem?

Nope, that's not a problem. Is your PHP setup to suppress internal errors?

datoneer 02-06-2012 11:42 PM

Ok. No errors. I'll see where's the problem then

Mr_Running 02-07-2012 01:53 AM

Is there an option for usergroups can view?
I would like only Admin, Super Mod and Moderators to view...for now. :)
If not how?

laebshade 02-07-2012 02:16 AM

I, too, could not see a map; I turned on PHP errors then saw an error concerning GeoIP and not being able to find GeoIPCity.dat. Unfortunately, GeoIPCity.dat is not free, but GeoLiteCity.dat is, so I downloaded it then created a symlink from GeoIPCity.dat to GeoLiteCity.dat. Voila! Now works.

Thanks for the addon!

Mr_Running 02-07-2012 04:39 AM

Sorry @laebshade
I can see map.

...I am glad it works for you too. :0

I only wish to have Admin, Super Mod and Moderators to view...for now.

datoneer 02-07-2012 02:39 PM

I want to confirm that now it's working!

datoneer 02-11-2012 08:02 PM

How can i add view map next to the currently users online?

Boofo 02-11-2012 09:02 PM

Simple.

https://vborg.vbsupport.ru/showthread.php?t=243460

datoneer 02-11-2012 09:56 PM

thanks

tsptom 02-17-2012 04:57 PM

Hey DP -

I know you still have the original version of this program available on your website. Is there a way, or a version, of this cool forum version to use on my site's home page? The difference being that your original puts the map on your site, while this forum version puts it on our site. I would be willing to pay for something like that.

I hope that makes sense. Thanks!

digitalpoint 02-17-2012 05:02 PM

Not sure what you mean? You want your map to show on our site?

tsptom 02-17-2012 05:39 PM

I knew that was clear as mud... :)

Unless I am doing it wrong, your original version (Geo Visitors) sends the user to http://tools.digitalpoint.com/geovisitors where the map is displayed.

This forum version puts the map on a page within our own forums. (www.mysite.com/forum/usermap.php)

I would like to use the original program and have the link on my homepage (non-forum) send the viewer to a one of my site's pages (ex: www.mysite.com/usermap.php) instead of http://tools.digitalpoint.com/geovisitors.

My site has many more pages outside of the forum but I believe this forum version only accounts for IP's on the forum.

I assume that the reason the original version takes us to a DP page is to bring in more traffic, which is why I would understand paying for a version that puts the map on our own site.

TY

digitalpoint 02-17-2012 06:22 PM

Geo Visitors is just a totally different thing... It's not available as a product, sorry...

datoneer 04-16-2012 09:35 AM

I have vps server. But again receiving this error:

Fatal error: Call to undefined function geoip_record_by_name()...line 100

My host don't know how to fix it...what should i say them where is the exact problem?

Thanks

digitalpoint 04-16-2012 06:57 PM

The addon requires the geoip PHP extensions.

datoneer 04-21-2012 06:28 AM

Yes they have installed that. But still getting this error

digitalpoint 04-21-2012 09:14 AM

They did not install it correctly then. If you look at your phpinfo(), is it listed there?

Flightbase 04-21-2012 01:21 PM

Hi,

the map does not show up, everything else looks like it should.
i did not get the point: Upgraded to Google Maps API v3.

uhm what? how?

plus: do i need some API key, google search results claims?

greets, Nik

digitalpoint 04-21-2012 03:55 PM

What's the URL?

Flightbase 04-22-2012 07:39 AM

<a href="http://www.soaring-challenge.com/usermap.php" target="_blank">http://www.soaring-challenge.com/usermap.php</a>

digitalpoint 04-22-2012 08:49 PM

Quote:

Originally Posted by Flightbase (Post 2322421)

Do you have the geoip PHP extensions? It looks like it might not be (or maybe the extension is installed, but without the database file)?

Flightbase 04-24-2012 04:40 PM

Hi,

Code:

root@rcns:~# dpkg -l |grep geo
ii  geoip-bin                          1.4.8+dfsg-1ubuntu1                    IP lookup command line tools that use the GeoIP library
ii  geoip-database                    20110709-1                              IP lookup command line tools that use the GeoIP library (country database)
ii  libapache2-mod-geoip              1.2.5-2                                GeoIP support for apache2
ii  libgeoip1                          1.4.8+dfsg-1ubuntu1                    non-DNS IP-to-country resolver library
ii  php5-geoip                        1.0.7-3                                GeoIP module for php5

Code:

root@rcns:~# ls -hal /usr/local/share/GeoIP/GeoLiteCity.dat
-rwxr-xr-x 1 nikwww www-data 16M 2012-04-21 16:06 /usr/local/share/GeoIP/GeoLiteCity.dat

all services were restarted after placing the .dat file there.

greets, Nik

datoneer 04-26-2012 02:03 PM

My host told me this:

Can you please ask if there is any specific way or trick for centos and/or cpanel?

They also said that from here: http://imspot.org/info.php you can see that mod_geoip is loaded under the "Loaded Modules" section.

digitalpoint 04-26-2012 08:26 PM

You have an Apache module for it (you don't need that)... You want a PHP module for it.

http://pecl.php.net/package/geoip

datoneer 04-27-2012 08:15 AM

Ok, i see usermap page now just can't see the map.

Now this error shows under usermap:

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /opt/geoip/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Can you explain me what to do now to fix it?

digitalpoint 04-27-2012 07:14 PM

My first guess would be that you don't have the required database at /opt/geoip/share/GeoIP/GeoIPCity.dat :)

datoneer 04-28-2012 05:46 AM

It's working. Thanks dp

paulket 05-25-2012 10:33 PM

Link to map is lost in the Community drop-down with upgrade to 4.2.0


All times are GMT. The time now is 03:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01952 seconds
  • Memory Usage 1,815KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete