vb.org Archive

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

magnus 03-11-2007 02:43 PM

Quote:

Originally Posted by Tralala (Post 1200594)
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

Quote:

Originally Posted by magnus (Post 1200839)
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

Quote:

Originally Posted by magnus (Post 1201031)
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... 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

Quote:

Originally Posted by Tralala (Post 1201071)
The only thing that comes to mind is the AnyMedia Code... 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

Quote:

Originally Posted by magnus (Post 1201485)
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

Quote:

Originally Posted by Tralala (Post 1200594)
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

Quote:

Originally Posted by bela-meaad (Post 1200679)
why can`t we use
latitude & longitude
as Value?

isn`t good idea?

Thanks

again

magnus 03-13-2007 11:39 AM

Quote:

Originally Posted by Tralala (Post 1201623)

Hrm. I'm using PHP5. I wonder..

I'm going to try downgrading.

magnus 03-13-2007 11:41 AM

Quote:

Originally Posted by Tralala (Post 1201625)
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

Quote:

Originally Posted by Darat (Post 1201492)
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

Quote:

Originally Posted by magnus (Post 1202444)
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

Quote:

Originally Posted by ThePiston (Post 1202614)
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 [map][/map] tags per post work. The new format is:

Code:

[map=Point 1;Point 2]Address 1;Address 2[/map]
Not sure how friendly that is.. so, unless someone has a better idea? :P

ThePiston 03-13-2007 05:21 PM

Quote:

Originally Posted by Tralala (Post 1202632)
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()

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

magnus 03-13-2007 07:29 PM

Quote:

Originally Posted by bela-meaad (Post 1200679)
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 [noparse][/noparse] BBCode. Simply encase the example within those tags.

Example:
  • [noparse][b]This is bold[/b][/noparse]
Code:

[b]This is bold[/b]

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

Quote:

Originally Posted by ThePiston (Post 1202771)
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
HTML Code:

marker{$g}{$post['postid']}.openInfoWindowHtml("$validPoints[$g]['passedAddress']}");
REPLACE WITH
HTML Code:

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
[map]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]

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

Quote:

Originally Posted by ThePiston (Post 1202794)
where do i find "phoogle_mapcodebits template" ?

AdminCP > Style Manager > [Your Style] > Phoogle Templates

magnus 03-13-2007 08:36 PM

Quote:

Originally Posted by bashy (Post 1202792)
Now theres no blank map but it shows
[map]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map]

Need this information

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:

PHP Code:

Parse errorparse errorunexpected '&'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:

Quote:

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:
PHP Code:

foreach ($locations as &$location

REPLACE:
PHP Code:

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 [map=Point 1;Point 2]Address 1;Address 2[/map] 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

Quote:

Originally Posted by Tralala (Post 1202853)
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 [map=Point 1;Point 2]Address 1;Address 2[/map] syntax and that worked fine as well. :up:

Great, glad to hear it. :)

Quote:

Originally Posted by Tralala
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..


Quote:

Originally Posted by Tralala
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 [map][/map] 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

Quote:

Originally Posted by magnus (Post 1202875)
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

Quote:

Originally Posted by chadi (Post 1203023)
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 [map]1600 Pennsylvania Avenue NW, Washington, DC 20500[/map] 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

Quote:

Originally Posted by Tralala (Post 1202998)
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


All times are GMT. The time now is 06:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02170 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete