vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=99920)

Bounce 02-03-2006 11:25 PM

My members are gonna love this , thanks

had the previous non vb version which they liked but now its part of forums they will love it..

One small Q : is it possible to put either a uploaded pic or the avatar on the person's info ?

apologises if posted on this thread,went straight to reply after installing it , easy install btw :rolleyes:

KevNJ 02-05-2006 02:48 PM

I see this would be a "hot spots" option and your working on a new release, I look forward to it, any idea when itll be out?

But will this feature only work for a certain area? My website is area specific, dont really want information entered from other countries, states etc.

Stoneyreef 02-06-2006 02:25 AM

Well ours quit working, the markers are there, but you can no longer click on the balloon and find out who set the marker. It only centers the map on that balloon.

Lance Carbuncle 02-06-2006 03:33 AM

I just installed this wonderful hack today..... I am sure my users are going to absolutely love it if I can get it working properly. I am sure my problems are exactly that, but if anyone can help me get this fixed, I would really appreciate it.....

When not logged in, the balloon pops up with no user name, but the comment is there..... When not logged in, a click on the marker only re centers the map to that location, and no balloon pops up at all.......

http://www.forums.repashy.com/VBGooglemap.php

you can login as: Code Tester Pass: vbulletin

xml file appears to be saving all the right info...

xml file:http://www.forums.repashy.com/markers.xml

update... I played around some more and figured out that the username text is there, just white on white, so that is an easy fix and will probably be done before you check it out.....

The other issue about logged in users not popping up is still the same.... but I checked Firefox, and logged in users balloon works there! .... strange....

Thanks in advance, Allen

Lance Carbuncle 02-06-2006 05:37 PM

Hello again,

I have played around with this quite a bit now and just can't figure it out... In Firefox 1.5.01 . everything works great.....

In IE 6.0.29 .... everything works fine for a non logged in user, but once logged in, clicking on the marker only re centers the map to that point.... no balloon popup at all.... Seems really strange that it works like this.... I tried from anothe computer with the same results.... Re booted, re installed, deleted cookies, closed window..... nothing seems to change it.....

Thanks, Lance

Parture 02-07-2006 07:37 AM

If someone adds their marker and then they get deleted from the forum, how do we remove the marker after that?

Answer: use phpmyadmin to remove the line for the googlemap databse.

dbase 02-07-2006 04:42 PM

I am trying to integrate Phoogle . That script will convert geocode data. I might have something ready in the next couple of days.

Thanks and great work

G3MM4 02-07-2006 06:44 PM

Quote:

Originally Posted by G3MM4
I installed this plugin, and made sure I read and followed the steps in your instructions. However, when I clicked on the Googlemap link in my navbar, I got this message:



What happened, or what have I done wrong?

Any ideas for fixing the error I got above? I uninstalled the hack since I don't want to cause further errors on my board (which I'm still working on).

Parture 02-08-2006 04:16 AM

Improvements needed:

- Someone who registers, but does not validate their email OR is not approved for posting or is banned should not be able to place their marker on the map. And when the person is banned or deleted, the marker should automatically disappear also.

- *** Also, if you have several questions that are required to be answered when registering, and if they are not answered correctly, the person should not be able to put their marker on the map. Though the person would be registered, yet since they did not give the right answer to the questions, they can not put the marker on the map.

cos 02-12-2006 05:52 PM

Hi

I have tried to read all the 500 plus posts but could not find the answer

My question is --

Is there a way that all members could automatically be added through their ip address instead of them doing it themselves when they are online

I ve seen it on another forum

Once again sorry have tried to find the answer but my eyes have gone

ronoxQ 02-14-2006 06:45 PM

ERROR: Cannot open XML File

MrNase 02-16-2006 08:53 AM

Still waiting for the new version to come... :(

Will there be a new version or has the development stopped?

leitel 02-16-2006 11:27 PM

Before I install your hack, I need to find a way to display a location map for hospitals. As I dig deeper, I discovered a simple googlemap works in firefox but not in IE 6.

Here it is: Simple googlemap

Strange thing is if I remove the table wrapper, it works!!!!!!!!

I ran VBGooglemaps just fine in IE and FF. Just want solve a simple problem first.

Thanks! :)

ronoxQ 02-20-2006 11:10 PM

Any help for the error I gave above? It's really annoying my users.

Is it a problem with the plugin or with the installation?

S@NL - BlackBik 02-21-2006 06:34 PM

Great hack, Stonyarc :)
To bad, Belgium and the Netherlands aren't that detailled yet, but even so, it's a nice add on to our forum.

Thanks to all contributers to this thread for answering a lot of questions I had ;)
And thanks to Gizmo999 for the FAQ entry, that was very usefull.

Gonna follow this thread and hope the development will continue.

To add some value to this thread (i hope), here's another sollution to the text on te map buttons (Map, Satelite, Hybrid) that are not showing on boards that have a dark skin with white letters.
Add this to your style:
Code:

/* ***** class for vBGooglemap ***** */
.r_box { color: #000000; }

And the text shows. This is only valid in the style you put it in, so if you have more dark styles you'll have to repeat this for every style.
Offcourse you're free to choose another color than #000000 :)

Gizmo999 02-21-2006 08:38 PM

thanks for that font colour change, added and it works great.

GlitterKill 02-23-2006 02:30 PM

Works with VB 3.54?

firstrebel 02-23-2006 04:09 PM

Quote:

Originally Posted by GlitterKill
Works with VB 3.54?

Working OK on my dev site.

Bob

Gizmo999 02-23-2006 05:40 PM

Quote:

Originally Posted by GlitterKill
Works with VB 3.54?

seems OK on mine

tamborinegal 02-23-2006 11:15 PM

Quote:

Originally Posted by Lance Carbuncle
I just installed this wonderful hack today..... I am sure my users are going to absolutely love it if I can get it working properly. I am sure my problems are exactly that, but if anyone can help me get this fixed, I would really appreciate it.....

When not logged in, the balloon pops up with no user name, but the comment is there..... When not logged in, a click on the marker only re centers the map to that location, and no balloon pops up at all.......


http://www.forums.repashy.com/VBGooglemap.php

you can login as: Code Tester Pass: vbulletin

xml file appears to be saving all the right info...

xml file:http://www.forums.repashy.com/markers.xml

update... I played around some more and figured out that the username text is there, just white on white, so that is an easy fix and will probably be done before you check it out.....

The other issue about logged in users not popping up is still the same.... but I checked Firefox, and logged in users balloon works there! .... strange....

Thanks in advance, Allen

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

JohnGBSA 02-24-2006 04:22 PM

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

Strage that I have the exact oposite problem. It works perfectly in IE 6 but not in Firefox.... Strange. If anyone has an idea please let me know.

Also, at present I am just testing on a link to vBGooglemaps.php instead of embedding it into the navbar. Could someone tell me exactly where in the navbar I should put the code?

Thanks,

John

Gizmo999 02-25-2006 04:36 PM

A lot of my users are having problems with this, the pin doesn't locate to the location they set. rather than spend hours doing browser tech support on it I'd rather alter the location myself, I've found the markers.xml file but changing that doesn't update the pin so it looks like I must also alter the googlemap table in my database??

is anyone using this method to correct misplaced pins?? if so are there any problems doing it??

ronoxQ 02-25-2006 05:12 PM

ERROR: CAnnot open XML File

I posted this up a while ago, but nobody gave any ideas. Not even a "no clue" reply.

Can ANYBODY help me? Or is this doomed to fail for my site, for some unexplainable reason?

Gizmo999 02-27-2006 01:21 PM

I've been trying to work out why my users keep screwing up their pins, reading the instructions it seems there is one small error

Quote:

Welcome to the Member Map page. This feature is in beta development. To insert your entry just click on your entry and center the new map on your location. The latitude and longitude will change automatically. Don't forget to enter your user name to accompany your marker. For security we do not advise entering your exact location. Once entered clicking your entry will load an update page. If your marker doesn't show directly, just close your browser and restart it or clear your browser cache.
I think the correct way is to centre the location first, zooming to do so, then click "your entry" so it inputs the lat and long from the centre of the screen.

I'd suggest altering the default googlemap_intro phrase and adding the FAQ I posted earlier. Mine now reads

Quote:

Welcome to the Member Map page. This feature is in beta development. To insert your entry centre the map on your location by clicking and zooming to it then just click on the "your entry" button. The latitude and longitude will change automatically. Don't forget to enter your user name to accompany your marker. For security we do not advise entering your exact location. If your marker doesn't show directly, just close your browser and restart it or clear your browser cache. <a href="http://www.mysite.com/forum/faq.php?faq=vb_board_usage#faq_add_member_map" target="_blank">More Details </a>. If you need to edit the pin, click and zoom to the location so it is in the centre of the screen, then click "your entry" again, close and restart browser.

MythoLogy 02-27-2006 11:00 PM

Thx so much for this and the support thus far! *clicks install

JohnGBSA 02-28-2006 07:22 AM

It is still not working in Firefox for me. I can not see any of the markers at all, but if I go into IE, they are all there.

Any ideas?

toytaco99 02-28-2006 01:36 PM

Quote:

Originally Posted by JohnGBSA
It is still not working in Firefox for me. I can not see any of the markers at all, but if I go into IE, they are all there.

Any ideas?

I just noticed that one of the forums I frequent (newbeetle.org) already has a good Google maps thing up and running on vb 3.5. Aparently, it's something they custom programmed. Anybody think it would make sense to ask them about how they did it, or ask if they are willing to share with the community? Just an idea. Here's their implementation:

http://www.newbeetle.org/apps/member-map/

They make it look so effortless, IMHO.

JohnGBSA 02-28-2006 02:17 PM

Brilliant site!

Lets nag them for their code! :)

toytaco99 02-28-2006 07:31 PM

Quote:

Originally Posted by JohnGBSA
Brilliant site!

Lets nag them for their code! :)

Here's his (the site owner) response when asked about sharing their info:

Quote:

Obviously, we're using Google maps API for the map display. The trickest part of that is that Google doesn't provide a geocoder to convert addresses to latitude/longitude, so we had to build our own. We were able to find data for this from the census bureau. We found two very text large files -- one for the US and one for everywhere else. The US one has zip codes and lat/long and the international one just have names of cities and lat/long. So, we imported those into MySQL and turned them into databases. Then, we wrote a script to compare the user address info aganist the geocoding databases and write the results to an XML file. we run that on a cron job every 30 minutes so that the XML file is updated with new users and address changes.

From there, it's pretty simple. Google maps API is prepared to take in an XML file, so it's pretty much straight from their example javascript on their site.

And that's about it.
He says the geocode databases are somewhere around 400MB. Woweee!

(I don't want to hi-jack this plug-in's thread, so should we start a new thread on this?)

JohnGBSA 02-28-2006 07:38 PM

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!

PixelFx 02-28-2006 10:36 PM

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? :D

Bellinis 03-01-2006 07:01 AM

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*

johon 03-01-2006 08:37 AM

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

bamahan 03-01-2006 03:05 PM

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!

bamahan 03-01-2006 07:26 PM

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!

tamborinegal 03-02-2006 04:08 AM

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

Lance Carbuncle 03-02-2006 02:55 PM

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

KevNJ 03-05-2006 07:43 PM

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.

WaaDaa 03-05-2006 07:47 PM

Thanks. Already clicked install.

kofoid 03-08-2006 11:49 PM

Help!
When I look at this picture from the description:
http://www.xboxusersgroup.com/images.../scr_main2.gif
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


All times are GMT. The time now is 11:01 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.03143 seconds
  • Memory Usage 1,909KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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