Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
VBGooglemap Member Edition Details »»
VBGooglemap Member Edition
Version: 3.0.1., by stonyarc stonyarc is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 11-01-2005 Last Update: 08-20-2007 Installs: 827
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.


I'm proud to announce that the new version is currently available to you all !!!


You can now nominate hacks yourself for hacks of the month. There is a link on the right of hacks on top of the files.



Function
This will display the members of the Bulletin Board based on their lattitude and longitude coordinates on a googlemap.

Don't forget to hit install !!!!!!!
Please read the guide before asking for support !!!!!!!

Feel free to support this mod and make a paypal donation to admin@stonyarc.com

INSTALL

HOTSPOT EDITION AVAILABLE ON : https://vborg.vbsupport.ru/showthread.php?t=114149
Detailed installation instructions and screenshots in the included pdf file.

Current Features



NOTE:
VBGooglemap 3.0.0 contains the vulnerability fix. Please upgrade immediately. Version 3.0.0. also contains all features from 2.5.X

As always you use modifications at your own risk.

VBGooglemap Member Edition 2.5.1 brings you a lot of new features. It?s vital that you uninstall any previous version before upgrading/installing version 2.5.1.

Upgrading from version 2.5.0 is easier. Instruction are available in the guide.

As the uninstall function will not remove your googlemap data in the database but only the templates and files you can safely remove an older version. As a precaution you should always take a backup. This should be done on each major change you make to your bulletin board.

IF YOU ARE RUNNING VERSION 1.0.3, 2.0.X AND YOU CHANGED TEXT DIRECTLY IN THE TEMPLATES YOU NEED TO SAVE YOUR CHANGES AS VERSION 2.5.0 REQUIRES YOU TO UINSTALL PREVIOUS VERSIONS.

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission.

Changes in this version

SEE FIRST POST FOR FULL ROADMAP AND HISTORY

Planned Features
- TBD

Volume warning

high volume of users may slow down the load. Currently a load counter is included.

Languages

Thanks to Wachtmeister there is a German translation available to you all. Feel free to use it.

The translation will be updated on each new version.

Special

- Read the attached PDF for more information. The pdf is also included in the zip file.
- You'll need a googlemap key for your domain. Get your own key for your domain view http://www.google.com/apis/maps/signup.html for more information.
A googlemap key is only valid for a specific domain. You'll need a specific google account to create one.
All is explained on the googlemap link indicated above.
- Set the file permissions on the marker.xml file to 777
- The googlemap script can handle non-registered users. They will only see the main map and won't be able to enter information. This is reserved for logged in users (detected automatically)
- usergroup permissions are available in the backend
- To change location just drag the map while holding the left mouse key or by using the zoom and key functions on the left
- First time loading of the map may take a few seconds longer because of Google API hosting


Special Xbox Live version
http://www.xboxlivenation.com/community/gamermap.php

Credits

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission. Instructions are included in the pdf file (vbgooglemap2.5.0_guide.pdf)
Special credits to Google, Pyg for the javascript tips.



FAQ

The FAQ is included in the pdf file.

INSTALL



Feel free to support this mod and make a paypal donation to admin@stonyarc.com



(c) 2007 Stonyarc

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #562  
Old 03-09-2006, 12:22 AM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It probably means you didn't upload the images, or didn't upload them to the correct location.
Reply With Quote
  #563  
Old 03-09-2006, 04:19 AM
mdfmk mdfmk is offline
 
Join Date: Feb 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome thanks
Reply With Quote
  #564  
Old 03-09-2006, 04:09 PM
kofoid kofoid is offline
 
Join Date: Dec 2005
Location: Colorado
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey ConqSoft - Thanks.... I actually revalidated that I uploaded them into the right place and I even went so far as to create a ./forums/images/buttons/ directory since all of my forum stuff is in the root directory. Any other ideas?
Reply With Quote
  #565  
Old 03-12-2006, 01:14 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to add locations. Not for a user. But to have the buttons show up as " hot spots" ie: bar/club/bowling alley.. etc ?
Reply With Quote
  #566  
Old 03-12-2006, 01:25 PM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevNJ
Anyone know how to add locations. Not for a user. But to have the buttons show up as " hot spots" ie: bar/club/bowling alley.. etc ?
Good question.. I forgot to ask this, but I would like this as well.. Without having to add extra members just to do it
Reply With Quote
  #567  
Old 03-13-2006, 09:23 PM
PJSkiboy PJSkiboy is offline
 
Join Date: Nov 2002
Location: Bowling Green, KY
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, i did a search on this thread with multiple variances on user info changes, additions, etc........ found nothing. And now i've gone through the first 15 pages of threads and not found the answer i'm looking for, only requests.

Is there a post in here somewhere that addresses adding additional user information to the info that pops up when you click on a balloon? Sorry to not sift through the entire thread myself, just thought if someone remembered off the top of their head if this was addressed yet or not, it might save me some time and patience, lol.

Thanks.

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

I did run across this several pages back. I think it's worth bumping up to here for reference.

https://vborg.vbsupport.ru/showpost....&postcount=483

------------
Reply With Quote
  #568  
Old 03-13-2006, 09:27 PM
Bluestrike2 Bluestrike2 is offline
 
Join Date: Nov 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stony, I hate to bug you but in order to add the sidebars to my site from vBadvanced I have to add this snippet of code to the very top:

Code:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'Forum');
(underneath <?php)

When I do, it breaks the map - you can see it here:

http://mlgpwncast.com/forum/VBGooglemap.php

Do you have any ideas as to why? The map is the only thing that doesn't load - yet it works fine when I don't have that snippet of code in.

I'm quite perplexed .

I've since been forced to remove that snippet of code - if you need, I'll add it back in later for "debugging."

Thanks!
Reply With Quote
  #569  
Old 03-17-2006, 05:30 AM
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lance Carbuncle
Man, this is a great hack, it would really be nice to get at least some kind of reply from stonyarc that he has abandoned this project or is aware of the IE issue and working on it, or that the people with the problem are themselves at fault and it works fine..
I posted this "balloon not popping up in IE problem several weeks ago and have patiently been waiting for something......anything. I have not send stonyarc a pm becuase I feel lucky to have any of the hacks on these forums and don't want to take someones time when they are doing somethng for free I figured he would get around to it, .... But this is just such a damn great hack........ and to login here every day and read this thread looking for any news from stonyarc.... and see that he is visiting the forum on a regular basis and not at least acknowledging the posts is frustrating.
This is my favorite hack of all time.... I have even tried to get all my users to switch to firefox so they can use it! LOL
Stonyarc..... I beg you.... please please pretty please..... let us know whats the scoop. I am more than willing to donate if your time is the issue here. But somehow, I doubt that is the issue...
I am sorry if I sound like a little whining kid here. I AM aware that it is my priveledge to download your hack, and not my right to have it. You were VERY generous to share it on this board... it's just such a great hack, I feel likea kid in a candy store with his hands tied behind his back and tape on his mouth LOL....

Lance
To Lance and any others here who have been experiencing the problem with the balloons not showing when clicking on the markers in IE, I found a fix for my forum by going through one by one and disabling my recently added plugins... I found when I disabled vB Pager, my Googlemap marker balloons started showing up again in IE. So if you have vB Pager installed that might be what's causing the problem with this extension.

I'm so happy as I was just about to disable this extension and I really do love it. I'm going to give up vB Pager (temporarily anyway), so that my Googlemap still works until this conflict can be worked out anyway.

Anyway, hope that helps someone here too.

Cheers

Clancy
Reply With Quote
  #570  
Old 03-17-2006, 12:03 PM
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
Location: New York, NY
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bamahan
Been waiting for somebody to add this, but I'm at the point where I needed it so I wrote it. Nothing fancy, but it works. I can't support this, but wanted to share. Here's the changes I made:

in VBGooglemap.php I added this:

PHP Code:
function geocode($query) {
   
$service "http://brainoff.com/geocoder/rest/?";
   
$f implode("",file($service $query));
   
preg_match("/:long\>([\d\.-]*)/",$f,$long);
   
preg_match("/:lat\>([\d\.-]*)/",$f,$lat);

   
$coords["long"] = $long[1];
   
$coords["lat"] = $lat[1];
   return 
$coords;

right after this:

PHP Code:
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 
Then after this:
PHP Code:
//################################################
// END Functions for setting the users location
//################################################

I added this:

PHP Code:
if ($_REQUEST['do'] == 'geocodelookup') {
  
$coords =  geocode($_SERVER["QUERY_STRING"]);
  if(
$coords["long"] && $coords["lat"]) echo($coords["long"]."|".$coords["lat"]);
  exit();

In each of the VBGooglemap_display/set_yourlocation templates add these functions to one of the <SCRIPT> blocks

Code:
function lookupZip(zip) {
	var q = "zip="+zip;
	doLookup(q);
}
function lookupCity(city) {
	var q = "city="+city;
	doLookup(q);
}
function doLookup(q) {
	var t = getTransport();
	t.open("GET","?do=geocodelookup&"+q, false);
	t.send("");
	if(t.responseText) {
		var coords = t.responseText.split('|');
		if(!coords||coords.length!=2) return;                
		map.centerAndZoom(new GPoint(coords[0], coords[1]), 6);
	} else {
		alert("Not Found or Invalid Lookup!");
	}
}
function 	getTransport() {
	if(window.XMLHttpRequest || window.ActiveXObject) {
	try{
		req = new XMLHttpRequest();
	} catch(e) {
		try{
			req = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(e) {
			try {
				req = new ActiveXObject("Msxml4.XMLHTTP");
			} catch(e) {
				try {
					req = new ActiveXObject("Msxml2.XMLHTTP");
				} catch(e) {
					return false;
				}
			}
		}
	}
	return req;
}
}
And lastly I added this HTML below the first <script> block:

HTML Code:
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" width="100%" border="0" align="center">

<tr>
<td class="tcat">$vbphrase[googlemap_edit]</td>
</tr>
<tr>
<td class="alt1"><div class="smallfont">
$vbphrase[googlemap_smallhelp]
</div></td>
</tr>

<tr>
<td class="thead">Zip Code Lookup</td>
</tr>
<tr>
<td class="alt2"><form onsubmit="this.zipsub.onclick();return false;"><input type="text" id="gmapZipLookup"/><input name="zipsub" type="submit" value="lookup" onclick="lookupZip(document.getElementById('gmapZipLookup').value); return false;"/></form></td>
</tr>

<tr>
<td class="thead">City Lookup
<div class="smallfont">
<font class="small">city,state,US (ie. Marietta,GA,US) or city,country (London,UK)</font>
</div>
</td>
</tr>
<tr>
<td class="alt2"><form onsubmit="this.citysub.onclick();return false;"><input type="text" id="gmapCityLookup"/><input type="submit" value="lookup" name="citysub" onclick="lookupCity(document.getElementById('gmapCityLookup').value); return false;"/></form></td>
</tr>


</table>
Also note that since this was included in the above code, I removed it from it's original position in the templates:

HTML Code:
<tr>
<td class="tcat">$vbphrase[googlemap_edit]</td>
</tr>
<tr>
<td class="alt1"><div class="smallfont">
$vbphrase[googlemap_smallhelp]
</div></td>
</tr>
Have Fun!
Could this be modified to pull the zip codes (created by a custom field) from the database and generate the map based on that?
Reply With Quote
  #571  
Old 03-20-2006, 02:03 PM
Kintaro81 Kintaro81 is offline
 
Join Date: Mar 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tamborinegal
To Lance and any others here who have been experiencing the problem with the balloons not showing when clicking on the markers in IE, I found a fix for my forum by going through one by one and disabling my recently added plugins... I found when I disabled vB Pager, my Googlemap marker balloons started showing up again in IE. So if you have vB Pager installed that might be what's causing the problem with this extension.
Clancy
I don't have vB Pager installed but the problem with IE is the same as your.
Anyone fix that in another way?
Reply With Quote
Reply

Thread Tools

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:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06144 seconds
  • Memory Usage 2,351KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete