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)
-   -   Major Additions - VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=123148)

jim6763nva 06-07-2008 08:09 PM

I installed this on vb3.7.1. It works with exception to the field for the url to the marker image. Not sure why you are leaving this up to the user to fill in when they wouldn't have a clue as to what to put in there. I went ahead and filled in what I "thought" should go in there for my entry. Everything seems to save successfully however when I go back to look at the map, no markers show up.

I noticed there was a manual patch indicated several posts back for preventing members from putting in the wrong value (I'm guessing for this marker image url). I made the changes to both files and uploaded the files to my server. I can't tell if it protects the XML file though.

Any thoughts?

edward hamilton 06-10-2008 08:34 PM

After editing vbgooglemapme_cron.php on line 43

Quote:

if ($get_xml_marker["pimage"]!='')
{
$pimage = $get_xml_marker["pimage"];

}
else
{
$pimage = $bburl."/images/googlemapme/noimage.png";

}
to simply

Quote:

$pimage = $bburl."/images/googlemapme/noimage.png";
I was able to eliminate any errors in the markers.xml file
but the only way I can get the markers to appear is to click on [Your Entry] and then Update your information on the bottom of the vbgooglemapme.php page.

Once I update my information, without changing anything, it's fine until the next time the cron runs.
Any ideas?

Boofo 06-10-2008 08:54 PM

You need to not allow images and take the pimage line out of the template so they can't upload images.

RedGTiVR6 06-10-2008 10:07 PM

I see the mention about running the scheduled task...thing is, i don't have a scheduled task for this...

I'm guessing that's a problem.

can someone tell me what it should be called? or what I need to do to set it up?

I should also note that I've tried the modifications mentioned by ZeroHour here: https://vborg.vbsupport.ru/showpost....&postcount=697

But when I apply those mods then try and view the page, it's blank.

ANY help anyone could provide would be appreciated!

edward hamilton 06-11-2008 01:23 AM

I finally, after almost a year, disabled the cron job and my map is working fine. I autoapprove the locations, but you have to be a member to plot your location.
Member maps at the Ministry of Rum

Here's an excerpt of my markers.xml file
PHP Code:

<markers>
<
marker mapid="94"  title_map="fon_eti_que" lng="28.1105327606" lat="43.3604081168" userid="2061" username="fon_eti_que" text_map="fon_eti_que" type="darkred" pimage="http://ministryofrum.com/forums/images/googlemapme/noimage.png" />
<
marker mapid="96"  title_map="BlueHeronBrands" lng="-78.2262659073" lat="45.7243767341" userid="2154" username="Moose" text_map="BlueHeronBrands" type="darkred" pimage="http://ministryofrum.com/forums/images/googlemapme/noimage.png" />
<
marker mapid="97"  title_map="Joe's place" lng="-88.45644334" lat="47.9970626797" userid="2218" username="Joe\'s place" text_map="Joe\'s place" type="darkred" pimage="http://ministryofrum.com/forums/images/googlemapme/noimage.png" />

</
markers

Hope this helps someone.

Boofo 06-11-2008 01:40 AM

What does the cron job do? I've never looked.

RedGTiVR6 06-11-2008 06:12 PM

AH HA!

The issue is the ability for users to add in their own image.

I deleted these links and voila! the markers showed up!

To prevent any users from entering this and screwing up the map again, I did the following:

in template: vbgooglemapme_display_yourlocation and vbgooglemapme_set_yourlocation

find and delete:

Code:

<td class="alt2" align="left" valign="top">$vbphrase[vbgooglemapme_imgurl]</td>

<td class="alt1" align="left"><input name="pimage" size="20" value="$pimage" style="padding-left:5px; font-weight:normal; width:200px;"></td>

This completely removes the text and the box from showing on the pages which will prevent ANY user from entering that information, which would subsequently cause the plug-in to crash.

I hope this helps some others!

All I did to figure this out was to search the phrases for for the text that was shown there to find out how it was called, then I just searched all the templates for that call.

diablo76 06-12-2008 07:53 PM

Does anyone know if there will be an update soon? I'm waiting about six month now because I thought there might be a new release soon.

Boofo 06-12-2008 08:14 PM

It doesn't look like this is being supported anymore so you are on your own as are the rest of us, it seems. I am in the process of writing my own version since this one is no longer being supported. I will let you know when I have something to test.

RedGTiVR6 06-12-2008 08:36 PM

btw - there are a number of fixes posted within the thread that should make it work for just about anyone


All times are GMT. The time now is 11:21 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.02115 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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