Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #102  
Old 03-19-2007, 02:05 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

False lead. My header and footer are identical between the customized style and the default style and I still get the error in the customized style.
Reply With Quote
  #103  
Old 03-19-2007, 02:11 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 meissenation View Post
False lead. My header and footer are identical between the customized style and the default style and I still get the error in the customized style.
First step, run the affected page through The W3C Markup Validation Service. It will find any mismatched tags, improper usage, etc. All of which could affect proper display.

Many of the errors it will return might be for strict sake, but it will find actual table/layout/etc errors as well. For example:

Quote:
# Error Line 450 column 7: end tag for "tr" omitted, but OMITTAG NO was specified.

</table>
Quote:
Error Line 469 column 4: end tag for "td" omitted, but OMITTAG NO was specified.

</tr>
Quote:
# Error Line 477 column 32: invalid comment declaration: found name character outside comment but inside comment declaration.

<!-- End of Ride of the Month --->
Quote:
# Error Line 771 column 7: end tag for "td" omitted, but OMITTAG NO was specified.

</div>


# Info Line 588 column 0: start tag was here.

<td>

# Error Line 771 column 7: end tag for "tr" omitted, but OMITTAG NO was specified.

</div>


# Info Line 584 column 0: start tag was here.

<tr>

# Error Line 771 column 7: end tag for "table" omitted, but OMITTAG NO was specified.

</div>


# Info Line 583 column 0: start tag was here.

<table border=0 cellpadding="6" cellspacing="1" width=100% valign="top">


# Error Line 2468 column 4: end tag for element "td" which is not open.

</td>


# Error Line 2469 column 7: end tag for element "table" which is not open.

</table>
Those are just a few of the more pressing ones I'd focus on first. Ideally, you'd like to pass the validator and be W3C XHTML Compliant.

My money, however, is on this one:
Quote:
Error Line 607 column 8: end tag for element "script" which is not open.

</script>
Reply With Quote
  #104  
Old 03-19-2007, 02:45 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrm, I can't get line 607 to correlate to the </script> on my side.
Reply With Quote
  #105  
Old 03-19-2007, 02:49 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When validating your page, select the "Show Source" button. It will display your page source, with line numbers.
Reply With Quote
  #106  
Old 03-19-2007, 03:01 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah. Looks like it's in my navbar, I'll take a look in a couple hours -- I have to leave work (LOL been troubleshooting this all day..) and go to class.
Reply With Quote
  #107  
Old 03-19-2007, 05:34 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright well I removed the </script> and alas the same error is still present. It definitely seems like it's only in IE7, as the people that did not heed the thread's warning title all said they use FireFox, not IE7, and they said the maps load fine for them. I myself can view it fine in FF, and then as soon as I switch over to IE7 it errors me out.

It definitely seems to fail with the Customized style that I use. If I switch over to the Default style, it loads perfectly fine with no problems. What it's not compatible with, I'm not sure. I've copied over the custom style's header, headinclude, and footer so all of that would be the same. So now the difference lies with mods that are applying to the custom style and not the default, or template changes applying to custom and not default. :shrug: I'll try and trouble shoot this more tonight and tomorrow.
Reply With Quote
  #108  
Old 03-19-2007, 09:01 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just an update, I was UNABLE to replicate the Operation Aborted message on my girlfriend's laptop which runs WinXP IE6. This happens on my computer at my office, WinXP IE7 and on my laptop Windows Vista Business with IE7.

Edit: My dad was able to load the site on his WinXP computer with IE7. So it seems the issue is with my computer. I closed my browser, went into the Internet Options and cleared my cache, cookies, and browsing history for IE. Started IE and TA-EFFIN-DA the thread loads with no error messages!!!! Whether this fixes the error on all threads from now on or not, not sure... but in any case, it's now fully functional for my site on IE7, IE6, and FF2 as far as I can tell.

Magnus and Doctor Death, can you clear your cache with IE closed, then reopen IE and try the thread link to see if it works for you now too?
http://www.mifbody.com/vbulletin/showthread.php?t=7876
Reply With Quote
  #109  
Old 03-19-2007, 10:06 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just came back to post here, as I've asked my forum members to explicitly test this plugin with MSIE 7 and all of my forum's skins... and they had no problems whatsoever.

So the issue being troubleshot above is specific to meissenation's forum, and/or it's skin, and/or MSIE 7 on his computer.
Reply With Quote
  #110  
Old 03-20-2007, 12:41 AM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the sounds of it, seems like just need to clear cache.
Reply With Quote
  #111  
Old 03-20-2007, 10:01 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At work clearing my cache didn't fix it, so I cleared my cache, browsing history, and cookies and THEN it worked again.
Reply With Quote
Reply

Thread Tools

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 02:46 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.04805 seconds
  • Memory Usage 2,312KB
  • 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
  • (6)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