Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[DBTech] Member Map v1 (vB4) Details »»
[DBTech] Member Map v1 (vB4)
Version: 1.1.2, by DragonByte Tech DragonByte Tech is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 12-31-2012 Last Update: 06-13-2018 Installs: 162
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

What is Member Map?

Welcome in the new year by showing your community that it's a small world after all!

Show your users' locations can be shown on an interactive google map after being geolocated from their ip addresses.
Also supports the ability to show all users or only those that are currently logged in.
Locations are calculated in batches to ensure smooth performance, or updated by each person using html5 browser location.
Markers can have custom colors per usergroup and features a popup with a mini profile including avatar.

Your forum friends were closer than you thought!

-------------------------------------------------------------------------------------------

If you like this mod please hit the button to the right ---->

Please remember to click the, button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified by us whenever new updates are available.

*
For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps us know how many people are using our work, giving us extra incentive to provide more features and new modifications.

We appreciate the support!
-------------------------------------------------------------------------------------------

Other addons available @ www.DragonByte-Tech.com/forum

General Settings
  • Choose whether to show all users or only those logged in, and the default map type
  • Choose the number of users to process per scheduled task run
  • Usergroup setting to change pin color and set if they can access or should be excluded
  • Option to hide the version number in the footer.
-------------------------------------------------------------------------------------------

This mod displays a copyright notification in the footer of Show Thread and product pages which includes:
  • 1 Link to DragonByte Technologies homepage
  • 1 Link to Product Description page of this modification

Download Now

File Type: zip [DBTech] Member Map 1.1.2 [Lite].zip (11.6 KB, 38 views)

Screenshots

File Type: jpg membermap.jpg (151.8 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Insta-Gator, Razta

Comments
  #132  
Old 02-05-2015, 09:05 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gadget_Guy View Post
I just installed mod_geoip on my server.

I think I did it correctly, however, the member map is no different afterwards.

Do I need to wait for it to update the member map?

Is there any way for me to test to see if it is working?

D.
Your best bet may be to try a reinstall, as I believe if the mod detects an IP can't be resolved it will flag it to avoid re-testing in the future.


Fillip
Reply With Quote
  #133  
Old 02-05-2015, 09:38 PM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a DB table or file I can clear so that it does the lookup again?

When I run the Cron it returns a value of 0 probably because it has already looked up the IPs already.

D.
Reply With Quote
  #134  
Old 02-11-2015, 01:51 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gadget_Guy View Post
Is there a DB table or file I can clear so that it does the lookup again?

When I run the Cron it returns a value of 0 probably because it has already looked up the IPs already.

D.
Sounds like you have the same problem as me. No GeoIp on your server.

If you can't add it yourself or if your host will not then you're kind of screwed. Uninstall and move on is my best advice.
Reply With Quote
  #135  
Old 02-11-2015, 10:07 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gadget_Guy View Post
Is there a DB table or file I can clear so that it does the lookup again?

When I run the Cron it returns a value of 0 probably because it has already looked up the IPs already.

D.
Uninstall / reinstall is the fastest way of ensuring you start from scratch

I'm not the original developer of this modification, so I don't know the table name off the top of my head.


Fillip
Reply With Quote
  #136  
Old 03-29-2015, 02:25 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I make the background darker on the pin information area? It shows as white and I need it darker. screen shot is attached. And also how do I fix the icon to the left side?
Attached Images
File Type: png lightbackground.png (33.1 KB, 0 views)
Reply With Quote
  #137  
Old 04-16-2015, 03:38 PM
xorlof xorlof is offline
 
Join Date: Sep 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made a couple of modifications to this mod which are reasonably straightforward. Here are few tips if you want to make similar ones:

1) We didn't want an opt-out system, we wanted an opt-in system. To do so, before installing edit the XML so that the opt-out database flag is "1" by default for all users. Then change geoip_locate.php so it does do a location lookup even if someone is opted out (otherwise all users will have to find their pins at latitude/longitude 0,0). Finally to edit the "opt out" phrase to say "Do not show me on this map". Unchecking that box is how people opt in.

2) I made it so that a user's own pin is a different color from the rest of the pins. To do that, I edited membermap.php, appending to $colors with a usergroupid of "9999" with a color of "79604c". Then in the template dbtech_membermap_info template I set the "data-ugid" to 9999 for the user's marker.

These aren't elegant ways to add those two features, but they are the simplest, requiring the least amount of code modification. I can type up step-by-step instructions to do the above if there are requests.

I've got a couple of other ideas that sound simple to implement too: 1) making sure a user's pin is always on top to make it easy to find and drag, and 2) when a user's location is detected, the detected latitude and longitude should be offset by a random small amount and have that stored to the database instead. That helps avoid having many map markers stacked exactly on top of each other for those times that the GeoIP database gives the exact same location to all users in a given city (for example).
Reply With Quote
  #138  
Old 04-17-2015, 02:10 PM
xorlof xorlof is offline
 
Join Date: Sep 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

More fix-ups for this plugin. To make it work on phones, you need to do a couple of things:

1) fix the super zoomed in view of your template:

In the template dbtech_membermap_home, find the line that begins:

<meta name="viewport"

and replace it with:

<meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, user-scalable=no" />

Your site's style may not look perfect with this setting, but it will help a lot.

2) Make it so that you can select markers and see the users, find this block of code:
Code:
				google.maps.event.addListener(marker, 'mouseover', function()
				{	//set popups on hover
					if (lastopen != infowindow)
					{
						if (lastopen) lastopen.close();
						infowindow.open(map,marker);
						lastopen = infowindow;
					}
				});
and after it, ADD this block of code
Code:
				google.maps.event.addListener(marker, 'click', function()
				{	//set popups on click
					if (lastopen != infowindow)
					{
						if (lastopen) lastopen.close();
						infowindow.open(map,marker);
						lastopen = infowindow;
					}
				});
Huzzah, it works on mobile!
Reply With Quote
  #139  
Old 04-17-2015, 02:26 PM
oldwillysforum oldwillysforum is offline
 
Join Date: Mar 2012
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xorlof View Post
I can type up step-by-step instructions to do the above if there are requests.
I'm a total hamb-fist when it comes to coding, but I'd love to change the user-pin color. A step by step tutorial would be great...

Thanks,

Pete
Reply With Quote
  #140  
Old 04-17-2015, 03:49 PM
xorlof xorlof is offline
 
Join Date: Sep 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oldwillysforum View Post
I'm a total hamb-fist when it comes to coding, but I'd love to change the user-pin color. A step by step tutorial would be great...
Sure, it takes two steps:

STEP 1: In the template dbtech_membermap_info, find:
Code:
<div title="{vb:raw user.username}" data-latitude="{vb:raw user.dbtech_membermap_lat}" data-longitude="{vb:raw user.dbtech_membermap_lng}" data-ugid="{vb:raw user.usergroupid}" data-myself="<vb:if condition="$vbulletin->userinfo['userid'] == $user['userid']">1<vb:else />0</vb:if>" data-move="<vb:if condition="$moveable">1<vb:else />0</vb:if>">
and REPLACE it with this
Code:
<div title="{vb:raw user.username}" data-latitude="{vb:raw user.dbtech_membermap_lat}" data-longitude="{vb:raw user.dbtech_membermap_lng}" <vb:if condition="$vbulletin->userinfo['userid'] == $user['userid']">data-ugid="9999" data-myself="1"<vb:else />data-ugid="{vb:raw user.usergroupid}" data-myself="0"</vb:if>" data-move="<vb:if condition="$moveable">1<vb:else />0</vb:if>">
STEP 2: In membermap.php, find:
Code:
foreach ($vbulletin->usergroupcache AS $ugid => $uginfo)
{       //format the usergroup colors
        if (!($uginfo['dbtech_membermap_perms'] & 2))
        {       //not excluded
                $color = $uginfo['dbtech_membermap_color'];
                $groups .= '<option style="color: #' . $color . ';" value="' . $ugid . '">' . $uginfo['title'] . '</option>';
                $colors .= ", $ugid: '$color'";
                $validugs[] = $ugid;
        }
}
and after that ADD:
Code:
//Add in a special color representing the current user
$colors .= ", 9999: '79604c'";
the 79604c in the line above represents the color that the user's pin will appear as, which is a medium brown, but you can change it to whatever color you want. If you're not familiar with the scheme, just use one of the "hex codes" listed on this page, but exclude the pound sign.

Since these are manual edits, if you ever update the plugin to a new version, you may have to reapply these changes.
Reply With Quote
  #141  
Old 04-17-2015, 07:51 PM
oldwillysforum oldwillysforum is offline
 
Join Date: Mar 2012
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xorlof View Post
Sure, it takes two steps
Awesome, thanks. Made the edits, and it works great.

Pete
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:38 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.07985 seconds
  • Memory Usage 2,359KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete