vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Phoogle! An interactive Google Maps mapping system. (https://vborg.vbsupport.ru/showthread.php?t=141584)

magnus 03-09-2007 08:28 PM

Quote:

Originally Posted by bashy (Post 1199699)
Hi

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?

bashy 03-09-2007 08:46 PM

I tried your address, i copied all of it, i tried them both!!!

[map]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]
[map=The White House]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]

I have removed it for now in case there is an issue whilst i am away from the forum, i am going bed soon!!

magnus 03-09-2007 08:56 PM

There's not much I can do unless you answer the questions listed in this post.

magnus 03-09-2007 09:07 PM

Update:
v1.0.1
  • Added check for post preview, [map] code will NOT be parsed when previewing (because it can't).

Tralala 03-09-2007 10:17 PM

Quote:

Originally Posted by bashy (Post 1199699)
If i just post the post then it gives a big blank space
where the map should be and i have refreshed and nothing

Same here.

No error text, the post is just blank.

Happens in both the default style as well as my custom style.

I used the included example: [map=The White House]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]

My forum is private but I can PM you a link and account info if you'd like to test. I can also email the source text of the page.

Tralala 03-09-2007 10:22 PM

Oh, for troubleshooting BTW, when generating the Google Maps API, I tried both:
http://www.myforumname.com
as well as http://www.myforumname.com/forums/
...neither made a difference. The resulting post is still a big empty space.

TTG 03-09-2007 10:41 PM

Do we have to add a new bb code to make this active or is that installed when adding the product ?

magnus 03-09-2007 11:20 PM

Quote:

Originally Posted by Tralala (Post 1199821)
Oh, for troubleshooting BTW, when generating the Google Maps API, I tried both:
http://www.myforumname.com
as well as http://www.myforumname.com/forums/
...neither made a difference. The resulting post is still a big empty space.

If you could shoot me the page source, or PM an account -- that would be great.

magnus 03-09-2007 11:20 PM

No, this isn't handled as a typical BBCode. Everything is done via the product XML.

magnus 03-09-2007 11:23 PM

I'm going to install a fresh forum on a different host and see what's going on.

* Edit: I just installed a FRESH copy of v3.6.5, installed the product, and everything is working perfectly fine.

This is a completely vanilla installation, I've made no changes to configuration, etc.


All times are GMT. The time now is 03:18 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.01191 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete