View Full Version : New Posting Features - Phoogle! An interactive Google Maps mapping system.
magnus
03-08-2007, 10:00 PM
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 (http://www.systemsevendesigns.com/phoogle/) and figured, "why not?"
A few headaches later.. here we are. :)
-
Usage:
value
Option[/b]]value
Example:
1600 Pennsylvania Avenue NW, Washington, DC 20500
The White House]1600 Pennsylvania Avenue NW, Washington, DC 20500[/b]
Multiple Locations Example:
1600 Pennsylvania Avenue NW, Washington, DC 20500;E Capitol St NE & 1st St NE, Washington, DC 20001
The White House;Capitol Building]1600 Pennsylvania Avenue NW, Washington, DC 20500;E Capitol St NE & 1st St NE, Washington, DC 20001[/b]
-
Installation:
Download and import product-phoogle2.0Beta1.xml via the Product Manager.
If you do not already have one, obtain a free Google Maps API key (http://www.google.com/apis/maps/).
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.
-
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 (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=magn2o%40comcast%2enet&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8), 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 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!
magnus
03-09-2007, 05:39 PM
Problems:
If you have a problem, please reply to this thread with the following information:
vBulletin, PHP and MySQL version numbers.
If applicable, the error text. Otherwise, a detailed description.
Whether or not you're using (or tested using) the default style.
The exact string you used which resulted in the error (ie. 123 Main Street)
If possible, a link to the thread in question. Otherwise, provide the output of a "View Source" (preferably in a .txt file).
The majority of problems can be attributed to custom skins. I cannot take into account the thousands of skin variations out there -- so I can only truly troubleshoot using the default vB skin. If you're having trouble using the DEFAULT skin, we can work from there. However, if you're unable (or unwilling) to verify the functionality, there's nothing I can do.
icemanic
03-09-2007, 05:45 PM
this looks sweet, i could definately use this - will give it a shot later today
Darat
03-09-2007, 05:54 PM
I'll definitely try this on my devforum - if it works fine it will be nice add-on - thanks.
KevNJ
03-09-2007, 06:15 PM
looks really good will install later tonight.... this is will be good for the geeks GARS system as i use it for a directory of bars and clubs. now ill be able to show a google map with that.. SWEEEEET!!!!
icemanic
03-09-2007, 06:28 PM
i tried it but i just see big empty space where the map should be...... any ideas
magnus
03-09-2007, 06:36 PM
i tried it but i just see big empty space where the map should be...... any ideas
Refresh the page. View the source of the page, search for "showmap". Let me know what you find.
Optimally, if you could provide a link to the page I can look myself.
Also, are you trying this with the default style? If not, try it. If it works with the default style, then we'll know it's something with your custom style.
*Edit: One thing I forgot to mention is there is no proper error handling. So, if the address is invalid it will return an empty square.
Try the address listed above in the product post to be sure.
FleaBag
03-09-2007, 06:45 PM
Brilliant! Will be awesome for people advertising events.
projectego
03-09-2007, 06:53 PM
This looks very interesting... ;)
* projectego clicks install
bashy
03-09-2007, 07:01 PM
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
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
magnus
03-09-2007, 08:28 PM
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
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!!!
1600 Pennsylvania Avenue NW, Washington, DC 20500
1600 Pennsylvania Avenue NW, Washington, DC 20500
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 (https://vborg.vbsupport.ru/showpost.php?p=1199648&postcount=2).
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
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: 1600 Pennsylvania Avenue NW, Washington, DC 20500
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.
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
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.
magnus
03-09-2007, 11:40 PM
The problem some of you are reporting seems like the showmap(); function isn't being written to SHOWTHREAD. On the page with the blank square, view the source. Scroll to the bottom (or search for </body>), and above that should be a <script>..</script> tag. Within that should be a function. Is it there? If not, that's the problem and we'll go from there..
Until someone can provide me with either an account or source output, all I can do is speculate.
Works well but all I can get to work is the example in your product description and my UK members are not really interested where the white house is located :D ..
I've located UK areas on google map and added the information into the bbcode and nothing shows .. for example, I ask google map to find Imperial War Museum Duxford and up it pops, add the same info into the bbcode and blank space !?
Would also be useful to have an option to add a "Map" button to the standard bbcode toolbar.
Great addition with a few tweaks :up:
magnus
03-10-2007, 12:49 AM
Works well but all I can get to work is the example in your product description and my UK members are not really interested where the white house is located :D ..
I've located UK areas on google map and added the information into the bbcode and nothing shows .. for example, I ask google map to find Imperial War Museum Duxford and up it pops, add the same info into the bbcode and blank space !?
Currently, the Google Maps API doesn't natively support locations by name. So, simply providing "Imperial War Museum Duxford" as a value wouldn't return proper coordinates.
Use this instead:
Imperial War Museum Duxford[/color]]Duxford, Cambridge, CB2 4QR, UK
Would also be useful to have an option to add a "Map" button to the standard bbcode toolbar.
That's planned. :) As well as figuring out a way to verbosely handle errors properly. /sigh
Great addition with a few tweaks :up:
Thanks! :)
Doctor Death
03-10-2007, 01:23 AM
Would be a great plugin if it worked. Caused "could not display post" errors and locked up.
Will wait for a few updates, but I am looking forward to them.
magnus
03-10-2007, 01:45 AM
I can't track down bugs unless I'm given the information to do so, sadly.
Tralala
03-10-2007, 02:17 AM
The problem some of you are reporting seems like the showmap(); function isn't being written to SHOWTHREAD. On the page with the blank square, view the source. Scroll to the bottom (or search for </body>), and above that should be a <script>..</script> tag. Within that should be a function. Is it there? If not, that's the problem and we'll go from there..
Until someone can provide me with either an account or source output, all I can do is speculate.
Yeah, this is what I see above </body>:
<script type="text/javascript">
function showmap136686()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map136686 = new GMap(document.getElementById("map136686"));
map136686.centerAndZoom(new GPoint(, ), 4);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map136686.addControl(new GSmallMapControl());
map136686.addControl(new GMapTypeControl());
//]]>
}
showmap136686();
</script>
...and yet all I see is the blank post... I have sent you a PM with the hopes of troubleshooting further.
magnus
03-10-2007, 02:52 AM
Yeah, this is what I see above </body>:
<script type="text/javascript">
function showmap136686()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map136686 = new GMap(document.getElementById("map136686"));
map136686.centerAndZoom(new GPoint(, ), 4);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map136686.addControl(new GSmallMapControl());
map136686.addControl(new GMapTypeControl());
//]]>
}
showmap136686();
</script>
...and yet all I see is the blank post... I have sent you a PM with the hopes of troubleshooting further.
Ok, from that I can tell that it's not retrieving the lat/long coordinates.
This line is incomplete:
map136686.centerAndZoom(new GPoint(, ), 4);
There should be coordinate locations called within the GPoint(); class. Usually, this is the result of an invalid address. However, you said you tested using the examples provided within the original post.. correct?
I need to try and narrow down if your problem is with the phoogle functions or if the addressData is being lost when sent from vBulletin.
Tralala
03-10-2007, 10:58 AM
Thanks for the help, magnus!
Hopefully, this will either work or return an error.
Uploaded the new file, replacing the old... created a post... and got this error:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /includes/functions_phoogle.php on line 97
Warning: file_get_contents(http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=1600+Pennsylvania+Avenue+NW%2C+Washington %2C+DC+20500) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /includes/functions_phoogle.php on line 97
bashy
03-10-2007, 11:04 AM
Hi
I have tried your new functions_phoogle.php file and i still get a blank map, here is the source from the page!
I now have the original php file installed
The map location is your white house 1 copied and pasted!!
<script type="text/javascript">
function showmap51599()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map51599 = new GMap(document.getElementById("map51599"));
map51599.centerAndZoom(new GPoint(, ), 4);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map51599.addControl(new GLargeMapControl());
map51599.addControl(new GMapTypeControl());
//]]>
}
showmap51599();
</script>
magnus
03-10-2007, 12:27 PM
@Tralala:
Ok, your problem is obvious. Dreamhost disallows file_get_contents();. No problem, I'll rewrite using cURL.
@Bashy:
You seem to be having the same problem. Do you use Dreamhost as well?
magnus
03-10-2007, 12:35 PM
Attached is a functions_phoogle.php utilizing cURL() instead. Let me know if this fixes it for you.
Tralala
03-10-2007, 01:02 PM
Attached is a functions_phoogle.php utilizing cURL() instead. Let me know if this fixes it for you.
Thanks! Okay, now we are getting somewhere... a map appears in my post. However, if I have multiple posts in a thread with maps, all with different addresses, the resulting images all appear to match the same as the first. IE: Post #1 had 1600 Pennsylvania Avenue NW, Washington, DC 20500, and post #2 had my address... but when I refreshed the thread, both posts showed maps of The White House. I imagine/hope this is an easy fix.
Minor suggestion:
I would like it if when the map is clicked, it opens the full Google Map in a new window rather than taking over the existing window. Perhaps consider making that an Admin (and/or User) preference?
This is a GREAT add-on, thanks so much for sharing your work on it!
Tralala
03-10-2007, 01:05 PM
@Bashy:
You seem to be having the same problem. Do you use Dreamhost as well?
FWIW, I'm aware of quite a few hosts who have disabled the PHP option allow_url_fopen, and thus have disallowed file_get_contents()... for security reasons. (Not just Dreamhost.) Apparently cURL is more secure, and is a feature-rich alternative. Thanks for providing the alternate file... it appears to be a step in the right direction for me.
bashy
03-10-2007, 01:18 PM
No m8, I am using a dedicated server from bobhosting :)
EDIT: and the curl file did nothing for me :(
Just in case heres the source again
BTW enjoy the wedding :)
<script type="text/javascript">
function showmap51602()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map51602 = new GMap(document.getElementById("map51602"));
map51602.centerAndZoom(new GPoint(, ), 4);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map51602.addControl(new GLargeMapControl());
map51602.addControl(new GMapTypeControl());
//]]>
}
showmap51602();
</script>
bela-meaad
03-10-2007, 03:44 PM
can i install this with
VBGooglemap Hotspot Edition
or that will cause problem?
How to get the value?
How to not give permissions to the members?
Thanks
magnus
03-10-2007, 11:08 PM
Thanks! Okay, now we are getting somewhere... a map appears in my post. However, if I have multiple posts in a thread with maps, all with different addresses, the resulting images all appear to match the same as the first. IE: Post #1 had 1600 Pennsylvania Avenue NW, Washington, DC 20500, and post #2 had my address... but when I refreshed the thread, both posts showed maps of The White House. I imagine/hope this is an easy fix.
Minor suggestion:
I would like it if when the map is clicked, it opens the full Google Map in a new window rather than taking over the existing window. Perhaps consider making that an Admin (and/or User) preference?
This is a GREAT add-on, thanks so much for sharing your work on it!
After some testing, I've only been able to replicate that result when inline editing a thread and changing multiple maps. Are you using the inline editor, or are you creating a new reply? If not, give that a try. Otherwise, can you post the resulting <script></script> information once again?
Thanks.
magnus
03-10-2007, 11:10 PM
can i install this with
VBGooglemap Hotspot Edition
or that will cause problem?
I'm not sure if this will work with VBGooglemap, I haven't tried. It's my understanding VBGooglemap isn't displayed via SHOWTHREAD, so I wouldn't anticipate a problem.
How to get the value?
Get what value? The address? You just type it in.
How to not give permissions to the members?
I haven't added permissions yet.
Tralala
03-11-2007, 02:51 AM
After some testing, I've only been able to replicate that result when inline editing a thread and changing multiple maps. Are you using the inline editor, or are you creating a new reply? If not, give that a try. Otherwise, can you post the resulting <script></script> information once again?
Thanks.
I posted via QuickReply as well as "Advanced" Reply, and always got the same result... the address of the first map in the thread is used for all maps.
Here is the <script> info from the page's source, I changed the address to a nearby location for illustrative purposes:
<script type="text/javascript">
function showmap136825()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map136825 = new GMap(document.getElementById("map136825"));
map136825.centerAndZoom(new GPoint(-77.037223, 38.898563), 4);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map136825.addControl(new GSmallMapControl());
map136825.addControl(new GMapTypeControl());
var point0136825 = new GPoint(-77.037223, 38.898563);
var marker0136825 = new GMarker(point0136825);
map136825.addOverlay(marker0136825)
GEvent.addListener(marker0136825, "click", function()
{
marker0136825.openInfoWindowHtml("1600 Pennsylvania Avenue NW, Washington, DC 20500");
}
);
var point1136825 = new GPoint(-118.340965, 34.066642);
var marker1136825 = new GMarker(point1136825);
map136825.addOverlay(marker1136825)
GEvent.addListener(marker1136825, "click", function()
{
marker1136825.openInfoWindowHtml("200 South Orange Avenue, Los Angeles, CA 90036");
}
);
//]]>
}
showmap136825();
</script>
Another interesting data point. If the map in post #1 is for "200 South Orange Avenue, Los Angeles, CA 90036" and the map in post #2 is for a nearby address, say, "300 South Orange Avenue, Los Angeles, CA 90036"... the map in post #2 has two red pointers in it, for both addresses.
NuclioN
03-11-2007, 04:06 AM
This is great. Maybe a stupid question but what is the standard method to put addresses between [ map ] tags?
bela-meaad
03-11-2007, 07:38 AM
why can`t we use
latitude & longitude
as Value?
isn`t good idea?
Thanks
magnus
03-11-2007, 02:43 PM
I posted via QuickReply as well as "Advanced" Reply, and always got the same result... the address of the first map in the thread is used for all maps.
Another interesting data point. If the map in post #1 is for "200 South Orange Avenue, Los Angeles, CA 90036" and the map in post #2 is for a nearby address, say, "300 South Orange Avenue, Los Angeles, CA 90036"... the map in post #2 has two red pointers in it, for both addresses.
I've been continually trying to replicate the problems you're experiencing, but I just can't seem to do so. I'll keep checking, but if I can't replicate it -- I can't fix it. :(
Tralala
03-11-2007, 02:59 PM
I've been continually trying to replicate the problems you're experiencing, but I just can't seem to do so. I'll keep checking, but if I can't replicate it -- I can't fix it. :(
If that's the case I'm happy to create a test account on my forum for you, and can go to IM in order to test/troubleshoot whatever you need.
EDIT: I just tested and the same issue happening in the default vB skin as well. I will now try again, after disabling some hacks. Maybe they are interfering?
magnus
03-11-2007, 07:01 PM
It's not impossible, but unlikely -- that other hacks are interfering. Do you have any hacks installed that specifically manipulate (or add) posting features?
Tralala
03-11-2007, 08:06 PM
It's not impossible, but unlikely -- that other hacks are interfering. Do you have any hacks installed that specifically manipulate (or add) posting features?
The only thing that comes to mind is the AnyMedia Code (https://vborg.vbsupport.ru/showthread.php?threadid=106239)... which works perfectly for me.
And even with that hack disabled, I found Phoogle doing the same weird "same map for every post" thing. Other than that, I don't have any other hacks that come near this territory.
It does seem like we are >thisclose< to having it work properly, though.
magnus
03-12-2007, 10:38 AM
The only thing that comes to mind is the AnyMedia Code (https://vborg.vbsupport.ru/showthread.php?threadid=106239)... which works perfectly for me.
And even with that hack disabled, I found Phoogle doing the same weird "same map for every post" thing. Other than that, I don't have any other hacks that come near this territory.
It does seem like we are >thisclose< to having it work properly, though.
I'm going to try and circumvent vB's internal BBCode parsing system and see if that helps, because this isn't exactly a "BBCode".
With 24 installs so far, and only 2 people having (read: reporting) problems -- I have to assume there's some little incompatibility somewhere along the line. Do you by chance know your PHP/MySQL versions?
Darat
03-12-2007, 10:59 AM
I'm having the same type of problems as Tralala, I can let you have access to my devforum if you want to check it out.
Tralala
03-12-2007, 02:55 PM
Do you by chance know your PHP/MySQL versions?
Straight from my admin panel:
https://vborg.vbsupport.ru/external/2007/03/21.jpg
Tralala
03-12-2007, 02:57 PM
Another interesting data point. If the map in post #1 is for "200 South Orange Avenue, Los Angeles, CA 90036" and the map in post #2 is for a nearby address, say, "300 South Orange Avenue, Los Angeles, CA 90036"... the map in post #2 has two red pointers in it, for both addresses.
And when I create a third map in a thread, it has three markers on it... it's as if all of the maps reference the maps that come before it on the same page.
I also noticed I could not include two maps in single post... it only displays the last one. I tested with multiple refreshes.
bela-meaad
03-13-2007, 02:20 AM
why can`t we use
latitude & longitude
as Value?
isn`t good idea?
Thanks
again
magnus
03-13-2007, 11:39 AM
Straight from my admin panel:
https://vborg.vbsupport.ru/external/2007/03/21.jpg
Hrm. I'm using PHP5. I wonder..
I'm going to try downgrading.
magnus
03-13-2007, 11:41 AM
And when I create a third map in a thread, it has three markers on it... it's as if all of the maps reference the maps that come before it on the same page.
I also noticed I could not include two maps in single post... it only displays the last one. I tested with multiple refreshes.
Hrm. I can tell what's happening, but for the life of me I cannot figure out why. As mentioned before, I'm working on a different handling system for the [map] tag. I had to 'tweak' things to make them fit within BBcode standards, which I wasn't happy about.
magnus
03-13-2007, 11:41 AM
I'm having the same type of problems as Tralala, I can let you have access to my devforum if you want to check it out.
Just out of curiosity, are you using PHP4, too?
Tralala
03-13-2007, 03:56 PM
Hrm. I'm using PHP5. I wonder..
I'm going to try downgrading.
Thanks for the continued work, magnus. I certainly appreciate it as this mod looks like it'd be a great addition to my forum.
ThePiston
03-13-2007, 04:03 PM
this would be perfect for my new site www.googlemapsforum.com but alas I have same problem - no map, just blank space. I use dreamhost and I uploaded the new php file, sill all white :(
Tralala
03-13-2007, 04:28 PM
this would be perfect for my new site www.googlemapsforum.com but alas I have same problem - no map, just blank space. I use dreamhost and I uploaded the new php file, sill all white :(
Just FYI, the map doesn't show up via an AJAX QuickReply or QuickEdit... but it does if you refresh the page. Did you try that?
magnus
03-13-2007, 05:15 PM
Ok, we're getting somewhere. Just need to clean up the code and package it. I've eliminated the need for an external file (functions_phoogle.php). I'm also using the default vB_XML_Parser() class instead of using my own.
A few minutes more of testing, and I'll upload it.
One thing to note is I've changed the way multiple points are added to the map. No longer will separate tags per post work. The new format is:
Address 1;Address 2
Not sure how friendly that is.. so, unless someone has a better idea? :P
ThePiston
03-13-2007, 05:21 PM
Just FYI, the map doesn't show up via an AJAX QuickReply or QuickEdit... but it does if you refresh the page. Did you try that?
yep, tried that... i have another google map mod that does come up so the key is right.
lightmajestic
03-13-2007, 05:47 PM
I have the same issue with the blank square. Let me know if you need to see any of my settings etc. I'd love to use this.
cheers
Rick
magnus
03-13-2007, 07:14 PM
Update:
v1.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()
-
If you are upgrading you may delete the functions_phoogle.php uploaded previously to your /forum/includes/ directory as it is no longer needed.
Remember, if you're having problems please read this post (https://vborg.vbsupport.ru/showpost.php?p=1199648&postcount=2) first!
magnus
03-13-2007, 07:29 PM
why can`t we use
latitude & longitude
as Value?
isn`t good idea?
Thanks
I'll add it in the next release once I'm sure the basic framework is working across multiple installs.
ThePiston
03-13-2007, 07:48 PM
worked on this build when it didn't work before: http://googlemapsforum.com/showthread.php?p=5#post5 good job! I can't post the example code though - how can I post the "how to" without making the code create maps?
magnus
03-13-2007, 07:52 PM
vBulletin, by default, has BBCode. Simply encase the example within those tags.
Example:
This is bold
This is bold
The plugin also adds an example to the BBcode help page @ /misc.php?do=bbcode -- I will be adding a editor button once I'm sure the framework is stable. :P
Glad to hear it's working!
ThePiston
03-13-2007, 07:58 PM
one problem, this is what I get in the popup window: "Array['passedAddress']}"
magnus
03-13-2007, 08:05 PM
one problem, this is what I get in the popup window: "Array['passedAddress']}"
What popup window?
ThePiston
03-13-2007, 08:09 PM
my bad, it works, sorry
magnus
03-13-2007, 08:11 PM
Actually, I found what you're talking about. I missed a brace.
In your phoogle_mapcodebits template:
FIND
marker{$g}{$post['postid']}.openInfoWindowHtml("$validPoints[$g]['passedAddress']}");
REPLACE WITH
marker{$g}{$post['postid']}.openInfoWindowHtml("{$validPoints[$g]['passedAddress']}");
I've updated the .xml in the original post. This would only rear it's head if you didn't pass a title to the marker.
Woops! :P
bashy
03-13-2007, 08:31 PM
Now theres no blank map but it shows
1600 Pennsylvania Avenue NW, Washington, DC 20500
ThePiston
03-13-2007, 08:32 PM
where do i find "phoogle_mapcodebits template" ?
**edit** NM, i did a search in templates, found it, thanks
magnus
03-13-2007, 08:34 PM
where do i find "phoogle_mapcodebits template" ?
AdminCP > Style Manager > [Your Style] > Phoogle Templates
magnus
03-13-2007, 08:36 PM
Now theres no blank map but it shows
1600 Pennsylvania Avenue NW, Washington, DC 20500
Need this information (https://vborg.vbsupport.ru/showpost.php?p=1199648&postcount=2)
Doctor Death
03-13-2007, 08:40 PM
Uninstalled (again). Once installed, got this error on NEW POST screen
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/xxxxxxx/public_html/forums/includes/class_bbcode.php(166) : eval()'d code on line 16
Will try again next version.
apfparadise
03-13-2007, 08:43 PM
Upgraded from 1.0 to 1.1 and now I get this on top of my pages:
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/aquatic/public_html/socalaquascapers/forum/includes/class_bbcode.php(166) : eval()'d code on line 16
I took out the product completely and then reinstalled the 1.1 and still the same error, never showed up with 1.0
magnus
03-13-2007, 08:54 PM
@Doctor Death & apfparadise:
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/xxxxxxx/public_html/forums/includes/class_bbcode.php(166) : eval()'d code on line 16
This is because you're still using PHP4 (or lower). I went ahead and made it backwards compatible.
Either re-download the .xml and import it or make the following modifcation yourself:
In the Create handle_bbcode_map() for handling of [map] tags plugin:
FIND:
foreach ($locations as &$location)
REPLACE:
foreach ($locations as $location)
That will fix that error.
Tralala
03-13-2007, 09:49 PM
Great work, magnus... it appears to be working for me. I deleted the older functions_phoogle.php file, and upgraded the product. Tested a few posts and the maps show up as expected. Then I tested with the Address 1;Address 2 syntax and that worked fine as well. :up:
Just curious, what did the problem turn out to be? PHP 4 vs 5?
The only thing that didn't seem to work was when I tried to include more than one (seperate) maps into one post. Say, I wanted to have one map of the White House, and a seperate one of the Grand Canyon in a single post. Only the 2nd map would display.
magnus
03-13-2007, 10:19 PM
Great work, magnus... it appears to be working for me. I deleted the older functions_phoogle.php file, and upgraded the product. Tested a few posts and the maps show up as expected. Then I tested with the Address 1;Address 2 syntax and that worked fine as well. :up:
Great, glad to hear it. :)
Just curious, what did the problem turn out to be? PHP 4 vs 5?
No. I downgraded to PHP4 and that didn't solve anything, so I decided to sort of 're-do' the way the whole thing was processed. And, so far, it seems to be working..
The only thing that didn't seem to work was when I tried to include more than one (seperate) maps into one post. Say, I wanted to have oneap of the White House and one of the Grand Canyon in a single post. Only the 2nd map would display.
This is by design. In the original iteration of this, one would add multiple points by declaring multiple values. So, really, there couldn't be multiple maps per post.
With the new format (semi-colon delimeter), I can go back to allowing multiple maps per post. Once I'm confident that the framework is stable, I'll add more features. :)
Tralala
03-13-2007, 10:50 PM
With the new format (semi-colon delimeter), I can go back to allowing multiple maps per post. Once I'm confident that the framework is stable, I'll add more features. :)
Sounds great to me! Keep up the great work.
Tralala
03-14-2007, 02:25 AM
Live on my forum, and it works for me in Safari. I'm getting reports from folks that the maps are not displaying for them though; all they're seeing is blank space. The common variable seems to be Firefox 2 (so far.) Although, some Firefox users can see the maps, some can't. I'm still gathering data.
Chadi
03-14-2007, 03:19 AM
Forgive me. I'm not exactly understanding what this does. Can someone please explain its motive? Thank you
Tralala
03-14-2007, 03:26 AM
Forgive me. I'm not exactly understanding what this does. Can someone please explain its motive? Thank you
It allows your board members to include a navigable and zoomable Google map in their posts.
Typing 1600 Pennsylvania Avenue NW, Washington, DC 20500 for example, results in this showing onscreen in the thread:
https://vborg.vbsupport.ru/external/2007/03/20.jpg
ThePiston
03-14-2007, 05:16 AM
Live on my forum, and it works for me in Safari. I'm getting reports from folks that the maps are not displaying for them though; all they're seeing is blank space. The common variable seems to be Firefox 2 (so far.) Although, some Firefox users can see the maps, some can't. I'm still gathering data.
works fine for me in FF 2
Tralala
03-14-2007, 07:04 AM
The users reporting issues, all with Firefox, are not seeing maps that are in the first post of a thread. They do see subsequent ones in the thread, though.
magnus
03-14-2007, 10:16 AM
Tralala, those with problems are running Firefox or Firefox 2? I developed this in Firefox 1.5.0.10 and tested in IE7.
Tralala
03-14-2007, 01:40 PM
Tralala, those with problems are running Firefox or Firefox 2? I developed this in Firefox 1.5.0.10 and tested in IE7.
So far, everyone reporting issues are using Firefox 2. The weird thing is that it's not consistent... some folks using Firefox 2 can see the maps just fine.
And the folks who are having problems, can see some maps, but not all of them. I think the issue is that the first map in a thread doesn't show up for them.
magnus
03-14-2007, 02:09 PM
Hrm. I'll install FireFox 2 on another PC in a bit and check -- the fact it's so inconsistent is making me lean towards the problem being end-user related, such as an Extension or AddOn causing a conflict.
I don't know if it's possible, but what would really help is if you could get the 'View Source' output from one of the users experiencing the problem. :D
If I haven't said it before, Tralala, thanks for the help you've provided so far. You've been integral in getting things where they are now.
Tralala
03-14-2007, 02:32 PM
Hrm. I'll install FireFox 2 on another PC in a bit and check -- the fact it's so inconsistent is making me lean towards the problem being end-user related, such as an Extension or AddOn causing a conflict.
I was leaning that way at first too, but I've got the problem reports coming in from 7 or 8 folks now, and some of them have no extensions installed, just a clean Firefox 2.
I don't know if it's possible, but what would really help is if you could get the 'View Source' output from one of the users experiencing the problem. :D
That won't be a problem. I'll ask one of the savvier users for that and will get back to you.
If I haven't said it before, Tralala, thanks for the help you've provided so far. You've been integral in getting things where they are now.
My pleasure. And thanks for your continued dedication to making it work perfectly. When it's all sorted out I'm sure it will be a very appreciated add-on for very many forums, and for that you should be proud. Thanks for sharing it. :)
Tralala
03-14-2007, 03:59 PM
New information: it appears to be a CDATA problem, specific to my forum's default skin. As best I can tell, it is working fine in the stock vB skin for everyone.
So as not to derail this thread any further, I'll send specific details to magnus via PM.
Tralala
03-17-2007, 07:51 AM
Now this is working perfectly for me (:up:)
I notice that entering just a city, state and zip (like you can with maps.google.com) doesn't work with Phoogle. For example, "Gerlach, NV 89412" gave me a blank space. I had to make up a fake street (in this case, "100 Main Street") for it create a map at all.
Also it'd be cool if there was an option to dictate whether the Phoogle map should be in satellite or hybrid format instead. And a way for the user to override the default zoom level.
magnus
03-17-2007, 01:46 PM
In the current development version, valid inputs are lat/log, as well as city, state, zip. So, that's covered.
As for allowing the user to set options other than labels and addresses, I don't really see how. BBCode accepts 2 variables:
{$code}
I don't see where I could add any extra variables. :(
Tralala
03-17-2007, 02:39 PM
In the current development version, valid inputs are lat/log, as well as city, state, zip. So, that's covered.
Excellent!
As for allowing the user to set options other than labels and addresses, I don't really see how. BBCode accepts 2 variables:
Not sure if it will help any, but take a look at this hack (https://vborg.vbsupport.ru/showthread.php?threadid=106239) I've been using on my forum for awhile now... it embeds all sorts of media via BBcode... but it allows for five options: width, height, autostart, loop, extension.
(Maybe that code will shed some light on how to work around the limitation.)
Another suggestion: when an invalid address is entered, or one that gets no search results, throw up a default "Error" or "no map data" image, rather than just a blank space.
magnus
03-17-2007, 05:26 PM
Not sure if it will help any, but take a look at this hack (https://vborg.vbsupport.ru/showthread.php?threadid=106239) I've been using on my forum for awhile now... it embeds all sorts of media via BBcode... but it allows for five options: width, height, autostart, loop, extension.
(Maybe that code will shed some light on how to work around the limitation.)
I'll check it out.
Another suggestion: when an invalid address is entered, or one that gets no search results, throw up a default "Error" or "no map data" image, rather than just a blank space.
Already done. :)
Tralala
03-17-2007, 06:55 PM
...if not as a user selectable option per map... how about an AdminCP setting for forum-wide default (like we can with Zoom level.) I'd like the maps to show up as Satellite (or Hybrid) by default, rather than the standard "street map" view.
Doctor Death
03-18-2007, 04:03 PM
I really want this to work on my board... I have installed (and deinstalled) every version of it since it showed up here hoping it would work...
Here is what happens:
It installs perfectly every time.
After I make a post with codes in it, you will no longer be able to access that post.
Internet Explorer 7 (which is what I use) gives (not vbulletin) the error that says it cannot display the page.
The error message shown shows the proper path etc to the posting. I have to uninstall the plugin and then go back and delete the post. You cannot edit the post while this error is occuring because it will not let you view the post.
Here are my versions:
Dr.NoTime
03-18-2007, 04:47 PM
"Installed" Works great. Thanks!
I am using Firefox 2.0.0.2
magnus
03-18-2007, 08:51 PM
I really want this to work on my board... I have installed (and deinstalled) every version of it since it showed up here hoping it would work...
Here is what happens:
It installs perfectly every time.
After I make a post with codes in it, you will no longer be able to access that post.
Internet Explorer 7 (which is what I use) gives (not vbulletin) the error that says it cannot display the page.
The error message shown shows the proper path etc to the posting. I have to uninstall the plugin and then go back and delete the post. You cannot edit the post while this error is occuring because it will not let you view the post.
Here are my versions:
Well, first things first. Let's see if this is an issue with the modification or Phoogle itself. Download the attached zip file and extract the files to the same directory. Edit the test.php file and add your Google API key. Then try and access the test.php file and see if your browser will display the map.
We'll go from there.
meissenation
03-19-2007, 10:54 AM
Have the same problem as Doctor Death. I posted a map and immediately Internet Explorer says it can't open the page now.
I tried viewing the same post in Default Style, and it displays the address but no actual map.
<script type="text/javascript">
function showmap127803()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map127803 = new GMap(document.getElementById("map127803"));
map127803.centerAndZoom(new GPoint(-83.204936, 42.537769), 6);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map127803.addControl(new GSmallMapControl());
map127803.addControl(new GMapTypeControl());
var point0127803 = new GPoint(-83.204936, 42.537769);
var marker0127803 = new GMarker(point0127803);
map127803.addOverlay(marker0127803)
GEvent.addListener(marker0127803, "click", function()
{
marker0127803.openInfoWindowHtml("<font face="Arial"><font size="2">33828 Woodward Avenue Birmingham MI 48009</font></font>");
}
);
//]]>
}
showmap127803();
</script>
meissenation
03-19-2007, 12:12 PM
Hinting off the previous posts I saw, I removed the map code from the first post and posted into the 2nd post. The mapcode disappeared and I get a blank space with no box or anything... atleast it's getting somewhere.
I noticed IE shows a "Done but with errors" message. Opening it up, it says the error is on line 1902. Opened the view source and 1902 is infact part of the showmap function.
<script type="text/javascript">
function showmap127819()
{
//<![CDATA[
if (GBrowserIsCompatible())
{
var map127819 = new GMap(document.getElementById("map127819"));
map127819.centerAndZoom(new GPoint(-83.204936, 42.537769), 6);
}
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
map127819.addControl(new GSmallMapControl());
map127819.addControl(new GMapTypeControl());
var point0127819 = new GPoint(-83.204936, 42.537769);
var marker0127819 = new GMarker(point0127819);
map127819.addOverlay(marker0127819)
GEvent.addListener(marker0127819, "click", function()
(THIS IS LINE 1902) {
marker0127819.openInfoWindowHtml("<font face="Arial"><font size="2">33828 Woodward Avenue Birmingham MI 48009</font></font>");
}
);
//]]>
}
showmap127819();
</script>
IE says line 1902, char 52, expected ')', code:0. Line 1902 is indicated in the code... hope this helps.
meissenation
03-19-2007, 12:27 PM
Alright, getting further... I don't know what changed, but I can view the thread in my normal customized template without any IE crashes. It loads the thread fully for me now, but still has the blank area.
I'm testing it on my live forum, with a nice "warning title" for the thread haha. Anyway here's the thread so you can see the page source:
http://www.mifbody.com/vbulletin/showthread.php?p=127819#post127819
Trying to use in IE7. Server's config: apache v1.3.33, PHP 4.4.4, MySQL 4.1.21-standard.
meissenation
03-19-2007, 12:32 PM
Sorry for the huge rounds of posting, just trying to help everyone out with the "troubleshooting" because this addon will be gold when it's finished.
Thinking it wouldn't cause the browser Operation Aborted error, I went to a different post and tried the map. It did the error like it did before and didn't want to load. I switched to my default style, and (DO NOT ASK ME HOW...) the map loads perfectly fine!!! Why it loads in one thread and not in the other (both in default style), no clue... will continue trouble shooting that.
Update: Went into the thread that I linked to in above post, I had a member say the browser did not crash, so I tested another map... the 2nd map displays perfectly fine (in default style) in post #4, but the map in post #2 does not load (blank space). I went to maps.google.com and put the same address as post #2's map has and it loads fine, so it's not an error with google map's not recognizing the address...
The address for both have commas ( , ) between the street address and the city, and then between the city and state. not sure if this makes a difference or not.
2nd Update: Figured "OK, there must be a difference somewhere that one would work and one wouldn't..." So I looked at the HTML source code. The 1st map that does not load, in the marker text, it puts
marker0127819.openInfoWindowHtml("<font face="Arial"><font size="2">33828 Woodward Avenue, Birmingham, MI 48009</font></font>");
For the second map, which does work:
marker0127832.openInfoWindowHtml("33828 Woodward Avenue, Birmingham, MI 48009");
That was the problem. I went into the 1st map's edit post, switched to code view, and sure enough there was the font BB code. So, it would be beneficial to have it strip BB code from the address, or else you'll have the blank area. Once I removed the font BB code between the it worked like a charm (in the Default style)
Update 3: Unfortunately, switching back to our customized style ... IE tries to load the page and then I get the message "Operation Aborted." I can't view the source code, can't do anything but hit "OK" and then it switches over to "The Page Can Not Be Displayed" so I can't troubleshoot it all that much. :( Maybe someone from here going to that thread within IE will see the same message?
magnus
03-19-2007, 01:33 PM
Using FireFox, I checked the link (http://www.mifbody.com/vbulletin/showthread.php?t=7876) and everything appeared fine. Using IE7, I received the same error you did -- which is strange, because using IE7 I can view my development forum just fine.
I'll see what I can track down.
Would you have a problem if I created an account on your forum and created a test thread?
meissenation
03-19-2007, 02:00 PM
Well, I continued troubleshooting the issue. The weird part is I get the error with the customized style, but not the default style. My first thought was that the biggest difference between my customized style and the default style was the header. So, I copied my header from the custom style and pasted it into my default style and TADA -- Operation Aborted error message!
I systematically went through and removed code by code to figure out what it was that caused the Operation Aborted error. It turns out, the conflict is an open-ended table in the header used for making a left column.
<!-- content table -->
$spacer_open
$_phpinclude_output
$welcomeheaders
<table border=0 cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width=100% valign="top">
<tr>
<td width="145">
</td>
<td>
This caused the error message. I simply ended the table with a </td></table> and TADA no error message. So, there's the culprit for ME atleast... if Doctor Death can chime in, maybe he has the same type of header with a left column code.
@ magnus -- Any ideas on what would cause that with an open ended table that encompasses everything between the header and footer?
meissenation
03-19-2007, 02:05 PM
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.
magnus
03-19-2007, 02:11 PM
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 (http://validator.w3.org/). 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:
# Error Line 450 column 7: end tag for "tr" omitted, but OMITTAG NO was specified.
</table>
Error Line 469 column 4: end tag for "td" omitted, but OMITTAG NO was specified.
</tr>
# Error Line 477 column 32: invalid comment declaration: found name character outside comment but inside comment declaration.
<!-- End of Ride of the Month --->
# 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:
Error Line 607 column 8: end tag for element "script" which is not open.
</script>
meissenation
03-19-2007, 02:45 PM
Hrm, I can't get line 607 to correlate to the </script> on my side.
magnus
03-19-2007, 02:49 PM
When validating your page, select the "Show Source" button. It will display your page source, with line numbers.
meissenation
03-19-2007, 03:01 PM
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.
meissenation
03-19-2007, 05:34 PM
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.
meissenation
03-19-2007, 09:01 PM
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
Tralala
03-19-2007, 10:06 PM
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.
meissenation
03-20-2007, 12:41 AM
From the sounds of it, seems like just need to clear cache.
meissenation
03-20-2007, 10:01 PM
At work clearing my cache didn't fix it, so I cleared my cache, browsing history, and cookies and THEN it worked again.
Doctor Death
03-22-2007, 12:11 PM
I cleared cookies, cache, etc with current version under IE 7 and still a no-go...
Same error message it received from day one...
Here is screen shot.
I am using custom templates and would be happy to let you examine the inner-workings of my board... let me know.
Doc
www.ddsog.com
meissenation
03-23-2007, 09:39 AM
That's the same exact thing I was getting. Did you have IE7 still open when you did this? I had to entirely close out of the browser completely, then go to my control panel and Internet Options to clear it out.
Doctor Death
03-23-2007, 01:42 PM
Did that and my users across the country all reported IE7 errors too.
Cleared all stuff before going back in.
Cyburbia
03-23-2007, 04:52 PM
Tried installing it, and it didn't work: bad database errors when I tried to view a thread. Re-installing didn't help. I just disabled the plugin, and there's no more database errors. However, I can't un-install the plugin!
Database error in vBulletin 3.6.5:
Invalid SQL:
ALTER TABLE `post` DROP `phoogle_html`;
MySQL Error : Can't DROP 'phoogle_html'; check that column/key exists
Error Number : 1091
Date : Friday, March 23rd 2007 @ 01:51:27 PM
Script : http://www.********/forums/admincp/plugin.php?do=productkill
Referrer : http://www.********/forums/admincp/plugin.php?do=productdelete&productid=phoogle&s=
IP Address : 76.***.***.***
Username : ***
Classname : vb_database
Cyburbia
03-24-2007, 10:32 PM
Bumping. Can anyone tell me how to uninstall this plugin? I can't do it through the control panel; I get the errors described above.
magnus
03-25-2007, 01:31 PM
You're receiving that error because either the phoogle_html column was never properly installed or it was removed prematurely. Either way, this is the cause for the error and quite likely the original errors you were receiving prior to the uninstallation.
That being said, to resolve this all you need to do is create the column manually then re-run the uninstallation.
ALTER TABLE `post` ADD `phoogle_html` mediumtext
tteal
03-25-2007, 03:32 PM
Not working with Firefox :-(
Atakan KOC
03-25-2007, 06:01 PM
Thanks........
Doctor Death
03-25-2007, 07:05 PM
This mod appears to be dead on its ass although it would have been THE mod to have had it not been so buggy.
Disappointing the author never came back.
/me clicks UNINSTALLED
Tralala
03-25-2007, 07:39 PM
FWIW, this works for my users in MSIE 7, Firefox 1 and 2, Safari, Camino, and any other desktop browser we've tried. It's a wonderfully useful mod! I have one remaining issue with mobile browsers only (specifically the Sidekick) but I'm confident it'll get sorted out.
Any initial problems I had were specific to one child-style of a custom skin I have. It worked fine in the vBulletin default skin from the start. It's important that readers know this, so they aren't scared off by these other disgruntled problem reports.
I think many of the folks having issues with this one have installed custom skins they're not able to troubleshoot, that's all. And lots of mods offered here on vB.org are only offered up to work with the default skin. If you have a custom skin, you have to be prepared for inconsistency... you have to be able to roll your sleeves up and figure some things out on your own... or work with the coders who are gracious enough to offer any personalized assistance. It comes with the territory.
magnus
03-25-2007, 09:22 PM
This mod appears to be dead on its ass although it would have been THE mod to have had it not been so buggy.
Disappointing the author never came back.
* Doctor Death clicks UNINSTALLED
Sorry that this free, unsupported, beta modification (and myself) couldn't live up to your high expectations.
I develop modifications to work on my forums -- and guess what? They do. When I release them here, I always release them as unsupported. However, when possible, I will try and address specific situations and concerns posted by users. I've been in contact with Tralala since the conception via private messages as well as public replies. Why him? Because he provides detailed, consistent information making my job of fixing things easier.
I'm sorry that this didn't work for you, but there are apparently at least 42 other people who seem to think it works well enough.
For the record, I've never came back simply because I've never been gone. There's a new release in the works that will address as many issues as I could fit in -- most of which were reported by Tralala via PM, whom I've been in constant contact with.
chuckrobbie
03-26-2007, 12:19 PM
Just a big open white space!
Like so many others have posted before me!!
Pity as it is a nice idea!
magnus
03-26-2007, 12:48 PM
Just a big open white space!
Like so many others have posted before me!!
Pity as it is a nice idea!
Well, that's not very helpful.
READ THIS (https://vborg.vbsupport.ru/showpost.php?p=1199648&postcount=2)
morrow
03-27-2007, 03:50 AM
Nice hack. Installed and working (IE7). A little quirky with the refresh's, but I can live with it. Thanks for your hard work, I look forward to see any additional features you decide to add.
Cyburbia
03-27-2007, 12:15 PM
ALTER TABLE `post` ADD `phoogle_html` mediumtext
Thanks! That worked well.
This looks like a great mod, especially for an urban planning site like mine, but I'm going to wait a bit before I try installing it again. I appreciate the work you've put into it.
Doctor Death
03-27-2007, 02:13 PM
Sorry that this free, unsupported, beta modification (and myself) couldn't live up to your high expectations.
I develop modifications to work on my forums -- and guess what? They do. When I release them here, I always release them as unsupported. However, when possible, I will try and address specific situations and concerns posted by users. I've been in contact with Tralala since the conception via private messages as well as public replies. Why him? Because he provides detailed, consistent information making my job of fixing things easier.
I'm sorry that this didn't work for you, but there are apparently at least 42 other people who seem to think it works well enough.
For the record, I've never came back simply because I've never been gone. There's a new release in the works that will address as many issues as I could fit in -- most of which were reported by Tralala via PM, whom I've been in constant contact with.
There is no one who wanted this mod to work more than me, and my comment above wasnt an indictment of you or your skills... sorry if you took it that way.
The preceeding conversations about WHY it was not working with IE7 showed that a group of users who also wanted this to work were frustrated that they also couldnt get what is otherwise a GREAT mod.
I encourage you to keep doing great things... dont take comments personally.... When it comes to IE7, this free mod is, indeed, dead on its ass. There is nothing unfactual about that and since it works on your board using your browsers, there is understandably no impetus to further develop it.
Will be the FIRST to donate when a working IE7 version hits the streets.
Regards
morrow
03-27-2007, 05:26 PM
It's working on IE7 on my site. No problems so far.
Tralala
03-28-2007, 01:02 AM
As mentioned before, it's working on IE7 on my site, too.
Doctor Death
03-28-2007, 01:16 AM
As mentioned before, it's working on IE7 on my site, too.
Be glad. Wonder why so many others are inop??
Tralala
03-28-2007, 01:36 AM
Be glad. Wonder why so many others are inop??
So many others? I see 48 installs... and only two folks complaining here about MSIE7 issues. Both of these two have custom skins installed.
Even still, those two have been publicly countered with reports of success by others. Yes, this hack is working for lots of people, in the vB and custom skins, in all the major browsers.
I'm sure you're frustrated by the incompatibility with your custom skin, but calling this entire project "dead on its ass" as a result is a bit tacky, and over-the-top, don't you think? There's an incompatibility with your custom skin; focus on that instead. Work politely with magnus, and perhaps he will help you with the specific incompatibility with your custom skin that is specific to your forum.
morrow
03-28-2007, 03:41 AM
He'll learn... I used to be the same way. Probably something to do with his host. I was using Powwebsux for a long time and would blame most of my issues on the mods I was installing. Then I changed hosts and voila'! All of my headaches seamed to have vanished.
Since you're getting a blank page, I am thinking the memory settings on your host are a bit too low. Why not report back what those memory settings are. Then, we might be able to provide you with something to bring back to your host to ask them to change. If you're paying 3bux a month for a host, that may not be an option.
magnus
03-28-2007, 11:19 AM
Be glad. Wonder why so many others are inop??
I sent you this (https://vborg.vbsupport.ru/showpost.php?p=1206841&postcount=94) reply 10 days ago.
For everyone else, I'm trying to squeeze out a new release this week. There's a bunch of new handling changes which sort of smooths things out a bit. I'm really jammed up with work right now, so I'm trying to do some juggling. I'll keep everyone updated.
Tralala
03-28-2007, 04:11 PM
I sent you this (https://vborg.vbsupport.ru/showpost.php?p=1206841&postcount=94) reply 10 days ago.
:eek:
-sigh-
Allow me to edit my comment above. Doctor Death, I'm sure you're frustrated by the incompatibility you're experiencing. But calling this entire project "dead on its ass" as a result -- while being uncooperative and unwilling to provide feedback to magnus after he delivered a specific test app for you to use in order to better assist with troubleshooting -- is incredibly innappropriate, over-the-top, and downright troll-ish.
For everyone else, I'm trying to squeeze out a new release this week. There's a bunch of new handling changes which sort of smooths things out a bit. I'm really jammed up with work right now, so I'm trying to do some juggling. I'll keep everyone updated.
Thank you, magnus. Take your time. Looking forward to the next release. :up:
ZomgStuff
03-29-2007, 09:35 PM
Nice1
bela-meaad
04-05-2007, 10:58 AM
whats New with this hack
Any Updates?
verbosity
04-05-2007, 08:32 PM
Great Mod! (just installed, works). Wish there was a way to easily get directions to or from the point that was listed on the map, and I apologize if this already works and I just didni't see it when I installed it.
sick ill be using this thanks for your hard work :D
magnus
04-09-2007, 04:32 PM
Update:
v2.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.
-
Better late than never. :)
This isn't the release I hoped to get out, but it's something. This should address the more major concerns I've received thus far. I'm still toiling away, and I'll get more out as soon as it's ready.
Remember, if you're having problems please read this post (https://vborg.vbsupport.ru/showpost.php?p=1199648&postcount=2) first!
Tralala
04-09-2007, 05:22 PM
Woo hoo! Thanks, magnus, was starting to wonder about this. :) Updating now.
EDIT: Minor issue. I was typing up a post to explain to my forum's members how to use this new feature. I typed
"Just put an address in between the tags..."
...and got an error that the address was invalid. The [map] tag isn't respecting the [noparse] tag, I'm thinking.
magnus
04-09-2007, 06:21 PM
Woo hoo! Thanks, magnus, was starting to wonder about this. :) Updating now.
EDIT: Minor issue. I was typing up a post to explain to my forum's members how to use this new feature. I typed
"Just put an address in between the tags..."
...and got an error that the address was invalid. The [map] tag isn't respecting the [noparse] tag, I'm thinking.
Hrm. That's going to be a wee bit tricky, too.. being as this isn't parsed like normal BBCode. Adding it to the list, let me see if I can find a quick workaround.
magnus
04-09-2007, 06:40 PM
Update:
v2.0 Beta 2
Plays nice with the tags. (thanks Tralala)
-
Remember, if you're having problems please read this post (https://vborg.vbsupport.ru/showpost.php?p=1199648&postcount=2) first!
Tralala
04-09-2007, 07:01 PM
Now that's what I call fast service. :) Much appreciated... eager to see what's up your sleeve for the next release.
Darat
04-12-2007, 08:28 AM
I seem to be having problems with UK addresses, is this a GoogleMap problem and the problem with UK licences rather then your add-on?
ETA: Rather rude of me not to have said thanks for the latest version that seems to be working well.
magnus
04-12-2007, 10:31 AM
Could you provide the address in question? I've tested in with various addresses in the UK and it seemed to work.
NuclioN
04-12-2007, 11:35 AM
-- edit -- never mind, solved problem :)
Darat
04-13-2007, 09:46 AM
Could you provide the address in question? I've tested in with various addresses in the UK and it seemed to work.
An example would be:
Cookham, Berkshire, United Kingdom
magnus
04-13-2007, 11:56 AM
That's an actual physical address? This plots addresses, not general city locations.
Darat
04-13-2007, 12:55 PM
That's an actual physical address? This plots addresses, not general city locations.
Well that is a general town location but it should be able to map a town shouldn't it?
Anyway here is a perfectly correct UK address:
146 Hope Street, Leigh, Greater Manchester, WN7 1NR, UK
(Try it in the web version of Goggle Maps to see where it should map to.)
If I use that address I get the attached map, which in fact I seem to get for most UK addresses I try.
Hi,
work this Mod with German Adresses ?
magnus
04-14-2007, 07:02 PM
Hi,
work this Mod with German Adresses ?
It should work with any address. It uses Yahoo to validate the address and Google to plot it. So, if you can put an address into Yahoo! Maps (http://maps.yahoo.com/) then it will work in Phoogle.
Hi, thx.
it works at 75 % :)
yahoo cannot find the streetnames :(
But the rest works.
Darat
04-15-2007, 07:01 PM
It should work with any address. It uses Yahoo to validate the address and Google to plot it. So, if you can put an address into Yahoo! Maps (http://maps.yahoo.com/) then it will work in Phoogle.
Ah this is probably the problem I'm seeing with UK addresses - it seems http://maps.yahoo.com can't locate UK street addresses, the best it can do is return the centre of a town. http://uk.local.yahoo.com/maps/ however does do UK address searching.
magnus
04-17-2007, 12:33 PM
For those keeping score at home, I've implemented the GoogleAPI for geocoding into the development version of Phoogle. Catch is, Google doesn't return errors for invalid addresses.
I'm probably going to allow the geocoding source to be defined by the user, so you'll have the choice between YahooAPI (with error reporting) and GoogleAPI (without error reporting). I'm trying to find a workaroung, so I'll keep everyone updated.
rjmjr69
04-19-2007, 07:30 AM
WOW is all I have to say. I love it Worked the first time I installed it without any issues at ALL.
Only one thing I notice which is really no big deal but my users must REFRESH the page before the map will appear again no big deal as they know about it but it would be cool for it to appear after posting after all isn't posting a refresh in a way?
As always Magnus your work is incredible. I'll send yet ANOTHER donation and another vote from me bro.......
Slave
04-25-2007, 10:06 AM
Could someone let me know the full URL to enable me to use this for UK addresses? Thanks
Tralala
04-25-2007, 02:42 PM
See a few posts above... since it currently uses the Yahoo Maps API, it doesn't work with UK street addresses.
Slave
04-25-2007, 03:01 PM
Yes, I saw that, but it seems like the poster had got it working and I wanted the full URL he used to get it to work.
Why even bother with the Yahoo side of things? Doesn't google cope with addresses? I thought it did.
Tralala
04-25-2007, 06:05 PM
Yes, I saw that, but it seems like the poster had got it working and I wanted the full URL he used to get it to work.
Why even bother with the Yahoo side of things? Doesn't google cope with addresses? I thought it did.
The reason for the Yahoo API reliance was timeline. Yahoo!'s Geocoding validator was available first. Now that Google has a comparable tool, magnus has said he'll try and use that instead, for consistency's sake.
And no, the poster didn't "get it working," he just confirmed that the address didn't validate in Yahoo maps directly either, which is why it Phoogle doesn't map it properly.
iogames
04-27-2007, 03:49 AM
BBCode and centered in the middle of the thread... ??? :(
Darat
04-30-2007, 09:12 AM
Yes, I saw that, but it seems like the poster had got it working and I wanted the full URL he used to get it to work.
Why even bother with the Yahoo side of things? Doesn't google cope with addresses? I thought it did.
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.
Slave
05-01-2007, 06:53 AM
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. :)
Doctor Death
05-05-2007, 06:58 PM
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.
magnus
05-06-2007, 02:22 PM
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 (http://validator.w3.org) to search for possible issues.
Doctor Death
05-07-2007, 01:04 AM
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.
apfparadise
05-14-2007, 01:29 PM
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 ?
bugriders
05-15-2007, 09:11 AM
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/documentation/#Geocoding_Examples
but no results:(
ManniC
05-15-2007, 12:35 PM
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?
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:
−
<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:
−
<kml>
−
<Response>
<name>Rhxaland 5 Bottrop</name>
−
<Status>
<code>602</code>
<request>geocode</request>
</Status>
</Response>
</kml>
Anybody an idea ???
Thx in advance
Blittz
05-19-2007, 03:08 PM
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.
Ability to pick Map/Satellite/Hybrid in the tag
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:
http://www.google.com/maps?q=&ie=UTF8&om=1&z=16&ll=46.202706,-119.225371&spn=0.009297,0.014784&t=hBut to use this hack, I have to use an address that google knows:
[map]600 S Columbia Center Blvd, Kennewick, WA 99336While its close, it would be cool to maybe have:
google_link_goes_here or something *shrug*
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!
truCido
05-21-2007, 10:50 AM
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 :)
Bletcham Way,Milton Keynes,Buckshire,MK78HP 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?
krela
05-30-2007, 06:52 PM
Is there any way this would work by putting in lat/long yourself and not relying on a geocoder at all?
i.e.
lat, long
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!
tei727
05-31-2007, 02:38 PM
i get the map just fine but at the end it say's titleCase then the city's name.
titleCase('TIMONIUM'
krela
06-05-2007, 07:27 AM
Is there any way this would work by putting in lat/long yourself and not relying on a geocoder at all?
i.e.
lat, long
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!
No matter, I've edited the mod so it works with zip, address or lat,long inputs :)
ThePiston
07-05-2007, 08:40 PM
is there a way to add maps for UK addresses?
nsusa
07-06-2007, 03:18 AM
How does this thing uninstall? I uninstalled it from the "Manage Products" area, but now it triggers a database error every time someone is trying to write a posting or is starting a new topic.
magnus
07-07-2007, 10:48 PM
There's no magic to uninstalling. I've installed/uninstalled dozens of times with no ill-effect. Without knowing the database error, there's not much that can be done.
Tralala
07-25-2007, 06:50 AM
Any updates to this, magnus? Curious to know if you're still working on it.
Digital Jedi
07-25-2007, 06:42 PM
I've went nuts trying to make BBC code that would do this a couple of months ago. I even asked at vB.com and they didn't know about this. This will really enhance the regional tournament section of our forums, as I usually just post links to all the map sites with the address inputted. This will simplify, and enhance things greatly. I've installed it on our demo forums. It seems to work perfectly, and with my [wrap] tags it looks sharp.
Thanks a bunch.
Cyburbia
07-28-2007, 06:31 AM
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/documentation/#Geocoding_Examples
but no results:(
Bumping. I'd also like to know if there's an alternative geocode API URL that isn't as finicky as the Yahoo URL. As in Google Maps, I'd like to be able to enter a city, state and zip code alone, or just a city and state/province alone.
EDIT: This doesn't seem to be working in Opera (9.10, Windows XP, Java and JavaScript enabled). I'm having the same problems others have reported with IE 7, too. It does work with K-Meleon, though.
This seems like a great mod, but i would really LOVE to just use lat and long!
cynthetiq
08-20-2007, 01:35 AM
Awesome. thank you works right off the shelf as advertised.
jwashburn
08-23-2007, 01:35 PM
I cant get it to work. I am using the default settings. I am trying to use the white house example and I get invalid address
Digital Jedi
08-23-2007, 04:22 PM
I cant get it to work. I am using the default settings. I am trying to use the white house example and I get invalid address
Clear the red coloring and bolded text from your address. I get the same error if I try to put in text with formatting applied. It's trying to parse the [b] and [color] codes as part of the address.
cynthetiq
08-25-2007, 05:38 PM
I'd like to try to get this to float the image via bbcode.
can anyone explain how I can make a map bbcode replacement like:
<div style="float: left">https://vborg.vbsupport.ru/</div>
pedrovazquez10
08-25-2007, 06:04 PM
Its posible to put the adress with coordinates or POIs?
dibbz
08-26-2007, 04:09 AM
Has anybody had any luck getting Australian addresses to work?
Digital Jedi
08-26-2007, 06:19 AM
I'd like to try to get this to float the image via bbcode.
can anyone explain how I can make a map bbcode replacement like:
<div style="float: left">https://vborg.vbsupport.ru/</div>
I did this on my forum by simply creating a stand-alone float BBCode in the Admin CP. Then I just wrap it around the the Map code when I go to post it. For example:
1600 Pennsylvania Avenue NW, Washington, DC 20500
Not as integrated as you may like, but the option is you can float either left or right.
cynthetiq
08-26-2007, 06:34 AM
thank you. I just wasn't sure if the wrap would still work and was too afraid (or lazy) to try.
thanks for your input.
Digital Jedi
08-26-2007, 08:20 AM
thank you. I just wasn't sure if the wrap would still work and was too afraid (or lazy) to try.
thanks for your input.
No problem. It works great, though I should point out, there's a slight issue when there's not a lot of text in the post. It will wrap the user's signature around the object as well. Not a problem when you have a lot of text in the post, or when you get a bunch of hard returns to post underneath. Or if you just turn you sig off for that post. Other then that, it has a very professional look.
cynthetiq
09-14-2007, 02:40 AM
anyone get the address inside the map cloud pointer to wrap? otherwise it's just long and goes outside the map window and you cannot read it all.
pheller
10-03-2007, 12:25 PM
Works well, however I'd like to do Multiline text in the balloon... possible?
Also, would it be possible to place an ordered list of the entries in a scrollable div layer within the same post, such that the entry could be clickable and cause the embedded map to show the entry's balloon?
pheller
10-05-2007, 08:32 PM
Also, what needs to be done to work in the [map] parsing within other places.... For instance, I have installed event forums, but the tag does not work in the post body there.
Also, I've adjusted the FAQ template to parse bbcode, but similarly, the map tag is not understood.
I gather that map must be handled outside bbcode....
AWJunkies
10-16-2007, 05:39 PM
Also, what needs to be done to work in the [map] parsing within other places.... For instance, I have installed event forums, but the tag does not work in the post body there.
Also, I've adjusted the FAQ template to parse bbcode, but similarly, the map tag is not understood.
I gather that map must be handled outside bbcode....
I havent tested the events part yet but that is a MUST for it to work. Also anyone getting freezing issues. Crashing of web browser in firefox when you move the map any direction?
AWJunkies
10-19-2007, 02:00 AM
It doesn't work in events mod and that is a must anyone help in this matter?
Crazy Serb
10-27-2007, 09:25 AM
Also, what needs to be done to work in the [map] parsing within other places.... For instance, I have installed event forums, but the tag does not work in the post body there.
Also, I've adjusted the FAQ template to parse bbcode, but similarly, the map tag is not understood.
I gather that map must be handled outside bbcode....
Yea, and that's the only reason why I'd need this mod in the first place... I guess I'll wait until someone figures out a way to make it work with VB Event Forums.
unitedbreaks
10-27-2007, 09:55 PM
Yea, and that's the only reason why I'd need this mod in the first place... I guess I'll wait until someone figures out a way to make it work with VB Event Forums.
It doesn't work in events mod and that is a must anyone help in this matter?
I havent tested the events part yet but that is a MUST for it to work. Also anyone getting freezing issues. Crashing of web browser in firefox when you move the map any direction?
Also, what needs to be done to work in the [map] parsing within other places.... For instance, I have installed event forums, but the tag does not work in the post body there.
Also, I've adjusted the FAQ template to parse bbcode, but similarly, the map tag is not understood.
I gather that map must be handled outside bbcode....
Ditto!! Would be sweet if someone can collab. this with Event Forums mod
laura66a
10-29-2007, 10:02 PM
This is a great utility, but it doesn't work in calendar or announcement entries. Can it be converted to regular BBCode so it will work in these areas?
Thanks.
rabidkevin
11-03-2007, 08:20 PM
This is a great utility, but it doesn't work in calendar or announcement entries. Can it be converted to regular BBCode so it will work in these areas?
Thanks.
Same here I mainly want to use it in calendar events
incisor
11-03-2007, 10:47 PM
try to install the product and it goes into lost in space mode, sits there for ages do nothing..
mykkal
12-06-2007, 08:07 AM
I'd love to have this. anyone using this in 3.6.8?
mykkal
12-06-2007, 08:08 AM
Is there a way to make it ignore this? User's won't know that.
It'll confuse the heck outta them.
Clear the red coloring and bolded text from your address. I get the same error if I try to put in text with formatting applied. It's trying to parse the [b] and [color] codes as part of the address.
mykkal
12-06-2007, 08:29 AM
Has anyone made and google buttons for this that can be highlighted insted of typed. We want to keep this simple for users.
nice mod. Still a bit immature tho. Also noticed the address doesn't show in the bubble. Any way to fix that?
This is great! Thanks! Just added it to day!
Darrin
len backus
12-07-2007, 02:03 PM
I'd love to see this in action on a website. Is it allowed for posters to reply with their website for me to look at?
ZippySLC
12-08-2007, 12:55 PM
I just installed this on my forums (vB 3.6.8 PL2). Works perfect for me.
Len, here's the instructional thread (http://forums.njpinebarrens.com/showthread.php?p=42319) I wrote for my users. Note that I am using lat/long instead of street addresses since that's more what we're into on my site.
len backus
12-08-2007, 01:13 PM
Zippy, thanks. I have a hunting forum and we have a sub-forum where members have posted text descriptions of shooting range locations. I think this would work well to add maps.
FleaBag
12-23-2007, 11:40 PM
You're receiving that error because either the phoogle_html column was never properly installed or it was removed prematurely. Either way, this is the cause for the error and quite likely the original errors you were receiving prior to the uninstallation.
That being said, to resolve this all you need to do is create the column manually then re-run the uninstallation.
ALTER TABLE `post` ADD `phoogle_html` mediumtext
Thanks for this, helped me out. :)
laura66a
12-28-2007, 12:38 PM
Hello.
Is there a way I can install a second instance of Phoogle to create a different [map] command that uses a different size map window?
Thanks
westcan
12-31-2007, 05:51 AM
Does anyone know if this program is capable of mapping GPS coordinates (as opposed to an address)?
Our site users are looking for a way to post their GPS coordinates from hiking trips, etc. and have them mapped.
Any suggestions would be appreciated.
Thanks
AWJunkies
01-11-2008, 04:32 AM
This is a mod that needs to be developed more. I will look into it in next few weeks.
mykkal
01-11-2008, 04:42 AM
YES!!!!!!!!
This is a mod that needs to be developed more. I will look into it in next few weeks.
joerns
01-27-2008, 05:27 PM
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.
Leo Brazil
03-01-2008, 01:14 PM
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.
buro9
04-07-2008, 03:23 PM
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.
joerns
04-18-2008, 01:40 PM
Hi - great hack! It worked fine until a few days ago. Maps are not displayed anymore. Any ideas how to start troubleshooting?
SuperNissans
04-23-2008, 06:12 PM
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?
dennisuello
04-23-2008, 09:22 PM
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.
1600 Pennsylvania Avenue NW, Washington, DC 20500
1. Invalid address: 1600 Pennsylvania Avenue NW, Washington, DC 20500
Digital Jedi
04-24-2008, 03:58 AM
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.
Cyburbia
05-14-2008, 12:24 AM
I can't uninstall this. Here's the error message I get:
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?
ThePiston
05-16-2008, 01:51 AM
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:{
2151 var map5 = new GMap(document.getElementById("map5"));
2152 map5.centerAndZoom(new GPoint(, ), 6);
2153 }
2180: {
2178 var map114 = new GMap(document.getElementById("map114"));
2179 map114.centerAndZoom(new GPoint(, ), 6);
2180 }
madkeen
06-10-2008, 02:10 AM
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?
PGAmerica
06-13-2008, 08:20 PM
OK, I installed this and I configured it. I do not see anything different in the forums. What am I supposed to see? I went through the UserCP, the posting screens. I see nothing new.
Digital Jedi
06-21-2008, 12:21 AM
It doesn't add anything new. It adds the ability to parse address into a Google Map using BBCode.
captbunzo
07-08-2008, 05:27 PM
Hey folks.... I found this lovely add-on today. As others, I got the "Invalid Address" error as Yahoo is now requiring keys similar to google. So, in a fit of coding fury, I hacked up the code....switching the yahoo geocoding functionality over to google.
This is now working for me. I cannot guarantee it will work for you.
I am happy to work with the original author as well to get this "officially" posted here so that it will show up as updatable, etc, in vbulletin.
Enjoy!
ThePiston
07-08-2008, 06:02 PM
how would we go about 'fixing' our install with that file?
captbunzo
07-08-2008, 07:05 PM
how would we go about 'fixing' our install with that file?
Download my XML file to your computer.
Login to the vBulletin admin interface.
Go to Plugins & Products > Manage Products.
Click [Add/Import Product] at the bottom of the list of installed products.
Click browse, select my XML file that you downloaded to your computer.
Choose Yes for the option Allow Overwrite.
Hit Import.
Go to vBulletin Options > Phoogle Settings.
Replace the Geocode API URL with this value: http://maps.google.com/maps/geo?output=xml
Hit Save.Go to a post now and try to create some map BBCODE (as described above). When you preview / submit your post you should not see a map....
SVTCobraLTD
07-09-2008, 02:48 PM
I am interested in using this but is the only map that will be displayed from the API code? Or can anyone use this feature?
Digital Jedi
07-10-2008, 01:30 PM
I am interested in using this but is the only map that will be displayed from the API code? Or can anyone use this feature?
I'm not sure what you mean. The API is just what was used to develop this mod. The mod itself adds new BBCode to your forum called [map]. So as long as all your users can use BBCode, then yes, everyone can use it.
stwilson
07-19-2008, 02:36 AM
Wow. This MOD looks great but not 3.7.2! :( Any chance of getting this updated and support for lat/long?
WildSoftCat
09-13-2008, 01:21 PM
Hey folks.... I found this lovely add-on today. As others, I got the "Invalid Address" error as Yahoo is now requiring keys similar to google. So, in a fit of coding fury, I hacked up the code....switching the yahoo geocoding functionality over to google.
This is now working for me. I cannot guarantee it will work for you.
I am happy to work with the original author as well to get this "officially" posted here so that it will show up as updatable, etc, in vbulletin.
Enjoy!
It works fine 3.7.2 !:up:
Maybe author would add "nl", "oe" and "ie" parms to map url (look here http://code.google.com/apis/maps/faq.html#languagesupport? ) :p
jim6763nva
09-14-2008, 01:26 PM
Can't get it to work in vb 3.7.3 PL1 either. Keep getting the dreaded "invalid address" error. :(
behcet
09-20-2008, 01:15 PM
yes ,
invalid address
lionslair
10-01-2008, 09:17 AM
Does this only work for addresses in use?
segwayon
10-18-2008, 07:31 PM
Can't get it to work in vb 3.7.3 PL1 either. Keep getting the dreaded "invalid address" error. :(
Look at captbunzo's posts #223 and #225.
TalkVirginia
10-18-2008, 10:42 PM
Look at captbunzo's posts #223 and #225.
Awesome! Thank you so much - it's working now. Any ideas how I can add this to a button in the editor?
Alfa1
10-19-2008, 01:01 AM
Cool that works! Thanks captbunzo!
mycitylive
10-28-2008, 06:41 AM
Can one help me, I always get this error
Invalid address:
Thank you ever been to advance
mycitylive
10-28-2008, 10:47 AM
Can't get it to work in vb 3.7.3 PL1 either. Keep getting the dreaded "invalid address" error.
Please HELP ME
Digital Jedi
11-03-2008, 12:13 AM
Can one help me, I always get this error
Invalid address:
Thank you ever been to advance
Can't get it to work in vb 3.7.3 PL1 either. Keep getting the dreaded "invalid address" error.
Please HELP ME
It was BETA when made for 3.6.5, not to mention, Google did a few changes to their API since then. Unless the author decides if wants to pick this up again, there's no real way to fix this.
mycitylive
11-03-2008, 04:47 AM
There is an alternative to the
Sonyuserforum
11-19-2008, 11:44 AM
I can't uninstall this. Here's the error message I get:
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?
Same problem, I can?t uninstall this hack. Why? Any suggestions?
OrionDesigns
11-22-2008, 04:12 PM
Download my XML file to your computer.
Login to the vBulletin admin interface.
Go to Plugins & Products > Manage Products.
Click [Add/Import Product] at the bottom of the list of installed products.
Click browse, select my XML file that you downloaded to your computer.
Choose Yes for the option Allow Overwrite.
Hit Import.
Go to vBulletin Options > Phoogle Settings.
Replace the Geocode API URL with this value: http://maps.google.com/maps/geo?output=xml
Hit Save.Go to a post now and try to create some map BBCODE (as described above). When you preview / submit your post you should not see a map....
Thank you very much, worked for me.
insaatforumu
03-15-2009, 04:53 PM
i installed this mod before and i see the code exp.
41.021002, 29.004142
but now i cant see the code location. it doesnot work.
Why?
rdbrown
03-21-2009, 11:50 PM
A Couple of Problems I noticed with the product-phoogle2.1alpha1.xml.
1. It doesn't allow a preview of the map before posting.
2. The bbcode Code function doesn't recognize the map bbcode once posted. I tried posting instructions on how to use phoogle on my forum and placed the map bbcode into code brackets so they could see how to use it. It shows up fine in preview, but everything between the map brackets disappears once it is posted.
If someone could figure out how to make the the hybrid view the default view it would be great.
coffee_bean
04-03-2009, 07:52 PM
Download my XML file to your computer.
Login to the vBulletin admin interface.
Go to Plugins & Products > Manage Products.
Click [Add/Import Product] at the bottom of the list of installed products.
Click browse, select my XML file that you downloaded to your computer.
Choose Yes for the option Allow Overwrite.
Hit Import.
Go to vBulletin Options > Phoogle Settings.
Replace the Geocode API URL with this value: http://maps.google.com/maps/geo?output=xml
Hit Save.Go to a post now and try to create some map BBCODE (as described above). When you preview / submit your post you should not see a map....
Thanks for your help! That worked for me!
finzer
06-30-2009, 07:21 AM
Damn doesnt work with 3.7.x :/ Invalid address ...
Uberguilds
06-07-2011, 11:26 PM
It would be HIGHLY convenient if I could use this outside of the post in showthread in a right sidebar.
My only question would be, how to call this in the template. I have a static map currently but the whole geoID stuff is getting me since all the locations aren't the same.
hodgy
01-02-2012, 04:59 PM
Anyone figure out how to use this with GPS coordinates?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.