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)

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 02:25 AM.

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.01194 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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