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 |
#32
|
|||
|
|||
Quote:
or you could make a new html page and link it through the navbar by passing the add module part of the directions. |
#33
|
|||
|
|||
Quote:
The other googlemap isn't gone it just went to version 2.0.1. I was gone because I was working on the Xbox Live integration for the Xbox.com Community Developer Program. So it's back. Nice work on your mod btw. |
#34
|
|||
|
|||
Hi m8, only me
Any chance on this 1 working with MKPortal?? |
#35
|
|||
|
|||
Ive never used MKPortal so I wouldnt be able to help you with that. Im assuming its like CMPS ?
|
#36
|
|||
|
|||
Stony - Yea I noticed its gone to 2.0.1 now. Nice job. Only did mine cause I wanted hot spots, and you were tied up with the Xbox site. ( my 360 should be here tomorrow ) and then I decided against having the users post where they were from and adding locations them selves. More for me to monitor and such. But after you add the hotspots to your next version Ill add that back to my site to allower certain users ( bands and bars ) to post upcoming events. Cheers!
|
#37
|
|||
|
|||
Not sure about CMPS but take a look at www.bashys-place.com
|
#38
|
|||
|
|||
Quote:
|
#39
|
|||
|
|||
oooo, and thats it?
Note to self: Must have play tonight after work.... Thanks Kev will give it a try later |
#40
|
|||
|
|||
have to take a look here if your interested in a googlemap:
https://vborg.vbsupport.ru/showthread.php?t=99920 |
#41
|
||||
|
||||
[high]* KW802 clicks install.
[/high] KevNJ, Thanks, this version will serve nicely for a few ideas I have in mind. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|