Phoogle! An interactive Google Maps mapping system v 2.0 Beta 2
Description:
Allows for the insertion of interactive Google Maps within posts via a new BBCode. Supports point labeling as well as multiple points per map.
Details:
I became increasingly annoyed after seeing more and more links to maps being butchered when posted on forums. I had remembered seeing the nifty Phoogle Maps and figured, "why not?"
A few headaches later.. here we are.
Usage:
[map]value[/map]
[map=Option]value[/map]
Example:
[map]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]
[map=The White House]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]
Multiple Locations Example:
[map]1600 Pennsylvania Avenue NW, Washington, DC 20500;E Capitol St NE & 1st St NE, Washington, DC 20001[/map]
[map=The White House;Capitol Building]1600 Pennsylvania Avenue NW, Washington, DC 20500;E Capitol St NE & 1st St NE, Washington, DC 20001[/map]
Installation:
1. Download and import product-phoogle2.0Beta1.xml via the Product Manager.
2. If you do not already have one, obtain a free Google Maps API key.
3. Configure Phoogle! via the AdminCP (vBulletin Options > Phoogle Settings).
4. ???
5. Profit!
Notes:
When adding/editing a map via AJAX Quick Reply or Quick Edit, you must refresh the page to see changes.
Comments:
As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really.
Version History:
* 1.0.0 - Initial release, here's to hoping..
* 1.0.1 - Added check for post preview, [map] code will NOT be parsed when previewing (because it can't).
* 1.1.0
o Eliminated need for functions_phoogle.php
o Modified way [map] tags are parsed
o Moved previously static html to templates
o Changed way multiple locations per posts is defined (separated by
o Added check for cURL() if not, uses file_get_contents()
* 2.0 Beta 1
o Proper error handling. Will now verify address (and make reccomended changes) before submitting.
o Javascript will not be loaded on pages that do not have maps (woops!)
o Few internal tweaks to (hopefully) speed things up.
* 2.0 Beta 2 - Plays nice with the [noparse][/noparse] tags. (thanks Tralala)
Attached