The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google Maps - Hot Spots - Events for vbaCMPS Details »» | |||||||||||||||||||||||||||
Google Maps - Hot Spots - Events for vbaCMPS
Developer Last Online: Jun 2013
This is my first contribute to everyone here so if you could click install so that i further add to this.
Here is a LIVE working demo. minus the added pictures and colored markers which is an addiontal install. Insutructions listed below. http://www.jerseyparties.com/index.php?page=googlemap Im using this with vb 3.5.1 and vbadvanced cmps 2.1 Google Maps with Hot Spots - Events for CMPS ******** You will need your own Google API Map Key for this to work. You can get it by going here:http://www.google.com/apis/maps/signup.html ***Install: Add a module as you normally would, and copy the below into the template content. To create a module vBa CMPS > add module > template > then give it any title you want and display order Then give it a name I called my "googlemaps" so the name is now "adv_portal_googlemaps" ******** note google maps do slow down load times ********* Copy the below and place it into the template content. After you have your Google API Map Key enter it where it says "Enter_Your_Key_Here " Should be around line 7 or so. PHP Code:
Ive been using this site to convert an address to the proper latitude and longitude. http://stevemorse.org/jcal/latlon.php - for US locations http://www.geocoder.ca/ - for Canadian locations Adding Different color markers. If you want to add different color markers, line 10 should read: PHP Code:
PHP Code:
Then after you have added that you will need to add this: This will have to be added for each marker you add. Add this right below the first marker. Should be around line 46 or so. PHP Code:
Each time you want to use a different marker you have to call to that variable/marker. So in the example I have: PHP Code:
PHP Code:
You can add image to the pop up windows as well. See picture attached. In a call to variable where it says: PHP Code:
PHP Code:
PHP Code:
To add this to its own CMPS Page Follow these directions and skip number 7, because I set this up as a template file and not a php file. http://www.vbadvanced.com/membersare...tid=4&pageid=6 Then whatever you called your page in the immediate above directions from vbA under "page identified" ( i used googlemap ) edit your navbar and inclue to a link to that page. Mine is PHP Code:
*** added screen shots *** First shows the installed look. Second picture shows the popup window when a marker is clicked Third shows the addiontal useage of colored markers. Code is listed above but not in the orginal install. Fourth Picture shows the popup window with added images. How to is listed above but not in the orginal install. Show Your Support
|
Comments |
#22
|
||||
|
||||
Lovely hack!
|
#23
|
|||
|
|||
Quote:
Thanks! Any problems installing? did you add the other color markers, and the images inthe popups? Any feedback would be helpful to the install so I know if I need to add or change something. Also if you could click install. Thanks again. |
#24
|
|||
|
|||
for whatever reason I'm unable to get the popups to work. I even just copy/pasted your original code (with my api key) to the thing and it doesn't Pop. Seen this?
http://www.saltwaterbastards.com/ (bottom of main page for now) |
#25
|
|||
|
|||
i see the pop up click on the red dot
Austins Restaurant/ Junkyard Nightclub 352 West Passaic Street Rochelle Park, NJ 07662 |
#26
|
|||
|
|||
Hmm...so it's my PC. Lame!
Edit: It gets better, it's just my IE. Could this be made into a plugin very easily? Super useful.... |
#27
|
|||
|
|||
Quote:
Sometimes you have to close all your browsers for them to work. Its weird. Still having problems with it ? As for the plugin, not sure how to do those. Should just be a quick copy and paste. |
#28
|
|||
|
|||
ah, they are hardcoded into the page I was hoping I could use this for upcoming events, ie: user submits address of event, and if an event is scedualed at that location within the week, it would show up as a marker.
|
#29
|
|||
|
|||
Quote:
|
#30
|
|||
|
|||
are there any other easier ways to get the lat and long of locations? I can see them on the google map, but I can't seem to get the lat + long to make some marker points.
|
#31
|
||||
|
||||
how do I install these cool maps on VBB 3.5.3 ? Dont see anything called Add modules
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|