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?

MorrisMcD 03-20-2006 04:38 PM

Quote:

Originally Posted by Kintaro81
I don't have vB Pager installed but the problem with IE is the same as your. :(
Anyone fix that in another way?

And I actually DO have the pager and this installed and it works fine

bamahan 03-21-2006 02:00 PM

Quote:

Originally Posted by princessfrozen
Could this be modified to pull the zip codes (created by a custom field) from the database and generate the map based on that?

If you look at the code, there are "lookupZip" and "lookupAddress" methods. If you added a custom user field to store zip code, then you could certainly write a batch script to popuplate the map tables with markers.

The INSERT statement would look like this. I wrote a quick script (It's a total mess or I'd post it) that tries to do a lookup on the "location" field so as not to make the user enter a zip. Only about a hundred of our users put in resolvable locations, however.

The script would need to select all of the users from the DB...this statement grabs their location:

$userlocation = $db->query("
SELECT user.userid, user.username, user.usergroupid, opts.field2
FROM " . TABLE_PREFIX . "user AS user
LEFT JOIN ".TABLE_PREFIX."userfield as opts ON opts.userid = user.userid WHERE field2 IS NOT NULL");

Then loop through each one, call the lookupAddress method. If a latitued and longitude are returned do an insert like this:

$db->query_write("INSERT INTO " . TABLE_PREFIX . "googlemap (userid,username,usergroupid,text_map,lat_map,lng_ map) VALUES ('" . $loc['userid'] . "','" . $loc['username'] . "','" . $loc["usergroupid"] . "','" . $loc["username"]. " is in ".$l."!','" . $lat . "','" . $long . "')");

bamahan 03-21-2006 02:05 PM

Quote:

Originally Posted by MorrisMcD
Good question.. I forgot to ask this, but I would like this as well.. Without having to add extra members just to do it

Have you tried just inserting a new entry into the [your_table_prefix]googlemap table in your database? I haven't tried this, but it seems like you should be able to simply add a new entry in there with the appropriate latitude and longitude. You can fake a username ("Joe's Bowling Alley", etc...) and id. The insert would look something like this:

INSERT INTO [TABLE_PREFIX ]googlemap (userid,username,usergroupid,text_map,lat_map,lng_ map) VALUES ('-1','Donut Land','1','...mmmmm donuts...,[Latitude Goes Here]','[Longitude Goes Here]')

tamborinegal 03-21-2006 11:07 PM

Quote:

Originally Posted by Kintaro81
I don't have vB Pager installed but the problem with IE is the same as your. :(
Anyone fix that in another way?

Try disabling some of your other plugins and see if it works. For me it was some kind of conflict between this and vB Pager, for you it might be some other plugin.

Cheers

Clancy

MorrisMcD 03-22-2006 04:00 AM

Quote:

Originally Posted by bamahan
Have you tried just inserting a new entry into the [your_table_prefix]googlemap table in your database? I haven't tried this, but it seems like you should be able to simply add a new entry in there with the appropriate latitude and longitude. You can fake a username ("Joe's Bowling Alley", etc...) and id. The insert would look something like this:

INSERT INTO [TABLE_PREFIX ]googlemap (userid,username,usergroupid,text_map,lat_map,lng_ map) VALUES ('-1','Donut Land','1','...mmmmm donuts...,[Latitude Goes Here]','[Longitude Goes Here]')


Yea.. I guess this would work... But if I have to start editing the database manually to do this, it isnt worth it... If you do it though, make sure to use a high ID that you wont ever need

bamahan 03-22-2006 05:26 PM

Quote:

Originally Posted by MorrisMcD
Yea.. I guess this would work... But if I have to start editing the database manually to do this, it isnt worth it... If you do it though, make sure to use a high ID that you wont ever need

...or a negative number assuming the DB allows that.

Also, for these "fake" entries, you don't need to put in unique ID's. This hack doesn't care how many entries there are for each userid; it displays them all, so every fake entry could have a userid of -1

Gizmo999 03-22-2006 05:47 PM

Hotspots need a unique colour pin as well though so they stand out :( currently the only colour options are based on admin or not i think

JoeWho 03-23-2006 01:51 PM

Is the coder (stonyarc) for this add-on still supporting this product?

On the original page there is a list of things that are to be added in the next release, I was hoping this is still in progress and will be completed someday soon?

Can anybody let me know if this is still under development or has it been an abandoned?

I would like to add it to my forum but I first need to find out if it is still supported by the coder. There is another mapping program on the forum but I like this one better, I hope somebody can help me out with my questions.

Thanks.

Quote:

1.0.4 Development
- Event handler
- Hotspots functions (different colour and insert functions)
- usergroup permissions
- link to profile
- option to display the avatar
- custom markers (not yet sure)
- events and hotspots display
- style guidelines to change colours

xfaethorx 03-24-2006 06:40 PM

i'd like to install this but i'd like NOT to have my users details available to guest i need the security of the usergroup permissions and i was wondering if this hack was going to be updated? If not then I can't install it :(

kazido 03-25-2006 06:19 AM

I have it working on my site :)

Easy to install, just cant wait for the updated version. Great feature but seems to be lacking some functionality and user customisation.

Keep up the good work!
Don

kazido 03-25-2006 08:17 AM

Has anyone found that the map style buttons are white on white? I am a php noob and dont know where to look to change it.

Any help appreciated :)

Dusty Miller 03-25-2006 08:34 PM

Just wondered if there was a way of linking it to something else other that members?

I would like to keep a list of places (categorised - diff colour for each) could these be held in a new vbtable? with an option to be only added by mods or admins?

Please :cool:

Kaliyoda 03-26-2006 07:37 AM

Hi

Just installed - and I get a popup telling me that the key I registered is for another website. I'm putting my google key in the PRIMARY KEY section - between the () - is that right?

Cajun 03-26-2006 02:45 PM

Ok I installed this mod on my site and my test site. Everything works but it will not show member locations when the enter them.

I am using vb 3.5.4

Site url: http://www.d1arena.com/VBGooglemap.php

I am also using IE beta 7 for my browser. Do not know if this is my problem or not.

The markers.xml file is set to 777 and is being updated.

Done this also with no help: If your marker update or delete doesn't show directly, just close all your browser windows and reload the main map page or clear browser cache..

The users also will not update it always is blank.

Dusty Miller 03-26-2006 08:16 PM

Quote:

Originally Posted by Kaliyoda
Hi

Just installed - and I get a popup telling me that the key I registered is for another website. I'm putting my google key in the PRIMARY KEY section - between the () - is that right?

You enter the key in Admin Control Panel > vBulletin Options > vBulletin Options > VBGooglemap by StonyArc > Googlemap Key

evss 03-27-2006 04:19 AM

Thank You stonyarc,
A great hacks for us all.
Really love it on my site.

Cajun 03-28-2006 04:11 PM

Anyone get this installed and working with vbadvance 2.1.0 and vbulletin 3.5.4 and working?

I have it on my site but the markers will not show. The marker.xml file is being updated but will not show on the map.

http://d1arena.com/VBGooglemap.php

drewclark 03-28-2006 07:22 PM

It seems pretty clear that the author has abandoned this work. It's a shame - is there someone else who could pick it up and add some of the awesome features discussed? (Multiple points per user, etc).

Andyf 03-29-2006 03:22 AM

Great hack!

Is it possible to change either the font colour or the background colour in the popup message baloon that shows the text accompanying the marker?

Similarly changing the link colour in the three boxes at the the top right of the map display.

My forum uses very light text on a black background so do not want to affect that but text is almost unreadable with the font colours at present.

Andy

Gizmo999 03-29-2006 06:24 AM

Quote:

Originally Posted by Andyf
Great hack!

Is it possible to change either the font colour or the background colour in the popup message baloon that shows the text accompanying the marker?

Similarly changing the link colour in the three boxes at the the top right of the map display.

My forum uses very light text on a black background so do not want to affect that but text is almost unreadable with the font colours at present.

Andy

I don't know about marker text but this post explains how to change the three boxes text.

Andyf 03-29-2006 06:52 AM

Quote:

Originally Posted by Gizmo999
I don't know about marker text but this post explains how to change the three boxes text.

Many thanks Gizmo999

I have sorted the font colour in the popup but not sure where to add the style change.

I will keep trying but brilliant hack none the less

Edited to say I've fixed the style change and now all funtioning correctly :)

Andy

thumbsucker 03-29-2006 09:46 AM

Installed fine on 3.5.4 but browser cache issue remains.

I have to close the browser and reboot to see the marker appear on the map.

Anyone know how to fix this?

MorrisMcD 03-29-2006 08:10 PM

Is it easy to make this hack unavailable to guests and banned members?

Kaliyoda 03-30-2006 05:31 AM

Quote:

Originally Posted by Dusty Miller
You enter the key in Admin Control Panel > vBulletin Options > vBulletin Options > VBGooglemap by StonyArc > Googlemap Key

Thanks mate :)

stonyarc 03-30-2006 02:40 PM

Quote:

Originally Posted by drewclark
It seems pretty clear that the author has abandoned this work. It's a shame - is there someone else who could pick it up and add some of the awesome features discussed? (Multiple points per user, etc).


Who says I abandonned it. I just had a very very busy time at work and with xboxusersgroup.com developing the Xbox Live leaderboards on there.

I have just scheduled a new release for June.

Thanks for all your patience.

stonyarc 03-30-2006 02:42 PM

Quote:

Originally Posted by thumbsucker
Installed fine on 3.5.4 but browser cache issue remains.

I have to close the browser and reboot to see the marker appear on the map.

Anyone know how to fix this?

This will be fixed in the new version (hopefully ;) )

Tyegurl 03-30-2006 02:51 PM

you're back!!!!!!!!!!!!!

Bhuwan 03-30-2006 02:58 PM

this hack is da bomb. thx mate1

stonyarc 03-30-2006 02:58 PM

Quote:

Originally Posted by Tyegurl
you're back!!!!!!!!!!!!!

I'm alive and kicking again :cool:

stonyarc 03-30-2006 03:03 PM

Quote:

Originally Posted by stonyarc
I'm alive and kicking again :cool:

And let me just add that it's good to be back.

I had such a busy time at work and with development of the Vbulletin Xbox Live integration on xboxusersgroup.com that I really had to skip one of my most loved projects.

time for a banana dance :banana: :banana: :banana:


All times are GMT. The time now is 09:15 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.02159 seconds
  • Memory Usage 1,885KB
  • 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
  • (19)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