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)

ConqSoft 03-09-2006 12:22 AM

It probably means you didn't upload the images, or didn't upload them to the correct location.

mdfmk 03-09-2006 04:19 AM

awesome thanks

kofoid 03-09-2006 04:09 PM

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?

KevNJ 03-12-2006 01:14 PM

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 ?

MorrisMcD 03-12-2006 01:25 PM

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

PJSkiboy 03-13-2006 09:23 PM

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

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

Bluestrike2 03-13-2006 09:27 PM

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!

tamborinegal 03-17-2006 05:30 AM

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

EricaJoy 03-17-2006 12:03 PM

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?

Kintaro81 03-20-2006 02:03 PM

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?


All times are GMT. The time now is 12:15 AM.

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.03345 seconds
  • Memory Usage 1,785KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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