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)

digitalpoint 01-02-2012 03:45 AM

Do you have your groups set properly in your settings?

FTDave 01-02-2012 03:55 AM

Under setting I removed the 5,6,7 and put back 7

That is a board leader.

On the map it shows a bunch of reds. About 20 of them. But we only have 2 leaders. I even removed all numbers from settings and it still showed same number of reds. Does it cache somewhere or something.
This is a very private site for pregnancy issues. I hate to post a link to it.
Thank you.

digitalpoint 01-02-2012 04:46 AM

It caches the location (long/lat), but not the colors... so not sure what could be causing it to be honest.

FTDave 01-02-2012 02:13 PM

1 Attachment(s)
I went to option - settings -digital point map.

I removed all usergroups and save.
I should have no red pins.

I took a smapshot of the map.

FTDave 01-02-2012 02:15 PM

Can I fix the usermap.php to not select any group and see what happens?

FTDave 01-02-2012 02:25 PM

I wonder if the reds could somehow be the guest visiting the site. Is there anyway I can check that? Maybe output the ids or something on the map page to see what is says. I get so many reds it acts like they are the guest.

Boofo 01-02-2012 02:35 PM

Do you have any of them set to the Admin or Mod secondary usergroups by chance?

FTDave 01-02-2012 02:35 PM

Could my session table be corrupt? WOuld it hurt to empty session table?

FTDave 01-02-2012 02:37 PM

Right now I don't have anything in the box. If I have nothing in the box it shouldn't show any red pins right?

FTDave 01-02-2012 03:00 PM

Okay. Strange. I emptied my session table.
Now all I see is two red pins. One in china and one in California.
The one in china is the chinese search engine bot Baidu and the other is the google search bot.
Why does the usermap show them with a red pin?

FTDave 01-02-2012 03:06 PM

1 Attachment(s)
here is a snapshot of my usermap and session table
The id 2999 is me

FTDave 01-02-2012 03:20 PM

It looks like the bots are user id 0
Why are they showing as admins?

Boofo 01-02-2012 04:16 PM

Are you running a cache on your server? And did you clear your browser cache?

FTDave 01-02-2012 04:31 PM

no cache on server.
I cleared browser cache.
I can delete all sessions in table and all pins go away
Strange.

Boofo 01-02-2012 09:10 PM

What do you have set for the cookie timeout?

digitalpoint 01-02-2012 10:05 PM

The code itself doesn't look at secondary usergroups, so you can rule that out.

Let's see if it's the setting first of all...

In your usermap.php file, if you change this:

PHP Code:

$admins_mods explode(','$vbulletin->options['digitalpoint_usermap_admins']); 

to this:
PHP Code:

$admins_mods explode(','$vbulletin->options['digitalpoint_usermap_admins']);
print_r ($admins_mods); 

It should barf out an array of usergroup IDs that it thinks should be mods/admins.

FTDave 01-04-2012 03:55 PM

When I tried this it came up with the correct userid.

Update:
I did nothing. The map started working. I have no idea.

Boofo 01-04-2012 04:44 PM

The session table must gave gotten cleared out okay.

Gamelobby 01-06-2012 04:25 AM

Quote:

Originally Posted by Gamelobby (Post 2280155)
I found the link.. but here is what i get when i click on it.
It this because of my host.? (missing php ext)
Code:

Fatal error: Call to undefined function geoip_record_by_name() in /home/content/08/4856008/html/gamelobby/Forum/usermap.php on line 100

Any ideas.?
My host says they do support it.

Thanks

digitalpoint 01-06-2012 07:49 AM

Quote:

Originally Posted by Gamelobby (Post 2284358)
Any ideas.?
My host says they do support it.

Thanks

They are wrong. :)

Gamelobby 01-06-2012 07:38 PM

lmao..

Is there something i need to do to upload or enable it or something, or do you really just think they lied to me.? lol (not that i doubt they would lie, im just asking)

digitalpoint 01-06-2012 07:54 PM

I'm not saying they lied to you... just that they are mistaken about it being installed. Probably they thought they installed it, but for whatever reason it's not installed properly.

You could try a stand-alone PHP file with any of these functions...

http://www.php.net/manual/en/ref.geoip.php

If the server tells you that the function isn't available, well... it's not available/installed.

The simplest one would probably just the be the call to get info about the geotargetting database:

PHP Code:

<?php

echo geoip_database_info();

If that PHP file throws an error, ask your hosting provider why that would be if it's installed. :)

Lautaro 01-08-2012 07:04 AM

for some reason this plugin didn't work for me. I just get a blank page.

I installed the Spy and Thread Avatars and both are working fine but not this one.

asj 01-10-2012 08:50 PM

Fatal error: Call to undefined function geoip_record_by_name() in /home/arabdeaf/public_html/usermap.php on line 100 ?

Boofo 01-10-2012 09:10 PM

Do you have GeoIP installed on your server?

datoneer 01-11-2012 10:03 AM

I need to wait next version of GeoIP to be installed on my server. They told me that

Boofo 01-11-2012 10:19 AM

Why did they tell you to wait?

datoneer 01-11-2012 11:08 AM

Geoip has had security issues and we're waiting on the new release to install

Boofo 01-11-2012 11:17 AM

This is the first I have heard about it. I've had it installed on the server for quite awhile now with no complications. Sounds like someone is giving you a line, for whatever reason.

datoneer 01-11-2012 08:26 PM

I'll wait what else can i do

Boofo 01-11-2012 08:31 PM

Not much else you can do, other than to start looking for a new host. ;)

digitalpoint 01-11-2012 09:22 PM

Yep... no way to magically make it work on a server without the extensions installed (well... maybe not *entirely* true... but the other options are way more work than it's worth).

datoneer 01-11-2012 10:54 PM

no. i'm very satisfied with urljet

Boofo 01-11-2012 11:07 PM

URLJet told you GeoIP had security issues? I'd like to know what they found and where they found it then because as far as I know, they are the only ones reporting any issues.

tazmaniancowboy 01-15-2012 07:32 PM

Would love to have something like this for my club forum. Is it possible to restrict the map view to a state?

datoneer 01-16-2012 01:12 AM

It is probably because i'm currently on shared server. I think it will work after i move to vps and dedicated

FTDave 01-22-2012 08:16 PM

This application is working great now.

If a person is not on the map can I manually add their IP somewhere and it show on the map?

digitalpoint 01-22-2012 08:42 PM

Quote:

Originally Posted by FTDave (Post 2291092)
This application is working great now.

If a person is not on the map can I manually add their IP somewhere and it show on the map?

No, it only shows people who are online now and pulls their IP for geotargeting from the session table.

FTDave 01-22-2012 09:00 PM

While I got you here I wanted to thank you for the program. It is nice.

I can click on the online users link and see this user's IP address. 98.249.54.16
When I lookup the IP it shows culpepper virginia
On the map no pin is any where near virginia.
Does that mean the ip is not in the geoipcity.dat file?
So I couldn't add to the usermap.php 98.249.54.16 and show this pin on the map?

digitalpoint 01-22-2012 09:05 PM

Could be part of the cache... if the user is hoping IPs (from a proxy) or something. Any way you could ask the user?


All times are GMT. The time now is 10: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.01502 seconds
  • Memory Usage 1,794KB
  • 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
  • (1)bbcode_code_printable
  • (3)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