Log in

View Full Version : VBGooglemap Member Edition


Pages : [1] 2 3 4 5 6 7

stonyarc
11-01-2005, 10:00 PM
https://vborg.vbsupport.ru/
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=99920)

HOTSPOT EDITION AVAILABLE ON : https://vborg.vbsupport.ru/showthread.php?t=114149
Detailed installation instructions and screenshots in the included pdf file.

Current Features

https://vborg.vbsupport.ru/external/2008/09/9.png

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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=99920)



Feel free to support this mod and make a paypal donation to admin@stonyarc.com

https://vborg.vbsupport.ru/external/2007/08/10.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=admin%40stonyarc%2ecom&no_shipping=0&no_note=1&tax=0&currency_code=EUR&bn=PP%2dDonationsBF&charset=UTF%2d8)

(c) 2007 Stonyarc

stonyarc
11-02-2005, 06:50 PM
################################################## ##############
IMPORTANT
Set the file permissions on the marker.xml file to 777
################################################## ##############

ROADMAP

[NO LONGER SUPPORTED] 1.0.1 DONE

[NO LONGER SUPPORTED] 1.0.2 DONE
- Performance release DONE
- Phrase integration (FULL) DONE
- Minor Bug fixes DONE
- Parser optimalisation (for markers.xml) DONE
- Show marker in update window DONE

[NO LONGER SUPPORTED] 1.0.3 DONE
- XML / Special Characters problem solved
- Reload issue fixed

[NO LONGER SUPPORTED] 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
- ...

[NO LONGER SUPPORTED] 2.0.0 Available
- New version

[NO LONGER SUPPORTED] 2.0.1 Available
- enable/disable avatar support
- increased css support

[NO LONGER SUPPORTED] 2.0.2

Online user status in markers
Copyright on bottom
Online status in balloon
Local support for markers (now in images/googlemap)
Updated “your entry” page with HTML/bbcode/URL support for DIRECT linking to the map from within signature, postbit or webpage
(can be used in profile) with latitude, longitude and zoom.
Stabilty of marker set
Overall performance



2.5.0

Overall look
Separate admincp settings page
New high resolution markers
Map scale (width and height) setting in admincp
Advanced usergroup permission
Dashboard redesign
Usergroup marker type function
Approval system
Auto approve system
Small map navigation as option
Information balloon onmouse over as option
Default map type setting in admincp
“Click and forget” placement of the markers in the “your entry”
Edit/delete functions in de admincp
Edit/delete functions in main applications if usergroup is allowed
Optional setting to allow edit of own entry
“Find me” optional plugin in the postbit (included)
Number of items per page in overview list setting
Application online/offline
Scale control on the maps
Improved parsing code
Cancelled avatar support in favour of a linked image
Dashboard with loading counter


2.5.1

Cron job added
Moved function to separate php function file in the include
Query load on main page
Hiding of the findme function if the user isn't on the map
Performance
SQL error on overwrite
Too strict permission check on update of the own entry
Function tuning


3.0.0.
Security vulnerability fix

3.0.1. CURRENT VERSION
Userlist fix

yinyang
11-02-2005, 07:35 PM
woot! first reply! truly great. thanks!

stonyarc
11-02-2005, 07:38 PM
woot! first reply! truly great. thanks!

So how did the install go.

It's not the easiest one I know but there is no other way for now

Colejo
11-02-2005, 07:42 PM
I'll definately install this tonight to see how it looks.

buro9
11-02-2005, 07:45 PM
This looks fab... a vbFrapper :)

Wonderful because I can apply security to this one :D

dsotmoon
11-02-2005, 07:53 PM
will there be an option to add by zip code instead of L&L

stonyarc
11-02-2005, 07:55 PM
This looks fab... a vbFrapper :)

Wonderful because I can apply security to this one :D

I'm planning a lot of modifications to it.

Because it writes to an xml file and reads it for posting the markers the performance in high volumes can become a problem.

So a pagination system might do the trick but that's not an easy one.

Integration of events can be cool too.

And it indeed uses full Vbulletin security :smoke:

stonyarc
11-02-2005, 07:58 PM
will there be an option to add by zip code instead of L&L

On international level there still is a problem with the detail level of the maps so it's best to use L&L.

I'm however preparing the zip-code function and even an address function so you only give your address and het drops in your L&L.

Still needs some work but it's in progress.

First issue to solve is a pagination mechanism (not easy with xml creation and reading, and what criteria to take)

Snake
11-02-2005, 08:29 PM
Yay I was waiting for this, thanks! :)

Kristoph
11-02-2005, 08:35 PM
On international level there still is a problem with the detail level of the maps so it's best to use L&L.

I'm however preparing the zip-code function and even an address function so you only give your address and het drops in your L&L.

Still needs some work but it's in progress.

First issue to solve is a pagination mechanism (not easy with xml creation and reading, and what criteria to take)

I've been considering working with the google map API system, but havn't found a suitable geocoding system to work with UK postcodes... I notice you plan to include this, just wondered if you'd made any more headway than I have in finding an address translation / geocoding service?

looks like an interesting mod, but not sure I'd use its full functionality on my forums... I'd be very interested to hear how you get around the address translation issue though!

good work

stonyarc
11-02-2005, 08:38 PM
I've been considering working with the google map API system, but havn't found a suitable geocoding system to work with UK postcodes... I notice you plan to include this, just wondered if you'd made any more headway than I have in finding an address translation / geocoding service?

looks like an interesting mod, but not sure I'd use its full functionality on my forums... I'd be very interested to hear how you get around the address translation issue though!

good work

I'll keep everybody posted on the progress I make (hopefully)

exceem
11-02-2005, 08:42 PM
excellent, Ive been looking for somethign like this, will install tomorrow

thanks :D

nix
11-02-2005, 08:47 PM
Can anyone else add thier location in Firefox? Works in IE though.

stonyarc
11-02-2005, 08:47 PM
So did anybody install it yet.

Please post your URL if you installed it. I'm really curious :smoke:

TyleR
11-02-2005, 08:49 PM
Installed...just one thing..after entering my Google Map Key, and going to the link in the header, the map itself doesnt show up..and when i go to ..php?do=yourentry, the page just comes up with the header and footer wrapping, no template in the middle..

- Tyler

stonyarc
11-02-2005, 08:53 PM
Can anyone else add thier location in Firefox? Works in IE though.

I tested only the main map on firefox.

Problem is that he doesn't update the form fields in Firefox. I'll have a look.

In Opera it should work.

stonyarc
11-02-2005, 08:54 PM
Installed...just one thing..after entering my Google Map Key, and going to the link in the header, the map itself doesnt show up..and when i go to ..php?do=yourentry, the page just comes up with the header and footer wrapping, no template in the middle..

- Tyler

Can you please post a link tyler?

TyleR
11-02-2005, 08:59 PM
Can you please post a link tyler?

nevermind, i figured it out lol..very nice, thanks :D

stonyarc
11-02-2005, 09:00 PM
nevermind, i figured it out lol..very nice, thanks :D

So it does work :mad:

DS MrSinister
11-02-2005, 09:06 PM
installed like a charm. :D

working great m8 thx.

TyleR
11-02-2005, 09:06 PM
Okay, im just blind..sorry again :P

Works like a charm, thanks :)

stonyarc
11-02-2005, 09:08 PM
well sort of..i place my lattitude and longitude into the "Your Location" area, saved it, and no dot has appeared yet, and the coordinates are still in my "Your Location" link..

Tyler,

That has to do with your browser caching. Quick fix is to

1 clear your cache and refresh the page
OR
2 close all browser windows and reconnect to the page

The marker will not appear on the small map only on the BIG one

TyleR
11-02-2005, 09:14 PM
Okay, im just blind..sorry again :P

Works like a charm, thanks :)

I edited it..just after i posted i saw the little note at the bottom of the text box :)

Love it, thanks Stony :)

stonyarc
11-02-2005, 09:20 PM
Can anyone else add thier location in Firefox? Works in IE though.

All,

I just fixed the firefox issue. It's tested and fixed.

Only reload of the xml is needed. Don't forget to select overwrite yes in your plugin system.

Version on server is now ok too

Greetz

stonyarc
11-02-2005, 09:34 PM
installed like a charm. :D

working great m8 thx.

You must be my number 1 fan, running both my modifications :smoke:

Itworx4me
11-02-2005, 09:34 PM
I have found an error. When you click on the marker (balloon) it brings up user info at http://www.xboxusersgroup.com/forums/search?=username.

Looking for a way to fix this now.

Thanks,
Itworx4me

stonyarc
11-02-2005, 09:37 PM
I have found an error. When you click on the marker (balloon) it brings up user info at http://www.xboxusersgroup.com/forums/search?=username.

Looking for a why to fix this now.

Thanks,
Itworx4me

Thanks for the catch correcting that now

nix
11-02-2005, 09:39 PM
Edited for a mistake on my part. Works great!

stonyarc
11-02-2005, 09:58 PM
I have found an error. When you click on the marker (balloon) it brings up user info at http://www.xboxusersgroup.com/forums/search?=username.
Looking for a way to fix this now.
Thanks,
Itworx4me

In my hurry to release the beta, I left some links from the test version in the balloon.

The current version is fully ok

Links to Xboxusersgroup.com remained in the balloon => STATUS FIXED VERSION ON SERVER IS OK ONLY RELOAD PLUGIN (SET OVERWRITE YES)

Sorry for that one!!!!!!!!!!

You can safely edit the links in the templates just search for xboxusersgroup.com (in several javascripts) or just reload the XML with overwrite to yes.

Greetz

Gryphon
11-02-2005, 10:00 PM
Our site uses a dark background and white text, so the text in the balloon is white on white. Same with the text in the map/hybrid buttons.

Very nice work stonyarc.

stonyarc
11-02-2005, 10:09 PM
Our site uses a dark background and white text, so the text in the balloon is white on white. Same with the text in the map/hybrid buttons.
Very nice work stonyarc.

I think that can easily be solved by adding some CSS elements or direct font color items in the javascripts.

Give a yell if you need some help with that

steelerwatch
11-02-2005, 10:57 PM
I installed it - doesn't work.

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

I tried IE, Firefox, cleared my cache, closed the browsers...everything suggested.

Omega Prime
11-02-2005, 11:37 PM
A suberb hack!! While I'm currently the only person to have tested this on my site, I do hope other members will be able to view it :)

stonyarc
11-03-2005, 12:00 AM
I installed it - doesn't work.

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

I tried IE, Firefox, cleared my cache, closed the browsers...everything suggested.

Well, I think you forgot the most important one

################################################## ##############
IMPORTANT
Set the file permissions on the marker.xml file to 777 or 766
################################################## ##############

The script doesn't seem to have enough right to write to your file marker.xml.

Set the permission to 777 (chmod using an ftp client) and it will work.

Hope this helps

stonyarc
11-03-2005, 12:03 AM
A suberb hack!! While I'm currently the only person to have tested this on my site, I do hope other members will be able to view it :)

Hello O Prime,

I checked your site. Don't forget to generate to correct google API key for your website (tokyo) and add it in the vboptions

Details are included in the installer.txt

Carl Anderson
11-03-2005, 12:21 AM
Great Hack = Click installed......

http://goldismoney.info/forums/VBGooglemap.php

DS MrSinister
11-03-2005, 01:06 AM
<a href="http://www.sinisterslair.com/forums/VBGooglemap.php" target="_blank">http://www.sinisterslair.com/forums/VBGooglemap.php</a>

steelerwatch
11-03-2005, 01:10 AM
Well, I think you forgot the most important one

################################################## ##############
IMPORTANT
Set the file permissions on the marker.xml file to 777 or 766
################################################## ##############

The script doesn't seem to have enough right to write to your file marker.xml.

Set the permission to 777 (chmod using an ftp client) and it will work.

Hope this helps

Nope. I said I did ALL the recommended fixes. Setting the xml file permissions was one of the things I did.

GamerJunk.net
11-03-2005, 01:37 AM
Nice, if you have a custom style you need to upload the images to that styles images/buttons folder.

Great hack and thanks a lot.

DS MrSinister
11-03-2005, 01:58 AM
i would to be on the safe side.

Omega Prime
11-03-2005, 02:01 AM
Hello O Prime,

I checked your site. Don't forget to generate to correct google API key for your website (tokyo) and add it in the vboptions

Details are included in the installer.txt

Yeah, I already did that before I installed the map :)

TTG
11-03-2005, 03:12 AM
Installed with no problems .. thanks for the addition :-

The Map (http://www.techguyscafe.com/forum/VBGooglemap.php?do=showmain)

Clicked install

addict
11-03-2005, 03:40 AM
Great mod!

Clicked Install

dirtycrow
11-03-2005, 04:15 AM
PERFECT!!!!! thank you so much!

chader144
11-03-2005, 04:57 AM
I love this.. (makin some good mods lately :) )

for future requests: can you add more fields or allow pictures to be added?

GuaRRand
11-03-2005, 05:44 AM
Cant seem to get it to work.
I dont get an ENTRY button or anything...
I cleard the cache and restarted the browser etc... but still no go.
I just get the main empty worldmap.

ideas?

GuaRRand
11-03-2005, 05:52 AM
I am using Firefox 1.51 BETA btw :)

AndyA
11-03-2005, 06:51 AM
Great addition to my forum, thanks a lot.

www.throttlejockey.co.uk

sickboy6ths
11-03-2005, 06:55 AM
Really great addition... Have been searching and waiting for this for quite a while... Full respect! Thanks!

berberber
11-03-2005, 07:13 AM
Thanks I installed it, i ve explained my members they have to do it again, after Frappr

(http://help.berberber.com/)

stonyarc
11-03-2005, 08:12 AM
Cant seem to get it to work.
I dont get an ENTRY button or anything...
I cleard the cache and restarted the browser etc... but still no go.
I just get the main empty worldmap.
ideas?

The buttons are normally only hidden when not logged in.
Do you have a URL?
It was tested on firefox not on the beta :ermm:

/edit
Your map does work on all officially released browsers. If the problem remains after the release of the final new firefox I'll have a debug session.

I hurts to see that you removed the credits :disappointed:

stonyarc
11-03-2005, 08:16 AM
I love this.. (makin some good mods lately :) )

for future requests: can you add more fields or allow pictures to be added?

The avatar could be nice but might make it heavier

stonyarc
11-03-2005, 08:34 AM
Nope. I said I did ALL the recommended fixes. Setting the xml file permissions was one of the things I did.

Very strange. Did you change items in the code? I cannot reproduce the error you are getting. Please download the latest version on the server and do a clean install (set OVERWRITE to yes in plugin). That kind of error can happen with special characters too but I should have captured them all. I don't see any unhandeld special char in your xml.

Did you change any data in the database directly because the lng and lat seems way of.

Advice:

1. Install the latest version
2. delete all entries in the googlemap table

http://www.steelernation.com/forums/markers.xml

var request = GXmlHttp.create();
request.open("GET", "markers.xml", true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = request.responseXML;
markers = xmlDoc.documentElement.getElementsByTagName("marker"); // THIS LINE IS IN ERROR
window.setTimeout(mapOne,timeOut);
document.getElementById('nb').value=markers.length ;
} else {
//alert(request.readyState);
}
}
request.send(null);

MrNase
11-03-2005, 10:40 AM
Working great, thanks! :)

I have some questions/suggestions:

Can the filename please be in lowercase characters?

Can users enter the long. and alt. on theirselves? I have a list with the coordinates of most cities in Germany but the user still has to scroll around to find his city.

GuaRRand
11-03-2005, 11:21 AM
WHy do only the large countries like the USA and UK have cities and roads etc on them??
The normal googlemap has detailed info about most countries/cities/villages.

Or is that part of the
Planned Features
address locator for countries with detailled googlemaps
pagination

stonyarc
11-03-2005, 11:32 AM
WHy do only the large countries like the USA and UK have cities and roads etc on them??
The normal googlemap has detailed info about most countries/cities/villages.
Or is that part of the

Well in fact Google hasn't released the detailed maps of Europe and others yet.

This decission is up to google.

From what I've heard they are working on other countries as we speak

stonyarc
11-03-2005, 11:35 AM
Working great, thanks! :)
I have some questions/suggestions:
Can the filename please be in lowercase characters?
Can users enter the long. and alt. on theirselves? I have a list with the coordinates of most cities in Germany but the user still has to scroll around to find his city.

I'll release the next update in lowercase

You can edit the googlemap templates and change the <input text> for longitude an lattitude. Just remove to readonly's that are in there and your users can put it in themselves.
I think there are 4 occurences in total in VBGooglemap_display_yourlocation
VBGooglemap_set_yourlocation.

Hope this helps

stonyarc
11-03-2005, 11:49 AM
<font color="Red">lattitude should be latitude => STATUS FIXED VERSION ON SERVER IS OK ONLY RELOAD PLUGIN (SET OVERWRITE YES)</font>

GuaRRand
11-03-2005, 11:54 AM
Hehehe....

stonyarc
11-03-2005, 01:18 PM
Well it's nice to see that you all like the VBGooglemap and VBStatExtended.

They still needs some work both but I'll get there. These are only the first ones I'm making.

BTW thank you for the nice ratings :smoke:

Carl Anderson
11-03-2005, 01:33 PM
Is there any way around this I have a lot of users that have Firefox 1.5?

banshee
11-03-2005, 01:44 PM
Love this addon, I've been waiting for a member map for over a year now and this works perfect.

Zip codes would be nice since everyone knows there zip code. Also if you do the Zip code can you make an option to pull from the users profile. I have other programs that give them details based on there zip code if provided in the Profile.

Thanks

AndyA
11-03-2005, 01:47 PM
Something has happened to my map. it had several pins on it earlier today but now it doesn't show any at all. My long - lat is still set as before. Any ideas?

www.throttlejockey.co.uk

Colejo
11-03-2005, 01:48 PM
How does the www.frappr.com map get their map to work with zip codes?

stonyarc
11-03-2005, 01:54 PM
Something has happened to my map. it had several pins on it earlier today but now it doesn't show any at all. My long - lat is still set as before. Any ideas?
www.throttlejockey.co.uk

Andy,

I think I found your error.

If you look at the text entry "This is me, Mr "Z"". The double quotes make it behave crazy.

Please remove those and it should be fine. You can do that directly in the googlemap db. I'll correct the php script to escape those random quotes.

stonyarc
11-03-2005, 01:55 PM
Is there any way around this I have a lot of users that have Firefox 1.5?

I've added it to the known issues list. I'll be looking at it in a little while.

stonyarc
11-03-2005, 01:59 PM
How does the www.frappr.com map get their map to work with zip codes?

Because they have a large zipcode / L&L database behind it.

http://earth-info.nga.mil/gns/html/cntry_files.html this one has about all zipcodes and locations in the world except US.

I could mix up a super global DB for the zipcodes but than it would be very hard on diskspace and your database server if you don't have enough performance in there.

AndyA
11-03-2005, 02:03 PM
I still see my map but no pins.

http://www.throttlejockey.co.uk/forum/VBGooglemap.php

AndyA
11-03-2005, 02:05 PM
Andy,

I think I found your error.

If you look at the text entry "This is me, Mr "Z"". The double quotes make it behave crazy.

Please remove those and it should be fine. You can do that directly in the googlemap db. I'll correct the php script to escape those random quotes.

Sorry but I'm unsure what to do ?

stonyarc
11-03-2005, 02:06 PM
Sorry but I'm unsure what to do ?

Go to phpmyadmin / open your database / go to the googlemap table / select browse

Go to the user Zimtok and in the text field remove the double quotes around his Z

AndyA
11-03-2005, 02:10 PM
I see a tick box, a pen symbol and an X . . . what do I do next ?

AndyA
11-03-2005, 02:13 PM
Aha, figured it out, thanks for your help.

Will you let me know if you release an update ? :nervous:

stonyarc
11-03-2005, 02:16 PM
Aha, figured it out, thanks for your help.

Will you let me know if you release an update ? :nervous:

Testing the updated script now to correct the single and double quote issue.

Quick fix

Add

$texte = str_replace( '"', '', $texte );
$texte = str_replace( '\'', '', $texte );


To the replace_accent function in VBGooglmap.php or Install version 1.0.1

Don't forget to restart your browser or clear your cache before testing the updated version

dirtycrow
11-03-2005, 02:29 PM
Testing the updated script now to correct the single and double quote issue.

Quick fix

Add

$texte = str_replace( '"', '', $texte );
$texte = str_replace( '\'', '', $texte );


To the replace_accent function in VBGooglmap.php or Install version 1.0.1

where do you add that?

Carl Anderson
11-03-2005, 02:29 PM
Testing the updated script now to correct the single and double quote issue.

Quick fix

Add

$texte = str_replace( '"', '', $texte );
$texte = str_replace( '\'', '', $texte );


To the replace_accent function in VBGooglmap.php or Install version 1.0.1

Can we just upload the new VBGooglmap.php?

stonyarc
11-03-2005, 02:31 PM
Just add it below

$texte = str_replace( '&', ' ', $texte );

You can also download the zip-file and use FTP to overwrite the VBGooglemap.php. This might be easier.

stonyarc
11-03-2005, 02:32 PM
Can we just upload the new VBGooglmap.php?

Yep that is the cleanest way.
I just started looking at the Firefox issue now. This type of issues is why I really wanted it to be released in beta. I'm sure you all will tell me when it's ready for full release.

stonyarc
11-03-2005, 02:37 PM
Nope. I said I did ALL the recommended fixes. Setting the xml file permissions was one of the things I did.

If I click http://www.steelernation.com/forums/VBGooglemap.php

I get the "Cannot open XML File error" that is due to permissions

Colejo
11-03-2005, 02:48 PM
I finally installed it. Thanks.

stonyarc
11-03-2005, 02:53 PM
Is there any way around this I have a lot of users that have Firefox 1.5?

Hello Carl,

Buttons don't show correctly in Firefox 1.5 => STATUS TESTED, This is not a bug this is a feature. The buttons are automatically hidden if a user is not logged in because only logged in users are allowed to set their location.

If you log out in IE or whatever browser and click on the googlemap the buttons are hidden. This is done by the script. Showing your entry to non-registered users has no function because I automatically get the userid when logged in.

So not a bug but a FEATURE.

Tested on Firefox 1.0.6, 1.0.7, 1.5 RC1, Opera and Internet Explorer so I think it's cross browser.

The Geek
11-03-2005, 03:08 PM
Well done and great addition.

What I would love to get around is the caching problem however Ill gamble thats a google thing and not you.

1 suggestion: Make a setting so we can call it something different than vbgooglemap.php

Keep up the good work

Carl Anderson
11-03-2005, 03:09 PM
Hello Carl,

Buttons don't show correctly in Firefox 1.5 => STATUS TESTED, This is not a bug this is a feature. The buttons are automatically hidden if a user is not logged in because only logged in users are allowed to set their location.

If you log out in IE or whatever browser and click on the googlemap the buttons are hidden. This is done by the script. Showing your entry to non-registered users has no function because I automatically get the userid when logged in.

So not a bug but a FEATURE.

Tested on Firefox 1.0.6, 1.0.7, 1.5 RC1, Opera and Internet Explorer so I think it's cross browser.

I am logged in and I get no buttons when using Firefox - could this be a cookie issue?

Carl Anderson
11-03-2005, 03:14 PM
I am logged in and I get no buttons when using Firefox - could this be a cookie issue?

I will answer my own question - yes I cleared my cookies and can now view the buttons.............

Thanks for checking this out - sorry I should have tried it..

Colejo
11-03-2005, 03:17 PM
While you can limit the link in the navbar to be only viewable to registered members if someone gave the link out anyone can view it. How would I make it so only registered members can see the actual map?

Colejo
11-03-2005, 03:20 PM
I have one more question. When you click on the username in the marker it takes you to my home page. Can it be set so that when you click on the username it takes you to the users profile?

stonyarc
11-03-2005, 03:26 PM
I have one more question. When you click on the username in the marker it takes you to my home page. Can it be set so that when you click on the username it takes you to the users profile?

Yep this is planned to be by default in the next version. Now you can change it to whatever you want.

The code to make it viewable for only registered users is also included in the install.txt file.

Colejo
11-03-2005, 03:29 PM
Yep this is planned to be by default in the next version. Now you can change it to whatever you want.

The code to make it viewable for only registered users is also included in the install.txt file.

All that did is make the link not viewable in the navbar but if someone gave the direct link out to someone that is not registered they could still see the page.

stonyarc
11-03-2005, 03:40 PM
All that did is make the link not viewable in the navbar but if someone gave the direct link out to someone that is not registered they could still see the page.
Any tips on fixing that are welcome.

Deimos
11-03-2005, 03:42 PM
Would someone be kind enough to tell me how to change the font colour on the tags?

My forum uses a dark background and the info tags are all blank, you have to hightlight it to see the words.

schford
11-03-2005, 04:25 PM
Is it possible to set the location info to link to another seciton of the website.

Eg I am thinking of using it for users to put in their locations so their name woudl go to their profile but also I have a databse of rebreather friendly destinations - would be great if we could put thes eon the map and then further information from those was available eg they clicked on it and it took us to the entry in ou RB friendly destinatiosn database.

Thanks

Stuart

ConqSoft
11-03-2005, 05:40 PM
Just installed.

Added my location.

"Users" still shows 0 and nothing shows on map.

markers.xml did get updated, and shows my data.

If I go back to "Your Entry", it shows my entry and gives me the option to delete.

ConqSoft
11-03-2005, 05:50 PM
Interesting. It finally showed up, even after restarting the browser/forcing a hard refresh. Oh well.

stonyarc
11-03-2005, 05:59 PM
Interesting. It finally showed up, even after restarting the browser/forcing a hard refresh. Oh well.

Well, It's a browser caching issue. It's tricky to reload the map. Easiest way is just close browser and restart.

ConqSoft
11-03-2005, 06:18 PM
In the popup that comes up, the username links to the domain index. Should it link to their profile?

dan35
11-03-2005, 06:19 PM
Hack of the Month :)

stonyarc
11-03-2005, 06:20 PM
In the popup that comes up, the username links to the domain index. Should it link to their profile?

You can edit the link yourself. In release this will be an option to set the link in the admincp.

It's on the to do list

stonyarc
11-03-2005, 06:21 PM
Hack of the Month :)

I really hope so. :rolleyes:

Or will I get two with the VBStatExtended :smoke:

ConqSoft
11-03-2005, 06:29 PM
You can edit the link yourself. In release this will be an option to set the link in the admincp.

It's on the to do list

Cool. Just wanted to make sure it wasn't a problem with my system while I'm testing.

Thanks

Holidazed
11-03-2005, 07:18 PM
I think that can easily be solved by adding some CSS elements or direct font color items in the javascripts.

Give a yell if you need some help with that
I am having the same color issues in my vbgooglemap. white on white text.

Can you help?

GuaRRand
11-03-2005, 07:35 PM
Because they have a large zipcode / L&L database behind it.

http://earth-info.nga.mil/gns/html/cntry_files.html this one has about all zipcodes and locations in the world except US.

I could mix up a super global DB for the zipcodes but than it would be very hard on diskspace and your database server if you don't have enough performance in there.
I got no probs with that :D
Throw it in there!! :)
(or maybe make a lite and full version!?!?)

DJ XtAzY
11-03-2005, 09:12 PM
does running this hack have a high server load?

TTG
11-03-2005, 09:49 PM
Was working well for a few hours .. 7 members added their info and all disappeared !?

banshee
11-03-2005, 10:07 PM
I am having the same color issues in my vbgooglemap. white on white text.

Can you help?

Me to how can I add in the Font color to make the bubbles text darker?

stonyarc
11-03-2005, 10:29 PM
Was working well for a few hours .. 7 members added their info and all disappeared !?

TTG,
Can you please put a URL?
It's probably a data problem in the text field

/Edit

TTG,

It's the users Stevie Jay that is causing the problem he posted in his text field ?.

This is a non escaped character. Quick fix edit the googlemap table and remove the special character from name and text.

I'll modify the escape code.

stonyarc
11-03-2005, 10:30 PM
Me to how can I add in the Font color to make the bubbles text darker?

I'll drop in a how to

TTG
11-03-2005, 10:33 PM
TTG,

Can you please put a URL?

It's probably a data problem in the text field

Clicky here (http://www.techguyscafe.com/forum/VBGooglemap.php?do=showmain)


Thanks stonyarc .. problem now solved.

Colejo
11-03-2005, 10:34 PM
Any tips on fixing that are welcome.

I know someone has to know how to do this. Anyone?

stonyarc
11-03-2005, 11:25 PM
Minor update for people with the DocumentElement Error

This is most of the time caused by a user that has used very special characters in the text file. I'm working on a full check but there are a lot of them like ? and many others.

Special Characters in text => STATUS IN PROGRESS, I CHANGED THE STR_REPLACE WITH A BROADER ONE TO HANDLE MORE SPECIAL CHARACTERS SO THE RISK OF FAILING BECAUSE OF SPEC CHARS IS ALMOST RESOLVED => Download and overwrite VBGooglemap.php

Remember this is still a beta but it's going quite well I think

stonyarc
11-03-2005, 11:41 PM
Me to how can I add in the Font color to make the bubbles text darker?

Ok here it goes

To edit the color of the text displayed in the balloon

Go to the VBGooglemap_display_map template
(It also occurs in the other templates but it's currently not used YET)

look for


if ( (type=="yellow") || (type=="red") ){
title = "<a href='/'>"+ title +"</a>";
}
var content = "<div align=\"center\"><strong>"+title +"</strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\">" + text +"</div>";


and change this to


if ( (type=="yellow") || (type=="red") ){
title = "<a href='/'><font color='#000000'>"+ title +"</font></a>";
}
var content = "<div align=\"center\"><strong><font color='#000000'>"+title +"</font></strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\"><font color='#000000'>" + text +"</font></div>";


You can change the #000000 to anything you like

I'll make the font color a admincp option to add. This should make life easier for some.

TTG
11-03-2005, 11:42 PM
Remember this is still a beta but it's going quite well I think

Working amazingly well .. I had no idea google maps were so detailed.
I can almost see the holes in my roof when I zoom in :)

stonyarc
11-03-2005, 11:48 PM
Working amazingly well .. I had no idea google maps were so detailed.
I can almost see the holes in my roof when I zoom in :)

Time to get on the roof :smoke:

Too bad it's not in Europe yet.

I have detailed zip-codes too but if I would do that it would cause and amazing extra data load on the database. Just think all the zipcodes in the world. If you have only local users 1 country that could be done. It even makes my life easier.

In the US you can even find scripts that give you the L&L based on your address. just fill it in and it sets your marker.

I think I would need some other infrastructure. That would mean building a server farm to handle that amount of data.

silurius
11-04-2005, 12:15 AM
Fantastic extension! Installed without a hitch.

Any chance you could define your roadmap for this, plus tips & tricks, on the first reply on this thread?

If you are taking requests, I would vote to have VBGooglemap read user profile fields, and do something to integrate it with an events calendar.

Great stuff!

chader144
11-04-2005, 12:50 AM
Google Map API resources
http://mapki.com/index.php?title=Main_Page

Just to help.

Google Maps API Basic Tutorial
http://www.econym.demon.co.uk/googlemaps/index.htm

TJFweb
11-04-2005, 03:54 AM
Nice hack. I had to tweak some of the template code though...

tlp000999
11-04-2005, 07:24 AM
** installed ** http://www.falconryforum.co.uk/VBGooglemap.php

- first installation, got the xbox urls.
- re-installed the fix, but now the links in the bubbles just go to forum root
- updated all the pyg_addNewPoint(lat,lng,title,text,type) functions to

function pyg_addNewPoint(lat, lng, title, text, type) {
var point = new GPoint(lat, lng);
var icon = pyg_icon(type);
var marker = new GMarker(point, icon);
if ( (type=="yellow") || (type=="red") ){
title = "<a href='/memberlist.php?do=getall&ausername="+title+"'>"+ title +"</a>";
}
var content = "<div align=\"center\"><strong>"+title +"</strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\">" + text +"</div>";
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(content);
});
map.addOverlay(marker);
}


Think I need to url encode the title in the above but not familiar enough with the php's way of doing it.

The Geek
11-04-2005, 08:45 AM
Another suggestion that would make this even better:

Create a shortcut to various countries (ie. lat, long and zoom level). Already no one can even see the UK on mine. Its one giant red blob!

reteep
11-04-2005, 09:33 AM
I got a strange bug, yesterday it worked on IE and Firefox. Today the red flags are only shown on Firefox, not on IE anymore. Any clue why?

http://www.musiker-board.de/vb/VBGooglemap.php

stonyarc
11-04-2005, 09:44 AM
I got a strange bug, yesterday it worked on IE and Firefox. Today the red flags are only shown on Firefox, not on IE anymore. Any clue why?

http://www.musiker-board.de/vb/VBGooglemap.php


Hello Stormblast,

It's a purely data error. I've written a remove special chars function but not all chars are in there.

Quick fix is to open phpmyadmin and remove any special chars from the text field.

<marker lng="10.968475341796875" lat="49.02514993862271" title="Archers in Stint" text="Wei?enburg" type="red"/>

I think this one may be causing the problem. Can you give the special chars people are using so I can add them to my list.

Greetz

The Geek
11-04-2005, 10:48 AM
I havent looked at the code - however why not just use htmlspecialchars() or vbs htmlspecialchars_uni() function to write the data to the markers?

stonyarc
11-04-2005, 02:40 PM
I havent looked at the code - however why not just use htmlspecialchars() or vbs htmlspecialchars_uni() function to write the data to the markers?
I was already testing that. But stil thanks

The htmlspecialchars is not enough. Problem starts with the creation parsing of the markers.xml clientside. There are some characters that make the XML parsing go bananas.

DB insert/update is never the issue.

Version 1.0.2 will be released later tonight. I added more characters to the list to filter out before creating the xml file.

GrendelKhan{TSU
11-04-2005, 03:40 PM
wow!! how freakin cool is this??
nice job!! WORKS GREAT on 3.5.0

* GrendelKhan{TSU installs with big grin!! ^_^

one request:

CAN YOU MAKE PHRASES FOR THIS?????

its a world map and I got multi-language site. ;) :)

stonyarc
11-04-2005, 03:49 PM
wow!! how freakin cool is this??
nice job!! WORKS GREAT on 3.5.0

* GrendelKhan{TSU installs with big grin!! ^_^


one request:

CAN YOU MAKE PHRASES FOR THIS?????

its a world map and I got multi-language site. ;) :)

Sure,

Which would you like in phrases?

The full text in the templates too?

addict
11-04-2005, 04:07 PM
I found a little bug using Safari, so I'm not sure if it affects other browsers...

How to reproduce:
1. Click on a marker to open the balloon.
2. Without closing the balloon, click anywhere else on the map.

On Safari (not sure with other browsers), the map completely disappears, and the latitude/longitude fields show 'NaN' (I assume for 'not a number').

I wonder if you could add some code to handle this situation... like maybe force the balloon close before updating the latitude/longitude?

Otherwise this is great stuff... my users are loving it so far.

MrNase
11-04-2005, 04:31 PM
For a little performance boost, in VBGooglemap.php you should replace all:

$db->query(

with

$db->query_write(


stonyarc: Please make sure to use query_read and query_write where they are needed :)

addict
11-04-2005, 04:32 PM
Well, I found a little different bug using IE 6.0.2800.1106 on Windows 2000.

I attached a screenshot of what the balloon pop-up is doing. However, it doesn't have the same 'NaN' bug I reported with Safari... it 'does' close the bubble and update the map.

Once again, thanks for the great extension. :)

GrendelKhan{TSU
11-04-2005, 04:34 PM
Sure,

Which would you like in phrases?

The full text in the templates too?

definitely!!

basically...gulp..... everything (or anything that is possible)!! :p :)
that would be KICK@SS!!!

it soo sucks when there is a great hack but no full phrases. :( many of user get way bummed.

stonyarc
11-04-2005, 06:24 PM
All,

I posted a little roadmap in the first reply.

I'll add features as progress is made

https://vborg.vbsupport.ru/showthread.php?p=810978#post810978

Greetz

Holidazed
11-04-2005, 07:09 PM
Ok here it goes

To edit the color of the text displayed in the balloon

Go to the VBGooglemap_display_map template
(It also occurs in the other templates but it's currently not used YET)Awesome! Perfect fix. This is so cool.

Now, is there a way to color code more groups? Right now you just do moderator (which you include admins in) and member. Can we add something so we can assign images or colors to all our groups?

stonyarc
11-04-2005, 07:33 PM
Awesome! Perfect fix. This is so cool.

Now, is there a way to color code more groups? Right now you just do moderator (which you include admins in) and member. Can we add something so we can assign images or colors to all our groups?

I added "assign images or colors to all groups in admin CP" to the roadmap for 1.0.3

Holidazed
11-04-2005, 07:34 PM
Is that a version we have now? How do I configure that?

stonyarc
11-04-2005, 07:37 PM
Is that a version we have now? How do I configure that?

I'm now on 1.0.1

1.0.2 is a performance release

1.0.3 is feature release

Just check the first post of this thread (with a lot of green in it)

Holidazed
11-04-2005, 07:46 PM
Well, I just downloaded the file again in the first post and re-uploaded it (allowing for overwrite) and it says it is now currently running v1.0.0.

Where do I get v1.0.1? Well, it does not really matter since I am need v1.0.3 to get the color thing. I will wait patiently, thank you.

stonyarc
11-04-2005, 08:10 PM
Well, I just downloaded the file again in the first post and re-uploaded it (allowing for overwrite) and it says it is now currently running v1.0.0.

Where do I get v1.0.1? Well, it does not really matter since I am need v1.0.3 to get the color thing. I will wait patiently, thank you.
The version now online is 1.0.1 I corrected the version number in the XML.

http://www.xboxusersgroup.com/forums/VBGooglemap.php is always running the development version.

stonyarc
11-04-2005, 08:56 PM
definitely!!

basically...gulp..... everything (or anything that is possible)!! :p :)
that would be KICK@SS!!!

it soo sucks when there is a great hack but no full phrases. :( many of user get way bummed.

Just to let you know that the version on http://www.xboxusersgroup.com/forums/VBGooglemap.php?do=showmain

is running full phrases now.

This will be released in 1.0.2

stonyarc
11-05-2005, 01:15 AM
Tested and running on 3.5.1

TheComputerGuy
11-05-2005, 08:47 AM
Installed and running great!

stonyarc
11-05-2005, 12:54 PM
Hack of the Month :)

Don't forget to nominate it :squareeyed:

stonyarc
11-06-2005, 10:35 AM
Just to let you know that version 1.0.2 is almost finished.

If you see the first reply you can see the done.

What I changed

- Special character in XML issue is now no longer handled when creating the XML but on initial insert in DB
- Query performance (thanks for the tip)
- You marker once set will also appear on the small map. (I'm looking to add drag functionality but that's not an easy one)

Any other feature requests other than the known ones?

Greetz

pgowder
11-06-2005, 11:40 AM
1. Ability to upload a photo
2. Have the points automactially placed--have the map read from the DB.

stonyarc
11-06-2005, 12:55 PM
1. Ability to upload a photo
2. Have the points automactially placed--have the map read from the DB.

The locations ARE stored in the DB

your entry inserts them.

The googlemap requires to read the info out of an xml file. This is how the google API works.

So the scripts creates the XML file which is than read by the javascript parser function.

NuclioN
11-06-2005, 02:27 PM
alt caption when hoovering on the marker :)

StarBuG
11-06-2005, 06:33 PM
Hi

I tried to install this hack but I get "Cannot open XML File"

The markers.xml file is chmod 777 (-rwxrwxrwx)
it is in the forum root like the VBGooglemap.php

I have uploaded the product to the product manager and set the api key in the options for my forum.

Any Idea what is wrong?

EDIT: Got it to work after I set the whole server path to the file into VBGooglemap.php to specify the markers.xml location.

Unfortunatly Google does not have detailed maps about europe.
That is making this hack nearly impossible to use for me because I can?t find my city NOR can I enter long and lat by hand (Suggestion!! *hint* *hint* ;))

ricker
11-06-2005, 08:46 PM
Effortless install, very impressive. This rocks!

ricker
11-06-2005, 09:21 PM
I have an idea ... we are a Jeep-related forum, and it might be cool if the admin can post areas of interest (off-highway hotspots) on the map, like the Rubicon Trail or Moab, UT, but give them a different way of displaying, so you can tell it's not a user post.

stonyarc
11-06-2005, 10:06 PM
Hi
I tried to install this hack but I get "Cannot open XML File"
The markers.xml file is chmod 777 (-rwxrwxrwx)
it is in the forum root like the VBGooglemap.php
I have uploaded the product to the product manager and set the api key in the options for my forum.
Any Idea what is wrong?
EDIT: Got it to work after I set the whole server path to the file into VBGooglemap.php to specify the markers.xml location.
Unfortunatly Google does not have detailed maps about europe.
That is making this hack nearly impossible to use for me because I can?t find my city NOR can I enter long and lat by hand (Suggestion!! *hint* *hint* ;))

http://earth-info.nga.mil/gns/html/cntry_files.html this one has about all zipcodes and locations in the world except US.

Google is working on detailed Europe maps.

You can edit the googlemap templates and change the <input text> for longitude an lattitude. Just remove to readonly's that are in there and your users can put it in themselves.
I think there are 4 occurences in total in VBGooglemap_display_yourlocation VBGooglemap_set_yourlocation.

After that you should be able to enter the data manually and keep the drag function.

Greetz

stonyarc
11-06-2005, 10:08 PM
I have an idea ... we are a Jeep-related forum, and it might be cool if the admin can post areas of interest (off-highway hotspots) on the map, like the Rubicon Trail or Moab, UT, but give them a different way of displaying, so you can tell it's not a user post.

Hey, Ricker

Thanks for appreciating this mod.

The next version is a performance/stability release but event handling will be a feature.

I'll add the hotspots as a feature to add. You can follow the planning in the first reply to this thread.

GrendelKhan{TSU
11-07-2005, 12:42 AM
hmm....problem:

the location markers are not appearing. :(

I successfully enter my location (and tested with other ids as well)....but no marker actually appears, which..well...defeats most of the purpose. heh.

everything else seems to be working fine.

Any ideas?
also, any word on a fully phrased version? :)



last, idea for future versoins: (if possible and time willing of course)

--automatically adds marker with new registration (somehow have set of most common of locations/cities).
--have fields for long/lat or choose preset cities for Googlemap FOR forum REGISTRATION PROCESS. Maybe this could be connected with daylight savings menu options.
--add location data (lat, long) via user cp.
--fun: CALCULATE/FIND DISTANCE between users. :) show a dot line and distance between two chosen markers.


(sorry for piling it on...I just think this hack RULES!! and I'm just excited for it to continue :) I think it has awesome potential to be very important part of all boards :D -- not just novety ;))

Andy R
11-07-2005, 03:42 AM
Thanks for appreciating this mod.Awesome hack!

Think there could be anyway to make a map like this using zip code and/or city/state/country profile fields using an opensource longitude/latitude database? It would just be so awesome to capture this geo location info during registration and automate the process of posting the locations onto the map.

stonyarc
11-07-2005, 08:36 AM
Awesome hack!

Think there could be anyway to make a map like this using zip code and/or city/state/country profile fields using an opensource longitude/latitude database? It would just be so awesome to capture this geo location info during registration and automate the process of posting the locations onto the map.

Andy,

This is included in the planning for future releases.

You could host a L&L database but to make it international it would need to be a very big one.

I'm still "inventing" a solution.

stonyarc
11-07-2005, 08:41 AM
hmm....problem:

the location markers are not appearing. :(

I successfully enter my location (and tested with other ids as well)....but no marker actually appears, which..well...defeats most of the purpose. heh.

everything else seems to be working fine.

Any ideas?
also, any word on a fully phrased version? :)



The version on http://www.xboxusersgroup.com/forums/VBGooglemap.php IS fully phrased :smoke:

For the markers you probably have a users with some bad characters in his text (you could check the googlemap table for that)

I'll release a version update later on today.

StarBuG
11-07-2005, 09:33 AM
Three remaining questions.

The first his how do I change the Text color of the "map | Satelite | Hypbride" Buttons

The second is, I figured out of to set the map to satelite by default but I would like to have hybride by default.

The first two are the most important.

Now the third: Would it be possible to allow longer text for the markers but define a number of chars when there will be a < br /> entered automaticly?

Thank you for this realy great hack

reteep
11-07-2005, 10:02 AM
Thanks, the update ran through fine, however, IE is still problematic ( http://www.musiker-board.de/vb/VBGooglemap.php ), runs fine on firefox though.

Special chars are e.g.: ?, ?, ?, ?, `, ?, '

stonyarc
11-07-2005, 10:04 AM
Just to let you know that the Googlemap is now on version 1.0.2.

- Performance
- Full phrases support
- The special character list is now bigger to avoid the javascript error
- The special chararcter check is done on first insert and no longer when creating the googlemap xml (boost)

Download the latest version on vbulletin.org

UPGRADE to the Googlemap version 1.0.2:

1. Upload VBGooglemap.php to the forum root (overwrite ok)
2. add product-VBGooglemap.xml(Plugin System / Manage Products / Add Import product) and SET OVERWRITE TO YES 3. Enjoy

Hope you like it.

Development on 1.0.3 has started with event and hotspots support.


To change the text colour in the balloon

if ( (type=="yellow") || (type=="red") ){
title = "<a href='/'>"+ title +"</a>";
}
var content = "<div align=\"center\"><strong>"+title +"</strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\">" + text +"</div>";


and change this to


if ( (type=="yellow") || (type=="red") ){
title = "<a href='/'><font color='#000000'>"+ title +"</font></a>";
}
var content = "<div align=\"center\"><strong><font color='#000000'>"+title +"</font></strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\"><font color='#000000'>" + text +"</font></div>";


You can change the #000000 to anything you like

stonyarc
11-07-2005, 10:17 AM
Thanks, the update ran through fine, however, IE is still problematic ( http://www.musiker-board.de/vb/VBGooglemap.php ), runs fine on firefox though.

Special chars are e.g.: ?, ?, ?, ?, `, ?, '

Well you because of the fact that the parsing is now done on insert / update please have your users click "your entry" and update your information and that should be fixed.

StarBuG
11-07-2005, 10:46 AM
stonyarc any solution for my questions?

stonyarc
11-07-2005, 10:58 AM
stonyarc any solution for my questions?

Checking now

/edit

To change the large map to default on Hybrid

Open the XML file product-VBGooglemap.xml

look for

map = new GMap(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

Add the following line below it

map.setMapType( _HYBRID_TYPE );

Save the XML and reload it
add product-VBGooglemap.xml(Plugin System / Manage Products / Add Import product) and SET OVERWRITE TO YES

The colours of the buttons is set by google I'm checking if I can force this to change.

StarBuG
11-07-2005, 11:21 AM
Thank you.

In the original Googlemap API the font of these buttons is black like you can see here: http://local.google.com/

However in my forum map they are white so there is something changing the font.
http://www.hiphop-battles.com/forum/VBGooglemap.php

I realy love this hack!!

stonyarc
11-07-2005, 11:48 AM
Thank you.

In the original Googlemap API the font of these buttons is black like you can see here: http://local.google.com/

However in my forum map they are white so there is something changing the font.
http://www.hiphop-battles.com/forum/VBGooglemap.php

I realy love this hack!!

In fact it's easy to fix

Just add

Open the XML file product-VBGooglemap.xml. It's in there 3 times

<div id="map" style="width: 100%; height: 480px; padding:-5px;" class="r_box"></div>


and replace it with


<div id="map" style="width: 100%; height: 480px; padding:-5px;" class="r_box" style="color=#ff0000"></div>


Change the colour #ff0000 to what you want. You can also add the class to your css and fix it in there.

Save the XML and reload it
add product-VBGooglemap.xml (Plugin System / Manage Products / Add Import product) and SET OVERWRITE TO YES

StarBuG
11-07-2005, 11:55 AM
thx

actualy there is one instance:


<div id="map" style="width: 100%; height: 480px; padding:-5px;" class="r_box"></div>


which needs to be replaced by:

<div id="map" style="width: 100%; height: 480px; padding:-5px; color:#000000;" class="r_box"></div>


and 2 instances

<div id="map" style="width: 600; height: 300px; padding:-5px;" class="r_box"></div>


which need to be replaced by

<div id="map" style="width: 600; height: 300px; padding:-5px; color:#000000;" class="r_box"></div>


thank you for the help

Your style="color=#ff0000" did not work (at least not for me ;))
see fixed version above


Is it possible to expand the text input to lets say 100 chars and automaticly insert a break after about 50 chars (end of the word) or for long words (eg spam inserts with more then 50 chars) a br inside the long word ??

Holidazed
11-07-2005, 11:59 AM
To change the text colour in the balloon
To make this look good in all of my styles, is there a way to not only change the text color, but also change the balloon background color?

trancetopia
11-07-2005, 12:59 PM
Excellent extension to vB. My members will love this :)

I've got it all working without any problems apart from the ballon colors don't work for the moderator groups. Only admin is shown as yellow and super mod and mods are shows as red - the same as normal members.

Do I need to specify the mod group ids anywhere?

Thanks.

ConqSoft
11-07-2005, 01:26 PM
Forgot to report this bug to you before, and it's still in 1.0.2:


if(etext.length<5)
{
alert("Your entry's message must be at least 10 characters!")
submitOK="False"
}


Code checks for 5 characters, text says 10. :)

ConqSoft
11-07-2005, 01:33 PM
Also:


<td width="200" valign="top">
<div class="smallfont">
$vbphrase[googlemap_zoomlevel]&nbsp;<input name="zoombox" type="text" id="zoombox" size="4" readonly style="padding-left:5px; font-weight:bold; width:30px;background:#FFF48E;" /><BR>
$vbphrase[googlemap_users]&nbsp;<input name="nb" id="nb" type="text" class="nb" value="" size="4" maxlength="5" readonly style="padding-left:5px; font-weight:bold; width:30px;background:#FFF48E;"/>
</td>
</div>


The trailing </div> should be inside the <td></td> I think.

stonyarc
11-07-2005, 01:36 PM
Also:


<td width="200" valign="top">
<div class="smallfont">
$vbphrase[googlemap_zoomlevel]&nbsp;<input name="zoombox" type="text" id="zoombox" size="4" readonly style="padding-left:5px; font-weight:bold; width:30px;background:#FFF48E;" /><BR>
$vbphrase[googlemap_users]&nbsp;<input name="nb" id="nb" type="text" class="nb" value="" size="4" maxlength="5" readonly style="padding-left:5px; font-weight:bold; width:30px;background:#FFF48E;"/>
</td>
</div>

The trailing </div> should be inside the <td></td> I think.

Both non blocking issues are corrected in the version now online.

Thanks for the check

benFF
11-07-2005, 01:49 PM
Both non blocking issues are corrected in the version now online.

Thanks for the check

Great! Thanks!

One suggestion though, my forum is not a full screen width one and whilst your map fits in normal mode, when using the "Your Entry" link, the extra info box makes it too wide.

Any chance you could make this a pop up instead and use the co-ordinates of the main map, instead of loading a new one in a new window. A load of my members have complained they scrolled the main map to where they live, then hit "Your Entry" thinking it would setup their entry....

stonyarc
11-07-2005, 02:50 PM
Great! Thanks!

One suggestion though, my forum is not a full screen width one and whilst your map fits in normal mode, when using the "Your Entry" link, the extra info box makes it too wide.

Any chance you could make this a pop up instead and use the co-ordinates of the main map, instead of loading a new one in a new window. A load of my members have complained they scrolled the main map to where they live, then hit "Your Entry" thinking it would setup their entry....

I removed the nowrap="nowrap" from the script.

You can reload the XML with Overwrite to YES. That should help fix your problem.

stonyarc
11-07-2005, 07:06 PM
Does anybody have issues with the installation of the new version?

Rhoads
11-07-2005, 07:53 PM
Does anybody have issues with the installation of the new version?
Running fine here ;)

ricker
11-07-2005, 09:23 PM
Does anybody have issues with the installation of the new version?

Perfect and awesome :)

trancetopia
11-07-2005, 09:39 PM
Does anybody have issues with the installation of the new version?

Only the marker colours for moderators show as normal members. Marker colour ok for admins.

ConqSoft
11-07-2005, 09:59 PM
Only the marker colors for moderators show as normal members. Marker color ok for admins.

Yes, I noticed this as well. All my moderators are Super Mods, if that makes a difference.

trancetopia
11-07-2005, 10:03 PM
I'm the same as you ConqSoft, all my mods are supermods. I'm going to have a look at the code to see if I can find anything.

trancetopia
11-07-2005, 10:12 PM
Ok here is what you need to do. In VBGooglemap.php

This is assuming your supermod group is 5

Find:


if (($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7))


Replace With

(($get_xml_user["displayusergroupid"]==5)OR($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7))

Next, in your markers.xml file you need to edit your entries and change the type of each marker to yellow for all you supermods.

Upload and that should fix it :)

stonyarc
11-07-2005, 11:12 PM
Ok here is what you need to do. In VBGooglemap.php

This is assuming your supermod group is 5

Find:


if (($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7))


Replace With

(($get_xml_user["displayusergroupid"]==5)OR($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7))

Next, in your markers.xml file you need to edit your entries and change the type of each marker to yellow for all you supermods.
Upload and that should fix it :)

Everything is correct except the last part.

The marker is constructed by the script on load (for now).
So you don't need to edit it. The usergroup is inserted in the googlemap table in the database so next time the map is fully reloaded the marker colour will be changed.

GrendelKhan{TSU
11-08-2005, 02:45 AM
The version on http://www.xboxusersgroup.com/forums/VBGooglemap.php IS fully phrased :smoke:

For the markers you probably have a users with some bad characters in his text (you could check the googlemap table for that)

I'll release a version update later on today.


1. Great! thanks for the fully phrased version!!! multi-language is the way to go!! :D :D

2. hmm... just tested with id with no special characters but still not showing any markers. :( me very sad.

plus my "current users" field is always blank. dunno if that's related. :(

any ideas?

stonyarc
11-08-2005, 04:39 AM
GrendelK

It's a dataerror.

IE is handeling this a lot worse than Firefox.

I send you a pm that should fix it.

GrendelKhan{TSU
11-08-2005, 05:36 AM
GrendelK

It's a dataerror.

IE is handeling this a lot worse than Firefox.

I send you a pm that should fix it.

thanks! :)

exceem
11-08-2005, 06:01 AM
getting this error msg (although the map works fine)

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/trevor/public_html/forums/includes/vba_cmps_include_template.php on line 9

code its reffering to

$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)

would adding vbgooglemap to that fix it or would that affect otehr parts of the forum?

stonyarc
11-08-2005, 06:12 AM
getting this error msg (although the map works fine)

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/trevor/public_html/forums/includes/vba_cmps_include_template.php on line 9

code its reffering to

$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)

would adding vbgooglemap to that fix it or would that affect otehr parts of the forum?

That might do the trick to fix the portal integration. Make sure your download the latest version to. I just updated the files on 1.0.2 too.

exceem
11-08-2005, 06:34 AM
Downloaded and uploaded the latest versioin

added 'VBGooglemap' to that array but to no joy, time to have a tinker :D

stonyarc
11-08-2005, 07:38 AM
Downloaded and uploaded the latest versioin
added 'VBGooglemap' to that array but to no joy, time to have a tinker :D

Anybody else got it running on the VBA??

StarBuG
11-08-2005, 10:11 AM
Another suggestion.

With google maps there is the possibility to zoom in to a defined zoom if you click on a marker.
I realy would love to see this implemented

Keep up the good work

TygerTyger
11-08-2005, 10:50 AM
No problems at all, working perfectly. Thank you very much for another first class mod, I'm very much looking forward to future improvements.

Marc118
11-08-2005, 03:57 PM
After i changed my theme away from the default i lost the options to add yourself ect. Is there any way to fix this?

TygerTyger
11-08-2005, 04:59 PM
After i changed my theme away from the default i lost the options to add yourself ect. Is there any way to fix this?

You have to add the buttons into each theme's buttons directory, not just your default theme.

stonyarc
11-08-2005, 05:24 PM
I'm looking for someone to test the version 1.0.3 NOW

I think I got the Special character thing fixed.

steelerwatch
11-09-2005, 05:53 AM
I really wished this worked for me.

:(

lazytown
11-09-2005, 07:57 AM
Volume warning

Till the pagination is finished the map might slow down with high volume of users. Is this warning just that it slows down the user's display on their own computer (client side), or does this mod put a large load on the forum server?

Would it be possible to restrict certain users from adding their lat/long? For example, I might only want senior members to be able to enter info, but everyone to be able to view. My forum has about 10,000 members so I couldn't imagine the map with 10,000 pins. :)

Thanks! - vissa

stonyarc
11-09-2005, 08:25 AM
Is this warning just that it slows down the user's display on their own computer (client side), or does this mod put a large load on the forum server?
Would it be possible to restrict certain users from adding their lat/long? For example, I might only want senior members to be able to enter info, but everyone to be able to view. My forum has about 10,000 members so I couldn't imagine the map with 10,000 pins. :)
Thanks! - vissa

The restricted usergroups is planned for 1.0.4
1.0.3 will be released this week and the will cancel out a lot of the high volume load that was caused by the special characters in IE. That is fixed now.

http://www.xboxusersgroup.com/forums/VBGooglemap.php is running the new one already.

The map reads an xml file that is created by the script on the fly. The map construct is client side.

It's just a potential issue not a proven one. The queries and xml construct are very fast (certainly in the next version). The problem might be the javascript reading of the XML in very high volumes.

This is a warning issued by Google not by me. I would say just try it and if this occurs I'll try to find a solution.

benFF
11-09-2005, 12:30 PM
I removed the nowrap="nowrap" from the script.

You can reload the XML with Overwrite to YES. That should help fix your problem.

Hi there!

Unfortunately this is still no good as my forum is only 780 pixels wide and can only just fit the map - with the "user details" window it expands way too much.

A popup to enter/edit details would be much better - and just taking the current co-ordinates from the main map...?

GuaRRand
11-09-2005, 12:48 PM
Is there any eta on maps of europe? (detailed) from google??

stonyarc
11-09-2005, 03:44 PM
Hi there!

Unfortunately this is still no good as my forum is only 780 pixels wide and can only just fit the map - with the "user details" window it expands way too much.

A popup to enter/edit details would be much better - and just taking the current co-ordinates from the main map...?
I'll work on a fix for you

LaNder
11-09-2005, 05:31 PM
At http://www.frappr.com/ you can enter your location directly based on the name of the city instead of zooming the coordinates. Is there a chance to get this in VBGooglemap?


CF

Dutchmang
11-09-2005, 06:30 PM
Clicks "Install"

stonyarc
11-09-2005, 07:58 PM
At http://www.frappr.com/ you can enter your location directly based on the name of the city instead of zooming the coordinates. Is there a chance to get this in VBGooglemap?CF

This is planned for future versions. However except for the maps in the US, Canada and UK the other countries are not as detailled.

Moreover Global support would need a very large geocode database to contain all the latitudes and longitudes.

There are some posts about this in this thread. A solution is there but you would need a lot of infrastructure to support this. (eg webservice)

JJR512
11-09-2005, 08:16 PM
I'm having a problem.

IE6, VB is 3.5.0, downloaded the hack today (a few hours ago) and installed, encountered no errors during install.

When I enter "http://www.jjr512.com/VBGooglemap.php" as my URL in the address bar, the page loads fine and displays the world map across the width of the screen. When I click the "Your Entry" button, it goes to "http://www.jjr512.com/VBGooglemap.php?do=yourlocation", but the map does not show up. The part to the left of the map, with "Edit your information", the latitude and longitude box, marker text, etc., that's all there, but there's no map. The red and yellow pushpin legend is also there.

There's also a little warning indicator in the IE status bar, the white page with yellow triange over it with black exclamation point, next to the word "Done". If I double-click that little icon, the error message details is:
Line: 308
Char: 1
Error: Object expected
Code: 0
URL: http://www.jjr512.com/VBGooglemap.php?do=yourlocation
There is also a Previous and Next button on this error message, Next is grayed out, when I click Previous the details change to this:
Line: 707
Char: 32
Error: Syntax error
Code: 0
URL: http://www.jjr512.com/VBGooglemap.php?do=yourlocation
What am I doing wrong? After 196 posts, and nobody else having this problem, I figure it must be me, not the hack, any suggestions?

Thanks! :)

dan35
11-09-2005, 09:47 PM
How can I delete a member's mark?

stonyarc
11-09-2005, 09:53 PM
How can I delete a member's mark?

Dan,

A member can delete that himself. Just click your location, check the delete function and click update location.

There is no admin delete yet. So as admin go the googlemap table and remove the entry or use the backend function to login as user.

stonyarc
11-09-2005, 10:03 PM
I'm having a problem.

IE6, VB is 3.5.0, downloaded the hack today (a few hours ago) and installed, encountered no errors during install.

There's also a little warning indicator in the IE status bar, the white page with yellow triange over it with black exclamation point, next to the word "Done". If I double-click that little icon, the error message details is:

There is also a Previous and Next button on this error message, Next is grayed out, when I click Previous the details change to this:

What am I doing wrong? After 196 posts, and nobody else having this problem, I figure it must be me, not the hack, any suggestions?

Thanks! :)

As you can see I entered my marker without any problem
http://www.jjr512.com/VBGooglemap.php?do=showmain

I'm afraid this might be a local setting problem. But I'll surely check to make sure.
BTW Version 1.0.3 is just around the corner.

/edit

I updated the version to 1.0.3. I think the error will be gone now.

* starts uploading the new version

silurius
11-09-2005, 10:26 PM
Hey Stony,

Have some additions for your roadmap. Are any of these even remotely doable for v1.0.4?


Tie one or more custom or standard user profile fields to VBGooglemap, such that users who specify, say, their zip code or longitude/latitude coordinates in their profile automatically show up on VBGooglemap
Tie one or more custom or standard calendar event fields in the same way, such that events that have locations defined show up in the map.
Allow for multiple VBGooglemaps, so that there could be customized views of events, users, or whatever else might come up (views, different map instances, whatever)
Driving directions to locations on the VBGooglemap
If I found away to do even one of the above, this extension would instantly jump up to killer app status on my forum.

stonyarc
11-09-2005, 10:36 PM
Hey Stony,

Have some additions for your roadmap. Are any of these even remotely doable for v1.0.4?


Tie one or more custom or standard user profile fields to VBGooglemap, such that users who specify, say, their zip code or longitude/latitude coordinates in their profile automatically show up on VBGooglemap
Tie one or more custom or standard calendar event fields in the same way, such that events that have locations defined show up in the map.
Allow for multiple VBGooglemaps, so that there could be customized views of events, users, or whatever else might come up (views, different map instances, whatever)
Driving directions to locations on the VBGooglemap
If I found away to do even one of the above, this extension would instantly jump up to killer app status on my forum.

It's like you read my mind on the functions I want to integrate :smoke:

The multiple googlemaps are in the works (including image support) but it's a whole lot of work. Together with vbstatextended this is my first vbulletin mod.

Events and hotspots are already on the roadmap.

The zip code is a tricky one due to the international character. I could make it a custom one specific for the states, UK or canada if only Google would hurry with the detailed Europe maps.

If I found away to do even one of the above, this extension would instantly jump up to killer app status on my forum

Not yet that status ?????? :devious: :devious:

stonyarc
11-09-2005, 10:44 PM
All,

Version 1.0.3 is now online

Major Changes

The XML has no longer issues with special characters by adding a forced encoding statement. This was mainly an issue on Internet Explorer.

This makes the preparsing of the strings no longer needed. the only thing that is still captured is the ' ". The rest of special chars is allowed (encoding="ISO-8859-1") => performance is way better now so a lot of markers can be handled.

Some people got the error from an onload statement. The load of the maps is now done differently so that error should be gone.

I left 1.0.2 online to if you need to revert but I don't think so.

Please upgrade to the latest version

Sorry If I work that fast on the version but I want this to be a big App !!!!
I'll release on every milestone I reach so you'll have to keep up, sorry

JJR512
11-09-2005, 11:16 PM
As you can see I entered my marker without any problem
http://www.jjr512.com/VBGooglemap.php?do=showmain

I'm afraid this might be a local setting problem. But I'll surely check to make sure.
BTW Version 1.0.3 is just around the corner.

/edit

I updated the version to 1.0.3. I think the error will be gone now.

* starts uploading the new version
I see that you did it OK.

However, I still cannot.

I suspected it was a local computer problem, as you do. However, I'm home now, and earlier I was at work. It's IE6 on both computers, but at work is Win98, and at home is WinXP. I get the exact same problem and error messages. I also upgraded to 1.0.3 and it didn't help. I've cleared my cache and restarted all browsers. I don't know what else to try.

JJR512
11-09-2005, 11:24 PM
I know what the problem was.

When I originally loaded VBGooglemap.php (both at work and at home), and got the full-width map, I started playing around with the map, scrolling around and zooming in. Then I clicked the Your Entry button and started getting that error message. I checked the googlemap table in the database just now, and saw that there was an entry for me, with all data except latitude and longitude. I deleted my record and reloaded the page and clicked Your Entry, and now the page appears to work just fine.

So the problem is that if somebody starts playing with the map before clicking that button, apparently a partial record is created in the database. But then when the script loads that partial record, it's choking on not finding the data it's expecting to find.

The best fix I can think of is to not make a record in the database if all the data isn't there.

stonyarc
11-09-2005, 11:43 PM
I know what the problem was.

When I originally loaded VBGooglemap.php (both at work and at home), and got the full-width map, I started playing around with the map, scrolling around and zooming in. Then I clicked the Your Entry button and started getting that error message. I checked the googlemap table in the database just now, and saw that there was an entry for me, with all data except latitude and longitude. I deleted my record and reloaded the page and clicked Your Entry, and now the page appears to work just fine.

So the problem is that if somebody starts playing with the map before clicking that button, apparently a partial record is created in the database. But then when the script loads that partial record, it's choking on not finding the data it's expecting to find.

The best fix I can think of is to not make a record in the database if all the data isn't there.

Thanks for the catch. I'll build something to remedy the problem

dan35
11-09-2005, 11:54 PM
Dan,

A member can delete that himself. Just click your location, check the delete function and click update location.

There is no admin delete yet. So as admin go the googlemap table and remove the entry or use the backend function to login as user.

Thank you, Stonyarc :)

Installed 1.0.3

silurius
11-10-2005, 12:26 AM
The multiple googlemaps are in the works (including image support) but it's a whole lot of work. Together with vbstatextended this is my first vbulletin mod.This actually ranks lowest on my list but would be a "nice to have".

Events and hotspots are already on the roadmap.Oh OK, must have missed that.

The zip code is a tricky one due to the international character. I could make it a custom one specific for the states, UK or canada if only Google would hurry with the detailed Europe maps.Longitude/latitude would be a nice fallback for this, but I suspect most users would have no idea.

If I found away to do even one of the above, this extension would instantly jump up to killer app status on my forum

Not yet that status ?????? :devious: :devious:Er, it certainly is from my perspective I should have said! I'm just noticing that a lot of people don't input their info, and so the map has the appearance of being under-utilized at this stage.

All,

Version 1.0.3 is now online

Major Changes
...

Works beautifully so far, thanks for the update!

reteep
11-10-2005, 07:29 AM
Thanks holmes, update ran through fine!

TygerTyger
11-10-2005, 07:43 AM
Upgrade worked fine for me. If zipcodes/postcodes were to be implemented I'd prefer them to be optional, as the databases are very sizable and if you can stick a pin in where you want they're not really necessary.

Aside from member avatars showing up in the boxes (or even custom images) and admin functions I'm happy as it is.

JJR512
11-10-2005, 12:06 PM
I'm not sure how useful ZIP or postal codes would be. A post code is a sizable area. I have my pushpin stuck where my apartment building is next to the street. There's no way that could have happened with a post code; the pin probably would be somewhere around the center of the area, which could potentially be miles from where I actually live. As for using it as a starting point, I didn't find it that hard to click the zoomed-out map pretty close to where I wanted it to center it, zoom in about half-way, re-center with more precision, zoom in almost all the way, and make a final adjustment.

I guess from a whole-world-zoom-level, it wouldn't make any difference if the pin is off by even a few miles, but when people start to zoom in, well maybe it's just me but I want the pin to be right on top of me.

benFF
11-10-2005, 12:14 PM
I'll work on a fix for you

ah cheers dude, this is the only thing keeping me from going live :D

(oh and the supermods are still the same colour as normal users?)

sledfreak
11-10-2005, 12:24 PM
Does this map take information from the location field filled out by the users when they signed up. Will it automatically add the users that are already signed up.

stonyarc
11-10-2005, 12:28 PM
Does this map take information from the location field filled out by the users when they signed up. Will it automatically add the users that are already signed up.

This feature is not yet implemented. The location must be entered by clicking on your entry and zooming to the user location.

The reasons for this can be found in serveral posts in this thread.

OttawaGolf
11-10-2005, 12:52 PM
Is it possible to change the default lat / long and zoom level when you arrive at the map? I run a regional site and showing the whole world when you arrive would mean there would just be a blob over Ottawa Canada.
Is there a way to do that as it is now or would that have to go on a wish list for a future release?

ConqSoft
11-10-2005, 01:00 PM
Ottawa: Look at the AdminCP options for this plugin. ;)

OttawaGolf
11-10-2005, 01:15 PM
I was hoping for an answer prior to installing. Are you are saying it can be done as I am hoping? Thanks for your help.

ConqSoft
11-10-2005, 01:19 PM
Yep, you can set the starting position and zoom level.

OttawaGolf
11-10-2005, 01:21 PM
Cool. That's perfect. Thanks.

Greebo
11-10-2005, 01:31 PM
I'm not sure how useful ZIP or postal codes would be. A post code is a sizable area. I have my pushpin stuck where my apartment building is next to the street. There's no way that could have happened with a post code; the pin probably would be somewhere around the center of the area, which could potentially be miles from where I actually live. As for using it as a starting point, I didn't find it that hard to click the zoomed-out map pretty close to where I wanted it to center it, zoom in about half-way, re-center with more precision, zoom in almost all the way, and make a final adjustment.

I guess from a whole-world-zoom-level, it wouldn't make any difference if the pin is off by even a few miles, but when people start to zoom in, well maybe it's just me but I want the pin to be right on top of me.
In our case, zip code would be ideal - our users don't want to have their exact locations given away - we just want an overall survey of *generally* where people are, and zip code provides just the level of granularity we want.

We already track zip code as an extra user field, and I, for one, would be much more inclined to install this hack if it could take a list of member zip codes from our site and build the map from that, instead of lat/long.

Ironically, our members *do* know their lats and longs - they are pilots - but they arent technologically inclined and I'd rather not have them enter any more than they already have if I can avoid it (we ask them for zip code at registration).

stonyarc
11-10-2005, 03:14 PM
In our case, zip code would be ideal - our users don't want to have their exact locations given away - we just want an overall survey of *generally* where people are, and zip code provides just the level of granularity we want.

We already track zip code as an extra user field, and I, for one, would be much more inclined to install this hack if it could take a list of member zip codes from our site and build the map from that, instead of lat/long.

Ironically, our members *do* know their lats and longs - they are pilots - but they arent technologically inclined and I'd rather not have them enter any more than they already have if I can avoid it (we ask them for zip code at registration).

Even some geocoding could solve that. I'm working on several approaches because I want this to be a global as possible.

I can go as far as going on address but this is in direct violation of privacy law (certainly in Europe).

Another split I'm working on is the event and hotspots map.

A zip code map is one of the additional maps I'm working on. But it's crazy to store all zipcodes in the world in a database unless you are able to offer it as a webservice. Moreover the zip code approach will put markers of the same area on exactly the same spot. This breaks the link with the user / text. and makes it less unique. If you zoom in, you won't be able to see through the stack of markers.

I know you all want this to be as flexible as frapper. But I'm alone in doing this and I don't want this to be a rush job. I do have a regular job too.

stonyarc
11-10-2005, 03:34 PM
Cool. That's perfect. Thanks.

Don't forget to click install :ermm:

Holidazed
11-10-2005, 03:56 PM
Version 1.0.3 is now online
Awesome work. Thank you.

Did you not say earlier that this version was going to have different pin colors for each usergroup? Or that we were going to define usergroup pin colors?

stonyarc
11-10-2005, 03:59 PM
Awesome work. Thank you.

Did you not say earlier that this version was going to have different pin colors for each usergroup? Or that we were going to define usergroup pin colors?


Sorry for that I had to make the version 1.0.3 the special char release

That supermod and pin color will be in 1.0.4

PS:
Can you all do me a favour and read https://vborg.vbsupport.ru/showthread.php?t=100547

ricker
11-11-2005, 04:47 AM
I am still running 1.0.2, haven't had time to upgrade yet, but someone has managed to get two entries in ... any ideas on that one? :)

stonyarc
11-11-2005, 06:01 AM
I am still running 1.0.2, haven't had time to upgrade yet, but someone has managed to get two entries in ... any ideas on that one? :)

If you start clicking insert your information before the map is fully loaded the application can insert a a line for that user without any longitude and latitude.

If this is the case you can safely remove the extra line in the database (googlemap table) I'm building in a safeguard for that in the next version

Rabbitoh Warren
11-11-2005, 07:42 AM
The second is, I figured out of to set the map to satelite by default but I would like to have hybride by default.Care to share? I'd like to set my default to Satelite.

StarBuG
11-11-2005, 09:15 AM
there are three instances of:


var dtypemap = "c";


change them all to:


var dtypemap = "s";


but I would recomend using the hybrid mode (see above for how to) by default cause it shows the country boarders as well

Rabbitoh Warren
11-11-2005, 09:35 AM
there are three instances of:No worries. Where do I look to make the changes... templates or...?

but I would recomend using the hybrid mode (see above for how to) by default cause it shows the country boarders as wellNot really a problem for the Australian continent. :)

JJR512
11-11-2005, 01:54 PM
Here is a PLUGIN you can add to this hack to make all the templates from this hack to appear (in edit templates list, for example) grouped together:

Product (select from list): "VBGooglemap by StonyArc"
Hook location: template_groups (it's under vBulletin: General Administration)
Title: "VBGooglemap Template Grouping"
Plugin PHP code: $only['vbgooglemap'] = 'VBGooglemap';

StarBuG
11-11-2005, 02:22 PM
No worries. Where do I look to make the changes... templates or...?


It is in the templates. I would edit the xml file and reimport it ;)

LincolnForums
11-11-2005, 02:24 PM
This site will give exact cordinates. dont know if it was mentioned in here anywhere or not

http://www.maporama.com/share/

stonyarc
11-11-2005, 03:09 PM
This site will give exact cordinates. dont know if it was mentioned in here anywhere or not

http://www.maporama.com/share/

maporama was not mentioned here but other simular sites.

Problem is I cannot bother everyone with a huge more geocode database on every install.

To give you an example only to service Belgium the data is about 798 Mb. So as long as nobody has a spare Oracle DB server or something this is just not feasible.

If we have a webservice fine, I could also leach on google servers and parse an address string from them but that is illegal.

So can I solved, yes. by creating a commercial one where you buy a webservice license for geocoding. But not just of the top of my hat, voodoo magic. The coding itself is "relatively" simple.

zipcodes alone won't do the trick because all your users in the same region will have the same marker. In maporama terms you need a PointAddress Web Service (Convert a physical address into latitude/longitude coordinates). I'm looking for a good free one but haven't found a good one yet. Moreover this causes privacy issues and coppa problems. So you have to be really careful when creating such a map.

GrendelKhan{TSU
11-11-2005, 03:11 PM
I can go as far as going on address but this is in direct violation of privacy law (certainly in Europe).


FYI, this is not illegal in the US depending on how its implemented, certainly not if its volunteered info. (I mean, you can already mark you HOUSE with this so........ ;))

zip+4 is as far as its allowed from a marketing perspective (eg: direct mail).

zip codes would be a great addition, but yah...globally implemented you'd need partners for infrasturcture (and I'm in korea, so I'd love it but don't expect you to be able to cover db info here... ironically though..I HAVE ACCESS TO THIS!!--being in a related job field---in fact...maybe we should talk. heh. webservices etc etc. I could maybe get you start with this data in Korea...its VERY VERY advanced here for this stuff (more so than in the states actually. just a thought) ;)

in anycase, the business implications of this kind of program could be HUGE btw. I'm alllll for seeing this go as far as it could.

keep up the great work. :)

(and don't forget whatever you do...please keep it fully phrased!! I'd much appreciated THAT :D)

GrendelKhan{TSU
11-12-2005, 06:26 AM
sorry..I know I'm getting WWAAAAY ahead here but.... you know what would absolutely RULE and be fun!!??!!

if you could do a smugmug maps type thing... (http://maps.smugmug.com) and have it work with vbaGallery (or attachment pics). that would .....well....... kick soooooo much arse and create a very "sticky" site. :D :D

just a thought. :)

Yorixz
11-12-2005, 06:08 PM
First of all; great hack.

Secondly; after I installed the hack worked for like 10 minutes but after that everything disappeared; you can't see a single pin on the map anymore and you can't add new either (well, it says you can add and it was successfull and such but it doesn't show up). Does anyone know what I'm doing wrong?

stonyarc
11-12-2005, 06:11 PM
First of all; great hack.

Secondly; after I installed the hack worked for like 10 minutes but after that everything disappeared; you can't see a single pin on the map anymore and you can't add new either (well, it says you can add and it was successfull and such but it doesn't show up). Does anyone know what I'm doing wrong?

Yorixz,

Please post a link so I can check the XML file. It's probably a bad character in someone's textfile.

That is for all of you. If you want me to check please include a link.

Yorixz
11-13-2005, 01:54 PM
Yorixz,

Please post a link so I can check the XML file. It's probably a bad character in someone's textfile.

That is for all of you. If you want me to check please include a link.


I've opened it myself and it looks like it doesn't handle <'s and "s real good; maybe make it so they're replaced by their HTML-code?

stonyarc
11-13-2005, 02:48 PM
http://otfans.net/markers.xml

I've opened it myself and it looks like it doesn't handle <'s and "s real good; maybe make it so they're replaced by their HTML-code?

Hello,

It's the jinto line that is causing the problem "<" character.

I'll fix this in the next version.

For now just go to phpmyadmin / your vbulletin database / googlemap table and just remove the < character from the line of Jinto

or ask the user to edit his entry.
Don't forget to restart your browser after the edit to see if it worked.
It should be fine after that.

/edit

The version now online should fix it on first entry

Yorixz
11-13-2005, 02:59 PM
Thanks a lot, I'll upgrade.

m.s
11-13-2005, 07:53 PM
Hi,

i?ve a problem with IE6 and Version 1.0.3. on a german vBulletin 3.5.1.
The bubbles will not display if I click on a pin.
Here?s the map: http://www.ffsf.de/VBGooglemap.php

stonyarc
11-14-2005, 05:52 AM
Hi,

i?ve a problem with IE6 and Version 1.0.3. on a german vBulletin 3.5.1.
The bubbles will not display if I click on a pin.
Here?s the map: http://www.ffsf.de/VBGooglemap.php

Seems like a wrong handling of the click handler.

Is this the vbhacks.de version?

On click the map displays a javascript error that is directly related to your CSS (unsupported property)

Did you add custom handlers/classes for div in your CSS?

m.s
11-14-2005, 06:17 AM
Is this the vbhacks.de version?
no, its the version from here.
Did you add custom handlers/classes for div in your CSS?
no

stonyarc
11-14-2005, 11:23 AM
no, its the version from here.

no

Very strange error because it refers to the css line in your code and not to anything remotely done by the map.

<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-e1a7bc8f-00015.css" id="vbulletin_css" />

This is apparently the error.

Could you please not include the css in a file but straight in the code (as the default is)? Maybe this fixes it. I verified the javascript and the data and there doesn't seem to be anything wrong.

mclark2112
11-14-2005, 12:36 PM
Hello,

It's the jinto line that is causing the problem "<" character.

I'll fix this in the next version.

For now just go to phpmyadmin / your vbulletin database / googlemap table and just remove the < character from the line of Jinto

or ask the user to edit his entry.
Don't forget to restart your browser after the edit to see if it worked.
It should be fine after that.

/edit

The version now online should fix it on first entry

Works great in Firefox, but in IE it way screwed up, any clue?

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

It seems to only be screwed up in the Dark Blue Style (as well as others)....Although I still can't see markers, but that may be some sort of firewall issue.

stonyarc
11-14-2005, 02:24 PM
Works great in Firefox, but in IE it way screwed up, any clue?

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

It seems to only be screwed up in the Dark Blue Style (as well as others)....Although I still can't see markers, but that may be some sort of firewall issue.

It's the same error as mentioned before.

<marker lng="-117.84690856933594" lat="34.14931753487509" title="Players99" text="<Glendora, CA.>" type="red"/>

Players99 entered <> in his text.

If you download version 1.0.3 again and overwrite the VBGooglemap.php this entry should be auto fixed. I fixed this issue a few days ago.

don't forget to clear your browser cache or close your browser to force a full reload.

m.s
11-14-2005, 06:05 PM
Could you please not include the css in a file but straight in the code (as the default is)?
ok, the stylesheet is now directly in the sourcecode.

stonyarc
11-14-2005, 06:12 PM
I've had many people try to manually enter degrees ? as co-ordinates, and they get a vBulletin database error (and I get an email) over at www.mini2.com/forum/VBGooglemap.php

Any way to either allow alternative input formats, or handle the errors more elegantly?

Manual input is not possible only if you have removed the readonly from the forms from the templates. L&L are filled in auto by dragging the small your entry map.

Did you remove these?

stonyarc
11-14-2005, 06:14 PM
ok, the stylesheet is now directly in the sourcecode.

Strange error

Is it possible you accidently changed some items during the translation?

m.s
11-14-2005, 06:59 PM
Is it possible you accidently changed some items during the translation?
hmm, i?ve only translated the phrases.
i?ve reseted the phrases, but the ie don?t shows the bubbles yet :(