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

Reply
 
Thread Tools
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
  #552  
Old 02-28-2006, 10:36 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnGBSA
Call me a n00b (which I am when it comes to PHP and MySQL), but that seems like an awful lot of work!

A good idea, but geesh!
how goes development on this for v1.4?
Reply With Quote
  #553  
Old 03-01-2006, 07:01 AM
Bellinis's Avatar
Bellinis Bellinis is offline
 
Join Date: Aug 2005
Location: Amsterdam, the Netherland
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like my users to fill in their location by hand and not by searching on the map. Is it possible to fill in the coordinates or is there no other way?

Best would be if my members could fill in their location in their profile

Thanks for the good work!! *clicks install*
Reply With Quote
  #554  
Old 03-01-2006, 08:37 AM
johon johon is offline
 
Join Date: Oct 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tamborinegal
I am having this same problem but it only started happening recently.

If I use firefox (and other browsers) it works fine. If I'm a guest using IE, it works fine, BUT if I'm logged in as a member using IE, then the markers are there but it just centers on the map when clicked, I don't get the information popping up. Any idea why this would be happening Stonyarc?

I just love this hack and so do my members but unfortunately now the majority of them are no longer able to use it

Clancy
Exactly the same problem in my forum: IE as guest works fine, click on balloon shows userinfo, IE as member shows balloons, but click on balloon only centers the map, no userinfo. Firefox works fine.

So normally it must be a cookie-problem?

Any suggestions?

Greetz

Johon
Reply With Quote
  #555  
Old 03-01-2006, 03:05 PM
bamahan bamahan is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for writing this plugin - very cool. It didn't work on my board at first; found out it's the way you're setting the window.onload event. Our board already has an onload event, and our onload overrode your onload. Best way to get around this is to attach an event instead of just setting onload like that. I changed anywhere you set the window.onload handler to this and it worked great.

Code:
                if(window.addEventListener) {
                        window.addEventListener("load", Load_Map, false);
                } else if(window.attachEvent) {
                        window.attachEvent("onload", Load_Map);
                }
Thanks again!
Reply With Quote
  #556  
Old 03-01-2006, 07:26 PM
bamahan bamahan is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #557  
Old 03-02-2006, 04:08 AM
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by johon
Exactly the same problem in my forum: IE as guest works fine, click on balloon shows userinfo, IE as member shows balloons, but click on balloon only centers the map, no userinfo. Firefox works fine.

So normally it must be a cookie-problem?

Any suggestions?

Greetz

Johon
Can anybody help with this problem? Most of my members can no longer use this hack as the majority use IE.

Clancy
Reply With Quote
  #558  
Old 03-02-2006, 02:55 PM
Lance Carbuncle Lance Carbuncle is offline
 
Join Date: Oct 2004
Location: California
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #559  
Old 03-05-2006, 07:43 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 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

I agree AWESOME hack. I keep checking back with nothing new. Im waiting on the 1.4 version as well for the event and hot spots to display. But with no luck.
Reply With Quote
  #560  
Old 03-05-2006, 07:47 PM
WaaDaa WaaDaa is offline
 
Join Date: Oct 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Already clicked install.
Reply With Quote
  #561  
Old 03-08-2006, 11:49 PM
kofoid kofoid is offline
 
Join Date: Dec 2005
Location: Colorado
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help!
When I look at this picture from the description:

I see 2 buttons on the top left of the map - Show map and Your entry. I don't see either on my forum - any help would be appreciated!

http://lets-yada-yada-yada.com/VBGooglemap.php

**edited to add that NO buttons show up in firefox and only red x's show up in IE
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 06:29 PM.


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.05834 seconds
  • Memory Usage 2,356KB
  • 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