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
  #162  
Old 05-01-2007, 06:53 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darat View Post
No I haven't got it working with UK street addresses - that will require magnus to make the changes he's made in his development version publicly available or him doing something very clever like switching the yahoo look-up depending on the country.
Ahh .. ok .. thanks for the reply, that makes it much clearer.
Reply With Quote
  #163  
Old 05-05-2007, 06:58 PM
Doctor Death Doctor Death is offline
 
Join Date: Dec 2005
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With a custom skin, when displaying a post with map tags in it, it shows a white box with map controls and a very small bit of map in top left corner of map.

Interestingly enough, when you click on the QUICK REPLY button, the map suddenly appears but there is not the spot marker which you would expect in normal google mapping.

Any ideas on how this conflict is occurring?

Thanks

P.S. I sincerely appologize for my inaccurate comments earlier this spring. I hope that the coders accept this.

Regards.
Reply With Quote
  #164  
Old 05-06-2007, 02:22 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doctor Death View Post
With a custom skin, when displaying a post with map tags in it, it shows a white box with map controls and a very small bit of map in top left corner of map.

Interestingly enough, when you click on the QUICK REPLY button, the map suddenly appears but there is not the spot marker which you would expect in normal google mapping.

Any ideas on how this conflict is occurring?

Thanks

P.S. I sincerely appologize for my inaccurate comments earlier this spring. I hope that the coders accept this.

Regards.
Sounds like there may be an open HTML tag somewhere. Try running the custom skin through the W3C XHTML Validator to search for possible issues.
Reply With Quote
  #165  
Old 05-07-2007, 01:04 AM
Doctor Death Doctor Death is offline
 
Join Date: Dec 2005
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had someone check and sure enough there was an open <table> tag in the header.

Once it was closed properly, it worked like a charm.

Thanks for the clue.
Reply With Quote
  #166  
Old 05-14-2007, 01:29 PM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love the hack but it has somewhat limited functionality. For using it to list the address of an event, it would be VERY useful to have a way to link it to "directions" information, so that people can go from seeing the map to actually mapping directions from their locations to the event. Is that possible for future versions ?
Reply With Quote
  #167  
Old 05-15-2007, 09:11 AM
bugriders bugriders is offline
 
Join Date: Jan 2007
Location: Belgium
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working!! Thanks. Great hack.

The only thing.... I want to use the map for countries: Belgium and Holland.
If I try I receive: Invallid adress.

I supose I have to change the Geocode API URL

I've been looking for that code on http://www.google.com/apis/maps/docu...oding_Examples

but no results
Reply With Quote
  #168  
Old 05-15-2007, 12:35 PM
ManniC ManniC is offline
 
Join Date: Jan 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also works fine for me, thx magnus :up:

@bugriders:

Some posts above was mentioned that the street-data is verified by yahoo.com, neither uk- or ge-adresses are covered with this solution. magnus wrote that the googlemap-API doesnt give back an error code.

Question: Does anybody have a yahoo-call for verifying german adresses?

Code:
http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=rhaland+5+bottrop
responses "The street could not be found. Here is the center of the city."

When i directly call googlemap-API with the same street-adress, i get back code 200:
Code:
−
	<kml>
−
	<Response>
<name>Rhaland 5 Bottrop</name>
−
	<Status>
<code>200</code>
<request>geocode</request>
</Status>
−
	<Placemark id="p1">
<address>Rhaland 5, 46242 Bottrop, Germany</address>
−
	<AddressDetails Accuracy="8">
−
	<Country>
<CountryNameCode>DE</CountryNameCode>
−
	<AdministrativeArea>
<AdministrativeAreaName>Nordrhein-Westfalen</AdministrativeAreaName>
−
	<SubAdministrativeArea>
<SubAdministrativeAreaName>Bottrop</SubAdministrativeAreaName>
−
	<Locality>
<LocalityName>Bottrop</LocalityName>
−
	<Thoroughfare>
<ThoroughfareName>Rhaland 5</ThoroughfareName>
</Thoroughfare>
−
	<PostalCode>
<PostalCodeNumber>46242</PostalCodeNumber>
</PostalCode>
</Locality>
</SubAdministrativeArea>
</AdministrativeArea>
</Country>
</AddressDetails>
−
	<Point>
<coordinates>6.913915,51.502829,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>
By mistyping the street (Rxaland instead of Rhaland) i get back code 602 which seems to be an error code:
Code:
−
	<kml>
−
	<Response>
<name>Rhxaland 5 Bottrop</name>
−
	<Status>
<code>602</code>
<request>geocode</request>
</Status>
</Response>
</kml>
Anybody an idea ???

Thx in advance
Reply With Quote
  #169  
Old 05-19-2007, 03:08 PM
Blittz Blittz is offline
 
Join Date: Feb 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working as advertised with no bugs! Congrats on a great product Magnus.

I can think of 3 things I'd love to see added someday.
  1. Ability to pick Map/Satellite/Hybrid in the [map] tag
  2. Add a location that Google doesn't have an address for. Here is an example of what I'm talking about:
    Our RC Flying club uses this park:But to use this hack, I have to use an address that google knows:
    • [map]600 S Columbia Center Blvd, Kennewick, WA 99336[/map]
    While its close, it would be cool to maybe have:
    • [map=url]google_link_goes_here[/map] or something *shrug*
  3. Add a default link below the map to open it up in a new full normal google map window. That way people can now use google's tools to get driving directions, etc...
Great hack even as it stands now, thanks for all your hard work Magus!
Reply With Quote
  #170  
Old 05-21-2007, 10:50 AM
truCido truCido is offline
 
Join Date: Sep 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, like the others I am from the UK so having a few problems however I can pin point the road which is good enough for now

[map]Bletcham Way,Milton Keynes,Buckshire,MK78HP[/map] worked for me!

One other thing I noticed is that if I goto http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=<texthere> and enter a UK postcode in place of <texthere> it actually returns a result is it possible to have it work from just entering a postcode?
Reply With Quote
  #171  
Old 05-30-2007, 06:52 PM
krela krela is offline
 
Join Date: Jun 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way this would work by putting in lat/long yourself and not relying on a geocoder at all?

i.e.

Code:
[map=name]lat, long[/map]
I know this bypasses some functionality, but it would make this module workable for people who either a) don't want to use it specifically for postal addresses or b) have international geocoding issues.

Preferably the option for both would be cool, some kind of check to see if the code given is already in lat/long format, if not parse it through a geocoder.

It must be possible reasonably easily because the geocoder simply converts the address to long/lat anyway.

This would make it the perfect mod for me!
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 03:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05687 seconds
  • Memory Usage 2,328KB
  • Queries Executed 27 (?)
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_code
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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