Version: 2.0 Beta 2, by magnus
Developer Last Online: Feb 2012
Category: New Posting Features -
Version: 3.6.5
Rating:
Released: 03-08-2007
Last Update: 04-08-2007
Installs: 140
DB Changes Uses Plugins Template Edits
Is in Beta Stage
No support by the author.
Keywords: Phoogle, Google, Maps, BBCode
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?"
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]
[hr]-[/hr] Installation:
Download and import product-phoogle2.0Beta1.xml via the Product Manager.
Configure Phoogle! via the AdminCP (vBulletin Options > Phoogle Settings).
???
Profit!
Notes:
When adding/editing a map via AJAX Quick Reply or Quick Edit, you must refresh the page to see changes.
[hr]-[/hr] 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
Eliminated need for functions_phoogle.php
Modified way [map] tags are parsed
Moved previously static html to templates
Changed way multiple locations per posts is defined (separated by ;)
Added check for cURL() if not, uses file_get_contents()
2.0 Beta 1
Proper error handling. Will now verify address (and make reccomended changes) before submitting.
Javascript will not be loaded on pages that do not have maps (woops!)
Few internal tweaks to (hopefully) speed things up.
2.0 Beta 2 - Plays nice with the [noparse][/noparse] tags. (thanks Tralala)
* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I believe this is broken, well it is on my forum
This happened as soon as i previewed the post
If i just post the post then it gives a big blank space
where the map should be and i have refreshed and nothing
Any ideas please, this is the biggest error i have come across lol
Code:
Database error in vBulletin 3.6.4:
Invalid SQL:
UPDATE post SET phoogle_html = '\n<script type=\"text/javascript\">\n function showmap()\n {\n //<![CDATA[\n if (GBrowserIsCompatible())\n {\n var map = new GMap(document.getElementById(\"map\"));\n map.centerAndZoom(new GPoint(, ), 4);\n }\n var icon = new GIcon();\n icon.image = \"http://labs.google.com/ridefinder/images/mm_20_red.png\";\n icon.shadow = \"http://labs.google.com/ridefinder/images/mm_20_shadow.png\";\n icon.iconSize = new GSize(12, 20);\n icon.shadowSize = new GSize(22, 20);\n icon.iconAnchor = new GPoint(6, 20);\n icon.infoWindowAnchor = new GPoint(5, 1);\n map.addControl(new GLargeMapControl());\n map.addControl(new GMapTypeControl());\n //]]>\n }\n showmap();\n</script>\n' WHERE postid = LIMIT 1;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1
Error Number : 1064
Date : Friday, March 9th 2007 @ 09:00:14 PM
Script : http://www.bashys-place.com/forums/newthread.php
Hrm. I'll need to add a check to check against previewing.. as it's trying to assign a postid when there isn't one.
You say you're just getting a box when you do post? Can you provide a link, or the page source at least? Also, what address are you trying to plot?