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)
-   -   Mini Mods - [DBTech] Member Map v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=293495)

CiXelSiD 04-14-2017 07:59 AM

this may have been answered already but
i have the map working fine
its just not showing anyone's location ... its just a map\

version 4.2.4

Dave 05-04-2017 03:17 PM

This plugin didn't work on the site of someone (didn't show any locations on the map) and I found the cause of it. In the cronjob file around line 75 where it does json_decode, a second argument (true) has to be passed so the object is converted to an array, else the is_array check after this line fails.

This probably doesn't happen on all PHP version, but on 5.4.16 I had to make this modification.

Derwin 05-19-2017 05:11 PM

Quote:

Originally Posted by Dave (Post 2586192)
This plugin didn't work on the site of someone (didn't show any locations on the map) and I found the cause of it. In the cronjob file around line 75 where it does json_decode, a second argument (true) has to be passed so the object is converted to an array, else the is_array check after this line fails.

That's great. But... where is the cronjob file located? I checked on the server in the membermap folder, but there's just he php file there.

I checked in the admin under scheduled tasks, and nothing with 75 lines is there. Can't seem to find this file you are referring to.

Can you post the location?

Thanks.

Dave 05-19-2017 05:42 PM

Quote:

Originally Posted by Derwin (Post 2586693)
That's great. But... where is the cronjob file located? I checked on the server in the membermap folder, but there's just he php file there.

I checked in the admin under scheduled tasks, and nothing with 75 lines is there. Can't seem to find this file you are referring to.

Can you post the location?

Thanks.

./dbtech/membermap/geoip_locate.php

Derwin 08-12-2017 10:51 PM

Quote:

Originally Posted by Dave (Post 2586696)
./dbtech/membermap/geoip_locate.php

Thank you for that.

One problem.... what is the exact code that needs to be put there?

I know vbulletin pretty well, but I'm not a coder. You say "a second argument (true)" needs to be put after the json code. But what is the the code for this argument?

durham 04-30-2018 11:58 AM

I'm just getting empty map on php 5.6 and vb4.2.4 so would welcome the exact change required in the posts above please?

Ive taken a guess at : $result = json_decode(curl_exec($ch),true);

let's see!

Guest191216 06-13-2018 12:51 PM

initial post deleted,
support request raised at https://www.dragonbyte-tech.com/forums/member-map.204/

DragonByte Tech 06-14-2018 09:11 AM

I've updated the .zip file here with the json_decode change as well as changing the API endpoint since the current endpoint will stop working on July 1.

Support is handled @ our site so any replies to this thread is likely to be missed.

Fillip

dknelson 08-22-2018 01:46 PM

I have looked through this thread but either I'm missing it or it hasn't been answered. Is there ANY way to search this map for a particular member? Because the IP location is often not accurate, it is often necessary to manually move your pin. When you have a LOT of pins however, it is almost impossible to find your pin if it is way off the mark. Hard to move it if you can't find it.

dknelson 08-25-2018 11:51 AM

Got my answer on Dragonbytes site. Search is not an option and won't be added. I have removed this product.


All times are GMT. The time now is 10:04 PM.

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.01135 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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