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)

bplinson 09-11-2007 11:46 AM

This is strange. I have the can't see the markers problem also when I go to YOUR ENTRY I can see my marker.

I sure hope someone finds a fix for this soon.

citroenar 09-11-2007 11:48 AM

Quote:

Originally Posted by Jayphen (Post 1052824)
I want to make it so that only admins and registered users show in the legend, as all other groups cannot view the map.

I want to remove some usergroups from the list in legend too.any help?

bplinson 09-11-2007 11:55 AM

Go to Vbgooglemap ME in your admin control panel

Click on "ME Usergroup marker"

For the usergroups that you do not want to show click on "Edit this usergroup"

Set "Show usergroup on legend" to NO and click UPDATE

citroenar 09-11-2007 03:04 PM

Yes, how could I miss that?
Thanks!

Kenneth89 09-12-2007 10:04 AM

Quote:

Originally Posted by stonyarc (Post 1322975)
Have you followed the instructions to the letter?

is the marker.xml set to 777 chmod?

What is the exact error you get?

Yes i have Set this on 777

See on: http://www.welsportal.com/vbgooglemapme.php

A printscreen:

Ronseal 09-12-2007 03:24 PM

Quote:

Originally Posted by msudawgs64 (Post 1334626)
forgive me if this has been asked and if so just point me to the post itself but why would the pins just stop showing up? I installed this early this week and for pretty much the entire week they were there, members were adding their info and it was giving the correct pin color based on user group so I know I installed it correctly, but when I look today, no pins but the users are all still there. Any help or insight would be appreciated.

I'm in the same position....
I've had the map installed for a week and all was fine in testing, so I released it to the forum today and after only 35 entry's the markers have disappeared on the main map view. Usually I'd just uninstall a mod that doesn't work and look for an alternative, but unfortunately I've paid StonyArc 30 EUR for a branded free version, which I was happy to do untill now! :mad:

I'm sure we would all like a little support on this marker issue as it's a show stopper for me and I've had to take the Map offline to prevent my board from sending me complaint emails.

towermatt 09-12-2007 05:26 PM

have you guys tried running the markers.xml to make sure no one has entered a link that doesn't work?

It should show errors in there.

I am assuming you have but I figured I would throw this out here.

hopefully it isn't a "senseless post"

Julrou 09-12-2007 06:30 PM

Quote:

Originally Posted by towermatt (Post 1337753)
have you guys tried running the markers.xml to make sure no one has entered a link that doesn't work?

It should show errors in there.

I am assuming you have but I figured I would throw this out here.

hopefully it isn't a "senseless post"

Indeed, it isn't a senseless post, cos i've not tried running the markers.xml...

I don't know how to do this ? :confused:


How do we see if there are errors in it ?

yoyoyoyo 09-12-2007 07:17 PM

Is there a way to add a variable for when the user has added themselves to the googlemap? I tried adding the $post[findme] in the dhtml member menu in postbit with this code:
Quote:

<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option">$post[findme]</td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
however if they have not added themselves to the googlemap then the table row just shows a blank selection - I want the <tr> to only be parsed if the user has added themselves to the googlemap - is there an available conditional in this hack? Any help is appreciated.

http://img339.imageshack.us/img339/4708/dhtmlcx2.jpg

towermatt 09-12-2007 07:44 PM

Quote:

Originally Posted by Julrou (Post 1337799)
Indeed, it isn't a senseless post, cos i've not tried running the markers.xml...

I don't know how to do this ? :confused:


How do we see if there are errors in it ?

All you have to do is browse out to http://www.yoursite.com/forums/markers.xml

It is a file that came with the download for this mod and it should show any errors for links in read. Edit that entry on your map and it may bring the markers back.

Ronseal 09-12-2007 09:18 PM

Thanks Towermatt for trying to help, but running the markers.xml just brings up my portal page which currently has no link to my map install so I don't see why the markers.xml is of any use here?

towermatt 09-12-2007 09:25 PM

Hmmm, that may be the problem then. Have you checked your server to make sure the markers.xml is in the forums folder?

It really should bring up a page that shows the "entries" on your map

Ronseal 09-12-2007 09:43 PM

Sorry Towermatt, I typed 'forums' instead of 'forum' whilst testing your last instruction.

Right then you're onto something now, I have an error on one of the entry's, it reads:

A semi colon character was expected. Error processing resource 'http://www.ducatisti.co.uk/forum/markers.xml'. Line 29, Po...

And I think I can see what's wrong if I read the markers.xml file....

This is the line with the error:
Quote:

<marker mapid="29" title_map="Fred" lng="-3.5971641540527" lat="50.550280590038" userid="1245" username="Fred" text_map="blah blah blah" type="red" pimage="http://www.mysite.com/forum/vbgooglemapme.php?lat=50.55028059003783&lng=-3.5971641540527343" />
This is the next line and it works:
Quote:

<marker mapid="30" title_map="bob" lng="-2.7019500732422" lat="52.040454864151" userid="2690" username="Fred" text_map="blah blah blah" type="red" pimage="http://www.mysite.com/forum/images/googlemapme/noimage.png" />
For some reason Line 29 has appended the lat and lng to the end of the pimage, not sure why, but I've corrected the line and all works perfect again and my Markers are back on display....... Towermatt, you're a Super Star, thanks a million!

Ronseal 09-12-2007 10:16 PM

Just to add to the above obviously just editting the markers.xml isn't going to fix much so I had to correct the error on line 29 within the database, it all seems to work now..... well at least for the moment!....

towermatt 09-12-2007 11:14 PM

I'm just glad to hear we got someone going. :nanadance:

I may have to come back and find out about that database fix if mine poops out again.

How did you correct the error?

GeekDrew 09-13-2007 02:05 AM

I just installed this a couple of days ago, and the first couple of users that tried to use it (other admins of mine, as I like to do extensive testing) managed to break the pins, because of the XML validation error that others have referenced as "running the XML file".

The cause of the problem is that the pimage link isn't being parsed safely for XML.

Here's a fix that I think will work (at least it works for me -- I do NOT guarantee this, if it causes spontaneous combustion, fire, death, etc., I'm not to blame):

*** I JUST SAID THAT I DO NOT GUARANTEE THIS WILL WORK. I DISCLAIM ALL LIABILITY. YOU MUST BACK UP YOUR DATABASE AND ALL OF THE FILES RELATED TO THIS MODIFICATION, SO THAT YOU CAN RESTORE THEM IF NECESSARY. ***

In /forums/includes/cron/vbgooglemapme_cron.php:

Find:
Quote:

while ($get_xml_marker = $vbulletin->db->fetch_array($get_xml_markers))
Immediately ABOVE the text I have quoted, place the following text:

Quote:

This quote has been removed because I failed to consider HTML rendering. See the text here, so that it is properly parsed: link
In the same file, find this:

Quote:

if ($get_xml_marker["pimage"]!='')
{
$pimage = $get_xml_marker["pimage"];
}
else
{
$pimage = $bburl."/images/googlemapme/noimage.png";
}
Immediately BELOW the text that I have quoted, place this:

Quote:

$pimage = parseToXML($pimage);
That should render all entities in the 'pimage' field safe for XML, so it will validate. However, that script is only called when the CRON job is executed... when someone edits their entry online, a different copy of that same script is called (which is really bad form, in my opinion, but hey, I didn't develop this...). That second copy is located at /forums/includes/functions_vbgooglemapme.php. You need to make the exact same changes in that file as I have mentioned above.

Now... I am not claiming that this will solve everyone's issues. It more than likely will not. It will, however, fix problems with 'pimage' being the reason that the XML won't validate. I think that this will probably fix the problems that quite a few of you are happening.

msudawgs64 09-13-2007 06:13 AM

ronseal, awesome find. Thanks for that post, I followed your posts and sure enough I had the same thing going on. I was able to edit both the xml file and then edited that entry in the database and now the pins show again. Thanks, I like the map and really did not want to uninstall it.

Ronseal 09-13-2007 08:35 AM

msudawgs64, It's not all good news I'm afriad!!!!
Although my old pins show any new pins added/edited are not showing even after I run the cron job. So maybe it's time to try GeekDrew's '$pimage = parseToXML($pimage);' fix?

Julrou 09-13-2007 09:04 AM

Quote:

Originally Posted by towermatt (Post 1337837)
All you have to do is browse out to http://www.yoursite.com/forums/markers.xml

It is a file that came with the download for this mod and it should show any errors for links in read. Edit that entry on your map and it may bring the markers back.


Hum, when i go to http://www.informatiquefacile.eu/forums/markers.xml

i got a blank page... :confused:
Did i miss something ?

Ronseal 09-13-2007 09:05 AM

Just got the following error with your fix Geekdrew, any ideas?

Quote:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/my_site/public_html/forum/includes/cron/vbgooglemapme_cron.php on line 39
and line 39 was one of your additions: $xmlStr=str_replace("&",'&amp;',$xmlStr);

msudawgs64 09-13-2007 10:49 PM

Quote:

Originally Posted by Ronseal (Post 1338174)
msudawgs64, It's not all good news I'm afriad!!!!
Although my old pins show any new pins added/edited are not showing even after I run the cron job. So maybe it's time to try GeekDrew's '$pimage = parseToXML($pimage);' fix?

well that stinks.. so far I have had two members add to it and they are showing up but I will keep an eye on it.

GeekDrew 09-14-2007 03:30 AM

Quote:

Originally Posted by Ronseal (Post 1338186)
Just got the following error with your fix Geekdrew, any ideas?



and line 39 was one of your additions: $xmlStr=str_replace("&",'&amp;',$xmlStr);

Oops. I didn't take into consideration how the browser would render my post. See the above quote that I changed -- right now the code is linked to a text file, cause I'm not sure how to post it here and have it render properly.

mdcdeve 09-14-2007 10:45 PM

Hi, tried this when it was first released and i couldn't get it to work. Tried it just now and the same problem, everything seems ok but the map won't show, anyone know why or how to fix this?

towermatt 09-15-2007 12:44 AM

Quote:

Originally Posted by Julrou (Post 1338185)
Hum, when i go to http://www.informatiquefacile.eu/forums/markers.xml

i got a blank page... :confused:
Did i miss something ?

I would make sure that file is added to your forums folder. It should be a simple file that shows the markers in code. A broken link will show in red.

edit--looks like its there to me, but no broken ones.

n1troboy 09-15-2007 01:01 AM

Great mod got mine up and running last night and had about 16 members add points. Now this morning all the points are gone? They are showing in the user points but not on the map - any ideas? Sorry if this has already been posted but none of my searches brought up any results

this is the error that occurs on the client browser

Line: 956
Char: 4
Error: 'documentElement' is null or not an object
Code: 0


Cheers

AM

http://www.archeli.com.au/cobra/vbgooglemapme.php

Julrou 09-15-2007 10:20 AM

Quote:

Originally Posted by towermatt (Post 1339254)
I would make sure that file is added to your forums folder. It should be a simple file that shows the markers in code. A broken link will show in red.

edit--looks like its there to me, but no broken ones.



OK.

And have u got an other idea ?

:confused:

:)

chriszep 09-15-2007 10:39 AM

hello since i am to vb3.68 the product does not appear in my admin
i reuploaded the product , same problem and nobody has the permission to see the map

n1troboy 09-15-2007 01:19 PM

Great idea - just grabbed mine and found a parse error in the xml data - will continue to investigate - hopefully it will just come down to dud point data

cheers for the idea :)

Quote:

Originally Posted by towermatt (Post 1337837)
All you have to do is browse out to http://www.yoursite.com/forums/markers.xml

It is a file that came with the download for this mod and it should show any errors for links in read. Edit that entry on your map and it may bring the markers back.


n1troboy 09-15-2007 01:25 PM

okay - that was it - dud map data

just hit your markers.xml and look for parse errors mine was this line

still trying to work out the error

looks like there needs to be some stricter input validation done on the map points

<marker mapid="27" title_map="Heliguychris`s flying site." lng="115.964384079" lat="-32.1490191355" userid="31186" username="heliguychris" text_map="Foothills Flyers site." type="green" pimage="http://www.archeli.com.au/cobra/image.php?u=31186&dateline=1189811145" />

dougeetx 09-15-2007 04:44 PM

Database error in vBulletin 3.6.8:

Invalid SQL:
SET NAMES 'utf8';

MySQL Error : Unknown system variable 'NAMES'
Error Number : 1193

Can anyone shed some light on this error?

Ronseal 09-16-2007 09:08 AM

Quote:

Originally Posted by GeekDrew (Post 1338721)
Oops. I didn't take into consideration how the browser would render my post. See the above quote that I changed -- right now the code is linked to a text file, cause I'm not sure how to post it here and have it render properly.

Hi GeekDrew, Can you take a screen shot of your 'vbgooglemapme_cron.php' code fix and upload this image as an attachment? Your suggestion promises the nearest thing to a fix I've read so far, so I'd like to follow your suggestion. I assume your map is still working correctly?

Thanks again.
Ronseal

Ronseal 09-16-2007 09:47 AM

This Mod is really getting me down now..... there's so much potential but it simply doesn't work for me! :mad:

I have over 45 members listed in the 'googlemapme' table within the database but only 35 are showing on my map, thus the Mod is turned off on my site. For anybody thinking of paying StonyArc 30 EUR for a branded free version of this software please don't as VBGoogleMap appears to be a broken Mod for which StonyArc provides zero support to fix it.

S@NL - BlackBik 09-16-2007 10:38 AM

Hi guys,

About the markers. Had the same problem, they didn't show.
They all came back after I went to the admin panel and designated other marker colors to the usergroups in "ME Usergroup marker" in the admin panel. After running the googlemap cron, all markers showed again. :)

Hope this will help.

GeekDrew 09-16-2007 11:53 PM

Quote:

Originally Posted by Ronseal (Post 1340005)
Hi GeekDrew, Can you take a screen shot of your 'vbgooglemapme_cron.php' code fix and upload this image as an attachment? Your suggestion promises the nearest thing to a fix I've read so far, so I'd like to follow your suggestion. I assume your map is still working correctly?

Thanks again.
Ronseal

Yes, my map is working correctly. I don't have the files with me at the moment -- just follow the original instructions that I posted -- I made the changes to my original post, and the linked code will display properly, so you can cut and paste it.

Ronseal 09-17-2007 08:04 AM

Thanks GeekDrew, but I've made the above changes but still no luck.
Just noticed another thing, when I run the 'markers.xml' file it doesn't show all the entry's I have listed in the database which I would have expected after a cron job, any ideas?

Also currently my map shows about 35 markers, even though I have about 45 in the database, however if I reinstate the $footer reference at the bottom of the 'googlemapme' template I only than have about 15 markers showing on my map.

Thanks for being patient with me everyone! :confused:

S@NL - BlackBik, thanks for the suggestion but that didn't work either I'm sorry to say.

Doctor Death 09-17-2007 10:05 AM

Quote:

Originally Posted by S@NL - BlackBik (Post 1340044)
Hi guys,

About the markers. Had the same problem, they didn't show.
They all came back after I went to the admin panel and designated other marker colors to the usergroups in "ME Usergroup marker" in the admin panel. After running the googlemap cron, all markers showed again. :)

Hope this will help.

Did this and still no luck. Thanks for the suggestion tho.

bikers 09-19-2007 07:05 PM

Quote:

Originally Posted by Doctor Death (Post 1340728)
Did this and still no luck. Thanks for the suggestion tho.

This post fixes the problem.

https://vborg.vbsupport.ru/showpost....&postcount=500

Reinhart 09-19-2007 07:15 PM

Figured out the broken pins thing.
Its whenever someone puts an image in for their marker.

Just disable this feature by editing the templates and deleting the ability to even enter one.

Mines up and running at http://www.wiipals.net/Forum/vbgooglemapme.php

Still have no answer for the "Wont zoom in when I click: Find Me" thing.

about 25 people have reported it.

but yeah.. to solve this just delete the ability to put in a pic.
Thats why its working for a while and then suddenly breaks.

Reinhart
Admin
http://www.wiipals.net

Ronseal 09-19-2007 08:25 PM

So how do I remove the ability to add images Reinhart?
You said I had to edit a template.... sounds good, but which one and how?

Many thanks. :up:

Reinhart 09-19-2007 08:41 PM

Quote:

Originally Posted by Ronseal (Post 1342663)
So how do I remove the ability to add images Reinhart?
You said I had to edit a template.... sounds good, but which one and how?

Many thanks. :up:

Youre going to want to edit:

vbgooglemapme_set_yourlocation

and

vbgooglemapme_display_yourlocation

FIm no PHP expert so I just thumbed around looking for something with the words "Image" in it..

I think its this:

<tr>
<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>

</tr>

Which is that box that lets them type in what image they want.

Deleted it on both those templates and now.. no more problems.

Someone want to confirm that thats the right string to delete?..
It was a while back for me.


All times are GMT. The time now is 02:40 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.02319 seconds
  • Memory Usage 1,858KB
  • 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
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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