Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Phoogle! An interactive Google Maps mapping system. Details »»
Phoogle! An interactive Google Maps mapping system.
Version: 2.0 Beta 2, by magnus magnus is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

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?"

A few headaches later.. here we are.

[hr]-[/hr]
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]

[hr]-[/hr]
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.

[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.

Comments
  #212  
Old 01-27-2008, 05:27 PM
joerns joerns is offline
 
Join Date: Feb 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to set the Hybrid[ view as the default view? At the moment it's the map view, and sometimes it does not show much data, especailly in far-flung places.
Reply With Quote
  #213  
Old 03-01-2008, 01:14 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The idea of this mod is great.
Did someone here improve it to work directly with lat/long ? Or just type de zip code or other reference ? A great thing for me would be just get the maps posted by just pasting the http link created by google maps

Google API now gaves me support for my country but as this mod gets validation from yahoo maps, nothing works for me. Is there a way to deasable this yahoo validation ?

Tks.
Reply With Quote
  #214  
Old 04-07-2008, 03:23 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interested in an improvement to this... I allow my users to upload *.kml and *.kmz files and basically want a map inserted for each attachment that is of those types, with the source of the map being the attachment Url.

An embedded auto-preview of Google Earth if you like.
Reply With Quote
  #215  
Old 04-18-2008, 01:40 PM
joerns joerns is offline
 
Join Date: Feb 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi - great hack! It worked fine until a few days ago. Maps are not displayed anymore. Any ideas how to start troubleshooting?
Reply With Quote
  #216  
Old 04-23-2008, 06:12 PM
SuperNissans SuperNissans is offline
 
Join Date: Apr 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot get this to work for anything.....

using defauly settings, entered google API key as supplied by Google...

tried different addresses and still no luck.

Keep getting invalid address no matter what I use.

Ideas?
Reply With Quote
  #217  
Old 04-23-2008, 09:22 PM
dennisuello dennisuello is offline
 
Join Date: Mar 2005
Location: Reno, Nevada
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SuperNissans View Post
I cannot get this to work for anything.....

using defauly settings, entered google API key as supplied by Google...


tried different addresses and still no luck.

Keep getting invalid address no matter what I use.

Ideas?
Same here, when I use example code, I get invalid address.
[map]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]
1. Invalid address: 1600 Pennsylvania Avenue NW, Washington, DC 20500
Reply With Quote
  #218  
Old 04-24-2008, 03:58 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Google apparently made some changes to the Maps API services.

Magnus, if you do get a change to work on this again, could I recommend that you find a way to circumvent the "invalid address" message that keeps you from posting? I have some RSS feeds that actually use the [map] tags, and the feed is interrupted by the invalid message, and can't be retrieved.
Reply With Quote
  #219  
Old 05-14-2008, 12:24 AM
Cyburbia's Avatar
Cyburbia Cyburbia is offline
 
Join Date: Feb 2002
Location: Ithaca, New York USA
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't uninstall this. Here's the error message I get:

Quote:
Database error in vBulletin 3.7.0:

Invalid SQL:
ALTER TABLE `post` DROP `phoogle_html`;

MySQL Error : Can't DROP 'phoogle_html'; check that column/key exists
Error Number : 1091
Request Date : Tuesday, May 13th 2008 @ 09:34:45 PM
Error Date : Tuesday, May 13th 2008 @ 09:36:10 PM
I re-install with an overwrite, and try uninstalling again ... nope. Same error.

Tried the query "ALTER TABLE `post` ADD `phoogle_html` mediumtext", and phpMyAdmin took about 300 seconds to execute. Even then, when I try to uninstall, the vBulletin control panel just hangs after Confirm Deletion: Phoogle at forums/admincp/plugin.php?do=productkill without deleting the plugin.

So, how can I delete the thing manually?
Reply With Quote
  #220  
Old 05-16-2008, 01:51 AM
ThePiston ThePiston is offline
 
Join Date: Jun 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

damn, this mod is dead now? if i can get past the "invalid address" error, all i see is a blank area where the map should be:
http://googlemapsforum.com/showthread.php?t=5

firebug says there's a syntax error in showthread.php on lines 2153 and 2180:
2153:
Quote:
{
2151 var map5 = new GMap(document.getElementById("map5"));
2152 map5.centerAndZoom(new GPoint(, ), 6);
2153 }
2180:
Quote:
{
2178 var map114 = new GMap(document.getElementById("map114"));
2179 map114.centerAndZoom(new GPoint(, ), 6);
2180 }
Reply With Quote
  #221  
Old 06-10-2008, 02:10 AM
madkeen madkeen is offline
 
Join Date: Jan 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would like to get this on my site.

Anyone know if a work around for what Google has done will be able to be done?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05563 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete