vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=123148)

VBDev 12-30-2008 07:03 PM

Hi all,

Has anyone this googlemap installed on his forums, and could give me an url to the vbgooglemapme.php, avaible for guests please ? I'd like to check some things ! ;)

VBDev 01-02-2009 09:34 AM

Hi stonyarc, I've seen on your board that you're using 3.7.4 too, but markers do not seem working, do you know why ?

We tried the patch posted here, but no way ... have you a solution ? :)

Glenshadow 01-05-2009 03:59 AM

I was able to get this working with vB 3.80 RC2 with a few of lpetrich's and Falcon Capt's suggested fixes.

Mainly the zoom wouldn't work when you clicked the find me, and then just a few improvments.

I didn't read back through all of the posts, but I wonder how hard it would be to add two things...

One maybe a single user that can add multiple links on there, or even everyone being able to add more than just their location. Seeing how my site deals with Off-Roading, it would be nice to mark trails on the map maybe even with a different icon.

Another idea, somehow link it to zipcode based locating. So if a vb user has their zipcode entered in their profile it will automagically populate. (I suspect this is gonna be harder to do because of the sheer amount of code it will take.)

Any thoughts ? I am going to read more of this thread tomorrow and see if I can get some ideas from the code.

jlew24asu 01-05-2009 11:50 AM

here's to hoping this gets re-released.

Glenshadow 01-05-2009 04:06 PM

Well I don't know about a re-release, but if it helps anyone I have attached my product-vbgooglemapme.xml and vbgooglemapme.php files in a zip. All I have done is added the recommended changes and it does work as I stated in earlier post.

One change I made myself is in the vbgooglemapme.xml file. Line 1479 I changed it so that there is a globe icon you click in the users postbit to locate them.I didn't like the text link and it was out of place for sure where I plopped it. I put it right under the user IM icons.

You will need to change the hyper link I added in line 1479 to you your actual domain/path_to_imag.file.

Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<!-- vBGoogleMap Me -->
$post[findme]
<!-- / vBGoogleMap Me -->

I included the globe in the zip file as well but you can replace it with anything you like.


Hope this helps anyone looking to get it working. I am far from a coder, but I will spend hours making something I like work.. or until my eyes bleed which they were last night.

Thanks to the original author and those that have added code to make it work !

FYI, my server is IIS on 2003 x64, MySQL 5.x, PHP 5.x.

Glenshadow 01-06-2009 03:59 AM

I just updated my last post and attachment with the fixes detailed here: https://vborg.vbsupport.ru/showpost....&postcount=697

This addresses the disappearing markers which I had happen today.. roughly 24 hours after I installed it and had it working. This occured when a user went to modify his marker and they just all vanished.

Hope this helps... follow the directions in that post on where to place the updated files.

I do notice now, that if you go back to the Map and select "Your Entry", the zoom and links below are blank and the map doesn't show.

This might be a fluke with one of the other patches I applied.. I will research it more later.

PtitLu 01-06-2009 08:14 AM

It still doesn't work for me (3.7.4) with theses mods. No marker is shown. It worked a few weeks ago. Does anyone get vbgooglemap working on a 3.7.4 vBulletin ?

lpetrich 01-06-2009 10:26 AM

I suggest checking <forum root directory>/markers.xml to see if it can be parsed correctly as XML. People often put ' or " into their usernames and/or description text, which causes confusion for XML parsers.

ZeroHour's fix, in this thread, had fixed that problem for me and several others -- has it ever failed for anyone?

More broadly, it would be nice if someone was willing to maintain an updated and fixed version. I myself am willing to take on that task; I am rather expert with the Google Maps API, though not with PHP or vBulletin internals or interacting with a database. But I see a potential problem with infringing on StonyArc's copyright. Has anyone been in touch with StonyArc about this add-on, its problems, and our fixes?

PtitLu 01-06-2009 02:48 PM

Quote:

Originally Posted by PtitLu (Post 1703061)
It still doesn't work for me (3.7.4) with theses mods. No marker is shown. It worked a few weeks ago. Does anyone get vbgooglemap working on a 3.7.4 vBulletin ?

Same problem with the 3.7.5 version available today.

Glenshadow 01-06-2009 06:14 PM

I can't see how 3.7x wouldn't work if I can get it to work on 3.8 RC2. 3.8 is final on Thursday....

I didn't read all of your posts, but did you check in your markers.xml and make sure they are still in there ? If so, try the files I just updated and added last night in my previous post. I KNOW they work for for me because mine disappeared.. so I went back to post 697 and did those changes, uploaded files, ran scheduled task, and they were back.

Another thing of note.. take a peek and make sure you don't have any goofy characters in any of the users data. Not saying that would be the exact cause.. but I noticed that if someone links to an image and it has & or special characters that it won't show the image.

Parture 01-07-2009 06:53 PM

When is there going to be a brand new googlemaps, preferrably HSE Edition? I base my forums on a Meeting Place Finder.

Guest20210415 01-09-2009 09:27 AM

Another question: Is it really necessary to have this markers.xml?

Everybody can download this XML file. So an unregistered user can have all members with their coordinates. Makes this sense?

If we really need this file is it not possible to protect it against violation?

Glenshadow 01-11-2009 01:11 PM

True.. I never thought about that.. but usually "most average" people won't know about this file.

You need to have it because it stores the locations.. unless you get creative with blocking the direct call of it, or re-write the whole mod to use DB.. your most likely stuck with it. It has to be accessable and writeable.

lpetrich 01-12-2009 04:31 PM

There is a way to avoid creating and using that file.

Put its contents into the map page itself, as a JavaScript array.

However, one will have to ensure that quotes and apostrophes are properly escaped.

It's possible to improve performance by caching the page and updating it whenever the positions-DB entries change. And a simple way of doing that is to calculate a MD5 or SHA1 hash value for the positions DB whenever it gets updated, and to update the page only when its hash code differs from the DB's one.

PHP has some built-in functions for that, md5() and sha1(), so it should be straightforward to implement.

DaveS 01-17-2009 07:30 AM

Quote:

Originally Posted by Glenshadow (Post 1702404)
Well I don't know about a re-release, but if it helps anyone I have attached my product-vbgooglemapme.xml and vbgooglemapme.php files in a zip. All I have done is added the recommended changes and it does work as I stated in earlier post.

Thanks for the fixes. I've come back to this to try to find a google maps members map solution as there doesn't seem to be one anywhere and this is closest I could find.

Im on vB 3.8.

I've updated with your files and I get the following problems (just in case there are additional fixes):

If I click the "Your Entry" link to add a marker it all seems to work, but when I load the Main Map I'm not shown on there. However I can see myself in the users list.

If I click on the "Your Entry" link after I've added myself the Googlemap doesn't load showing me where I had been placed.

No matter what I do it won't display the saved markers.

Any ideas?

PtitLu 01-17-2009 08:19 AM

This is exactly the problem i have since 3.7.5 (and still have on 3.8.0). Wishing someone has a solution, or this fantastic mod will be upgraded.

Phaedrus 01-17-2009 06:16 PM

Is there a way to make it update when usergroups change?

Phaedrus 01-17-2009 07:37 PM

Quote:

Originally Posted by Glenshadow (Post 1708513)
True.. I never thought about that.. but usually "most average" people won't know about this file.

You need to have it because it stores the locations.. unless you get creative with blocking the direct call of it, or re-write the whole mod to use DB.. your most likely stuck with it. It has to be accessable and writeable.

CHMOD = 644 works. (Guess Not, weird things have been happening since the upgrade to 3.8.1)

Parture 01-17-2009 09:19 PM

Why doesn't some rewrite the whole thing and start over in a new thread? I preferred the HSE edition.

lpetrich 01-18-2009 09:49 AM

I'm thinking of uploading an archive of the vbGoogleMap plugin with my fixes.

Would that be OK with you people or would that be out of line?

Trek 01-19-2009 04:28 PM

Please! =)

Quote:

Originally Posted by lpetrich (Post 1716662)
I'm thinking of uploading an archive of the vbGoogleMap plugin with my fixes.

Would that be OK with you people or would that be out of line?


DaveS 01-19-2009 06:05 PM

Quote:

Originally Posted by Trek (Post 1718034)
Please! =)

Yep I'll second that. Yes please!

DaveS 01-19-2009 06:06 PM

Just as a related aside.....
vbgooglemap HSE edition by the same author actually works better for me. It does have some bugs but it's basically useable.

MagiKelly 01-19-2009 06:41 PM

Quote:

Originally Posted by DaveS (Post 1718111)
Just as a related aside.....
vbgooglemap HSE edition by the same author actually works better for me. It does have some bugs but it's basically useable.

It does work but it was withdrawn as one of the bugs was a security issue that has not been fixed. If someone can fix the security issue I would love to have this working again.

MediaHound 01-19-2009 08:09 PM

I just want to say thanks to Loren as each time I check this thread, he's going well out of his way to help others. It's really nice to have people like that around!

lpetrich 01-19-2009 09:52 PM

ETA:

I have reluctantly decided to remove this archive, since I am concerned that it might violate certain policies.

However, all the changes that went into it are detailed elsewhere in this thread, by ZeroHour and by myself.

troppodel 01-21-2009 03:23 PM

hi there
i have installed your great mod
vb 3.8.0
i have replaced these codes
//$db->query_first("SET NAMES 'utf8'");
//$vbulletin->db->query_first("SET NAMES 'utf8'");
with // before i had a db error now seem to work but when i create a new entry i can show it in the main map
also if i run the task scheduler
any idea?
thanks
Ivan

troppodel 01-21-2009 03:31 PM

other problem
all images for the usergroups have this link

http://www.mysite.com/forum/images/g...pme/mm_20_.png

withou the colour name!

troppodel 01-22-2009 09:40 AM

now i understood my apologies for my stupid questions above

akonze 01-28-2009 09:41 PM

All works fine untill I try to insert a location. I get the following error:

Code:

Database error in vBulletin 3.8.0:

Invalid SQL:
SET NAMES 'utf8';

MySQL Error  : Unknown system variable 'NAMES'
Error Number  : 1193
Request Date  : Thursday, January 29th 2009 @ 12:39:15 AM
Error Date    : Thursday, January 29th 2009 @ 12:39:15 AM
Script        : http://xxx/vbgooglemapme.php
Referrer      : http://xxx/vbgooglemapme.php?do=addelement
IP Address    : xxx
Username      : Arthur
Classname    : vb_database
MySQL Version : 4.0.27-standard

Any ideas why this could happen?

akonze 01-29-2009 06:58 AM

Ok, I took my time and read hundreds of comments. I tried everything. I applied the 'no markers shown' fix, I fixed the 'set names utf8' mySQL errors and i fixed some other bugs. It still does not work proper. This software is definitely not supported anymore. Futhermore the developer hasn't seen in ages. Running versions are not allowed to be distributed due to the stupid license for these less then 1000 lines of php code.

I give it up. My recommendation for other admins: Do not waste your time with this addon! I invested 3 hours and could not get it running and I have at least a few php skills.

Big_J 01-29-2009 06:19 PM

I spent about 1 1/2 hours on this today and now it works like it should. I did the patches listed back through the old posts, and now I am up and running, hondarebelforum (dot) com is the site if you would like to see it work. I believe I have it set so that unreg'd visitors can see the map.

Phaedrus 02-02-2009 03:27 AM

Hmmm.... Suddenly, after upgrading to 3.8.1, this mod which was running forever correctly just stopped showing some of the markers. Others work fine...

:dunno:

dholt 02-07-2009 06:10 PM

Quote:

Originally Posted by Phaedrus (Post 1731541)
Hmmm.... Suddenly, after upgrading to 3.8.1, this mod which was running forever correctly just stopped showing some of the markers. Others work fine...

:dunno:

so is there a updated version for vb 3.8.0

Phaedrus 02-08-2009 10:25 PM

Quote:

Originally Posted by dholt (Post 1737208)
so is there a updated version for vb 3.8.0

I haven't seen one, and I haven't had time to figure out what the issue is, I have simply deactivated the mod and removed the link from my navbar until I have more time or somebody creates something.

giper 02-16-2009 11:01 PM

Hello,

I've had this mod installed and working great on my forum for about 2 months. Today, I got a pm from a member letting me know that all the member markers have been deleted from the map..... all I have now is a blank map. Any ideas why this would happen when I haven't touched any settings since it was installed?

Thanks in advance.

Falcon Capt 02-16-2009 11:19 PM

Quote:

Originally Posted by giper (Post 1746327)
Hello,

I've had this mod installed and working great on my forum for about 2 months. Today, I got a pm from a member letting me know that all the member markers have been deleted from the map..... all I have now is a blank map. Any ideas why this would happen when I haven't touched any settings since it was installed?

Thanks in advance.

Check to make sure one of your latest member additions didn't put a strange character in their pin text. Basically they should only have numbers and letters in their pin text, any other characters can stop the map from working properly (not display pins)

giper 02-16-2009 11:29 PM

Quote:

Originally Posted by Falcon Capt (Post 1746347)
Check to make sure one of your latest member additions didn't put a strange character in their pin text. Basically they should only have numbers and letters in their pin text, any other characters can stop the map from working properly (not display pins)

I will check right now.

Thanks for the quick reply. :)

Falcon Capt 02-16-2009 11:35 PM

Quote:

Originally Posted by giper (Post 1746354)
I will check right now.

Thanks for the quick reply. :)

Also check this: https://vborg.vbsupport.ru/showpost....&postcount=824

giper 02-16-2009 11:37 PM

Well, I don't think that was it. One guy had a few periods after his name.....

And another guy had a weired image link for his pimage so I deleted that but still none of the member markers appear.

Any other suggestions?

Thanks again.


All times are GMT. The time now is 04:07 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.02227 seconds
  • Memory Usage 1,837KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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