Jump to content

Member Map


Recommended Posts

Posted

I got some members complaining that they went to the wrong location. Now I try it myself, when I enter my city, (google.maps finds it fine) I get a location 25 km below where it should be. This is beta2, in beta one it seemed ok for me, but there where a few that had the same. Locations that are in the database show ok.

I looked in the database, and see that the wrong ones get rouded numbers:


50.000000 5.000000
50.000000 4.000000
51.000000 4.000000
35.000000 -86.000000

Posted

I got some members complaining that they went to the wrong location. Now I try it myself, when I enter my city, (google.maps finds it fine) I get a location 25 km below where it should be. This is beta2, in beta one it seemed ok for me, but there where a few that had the same. Locations that are in the database show ok.



I looked in the database, and see that the wrong ones get rouded numbers:




50.000000 5.000000


50.000000 4.000000


51.000000 4.000000


35.000000 -86.000000



Could you tell me which versions of PHP/MySQL you have and what your Operating System is ?

Beta 2 has some extra sanitation on the values.
Posted

I got some members complaining that they went to the wrong location. Now I try it myself, when I enter my city, (google.maps finds it fine) I get a location 25 km below where it should be. This is beta2, in beta one it seemed ok for me, but there where a few that had the same. Locations that are in the database show ok.



I looked in the database, and see that the wrong ones get rouded numbers:




50.000000 5.000000


50.000000 4.000000


51.000000 4.000000


35.000000 -86.000000




Could you tell me which versions of PHP/MySQL you have and what your Operating System is ?



Beta 2 has some extra sanitation on the values.



I have the same error on beta2 rebuild
Version PHP 5.2.11 / MYSQL Version MYSQL 5.0.84-log
Windows Seven, firefox 3.6.2, chrome and IE8
Posted

I've been investigating, it looks like it's an issue with locales. You use a comma in float values, but MySQL is expecting a decimal . so it's truncating the value.

I'm just putting together a custom function now so the value is still santized, but it also in the correct format.

Posted

This should fix the issue for you, please let me know if it works for you. I'll update the main resource file if it does.

attached file is to be uploaded to

/admin/applications_addon/other/membermap/modules_public/membermap/map.php



This only affects users that use a locale that uses a comma(,) as a decimal(.) separator, you do not need this file modification if you use a UK/US locale.

Posted

<br />The zoom level is set automatically so it includes all markers, the more that are added the further apart the more it will zoom out.<br /><br />What sort of information do you think would be useful in the pop-up ?<br /><br />I'm not sure I saw much point for FURLS apart from /membermap/ There's not really any other pages to it.<br />

<br /><br /><br />

Location (in text) and gender :)
Posted

Sorry, Beta 2 is not working for me.




rebuilt templates and recached skin etc. to make sure.



When I go to add my location, the browser (Chrome) downloads and index.php to my computer. This file consists of the details of my location.



Tried it in IE with the same result.



Beta 1 added the location without any issues.



Also makes no difference if I use the furl or not.









i too have this problem, did you find a fix? btw mine is a fresh install, no upgrade
Posted

not able to get this working at www.photoping.co.uk looks like a js error but no idea where to go to fix...any clues?

sorry error when i click add location is as follows:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Tue, 30 Mar 2010 23:36:51 UTC


Message: 'toTemplateReplacements' is null or not an object
Line: 28
Char: 1397
Code: 0
URI: http://www.photoping.co.uk/public/min/index.php?g=js

Posted

The latest update you did fixed my previouse eror about not beeing able to add my location, now when i add my location on my site i get this error


Webpage error details



User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)


Timestamp: Wed, 31 Mar 2010 01:33:00 UTC




Message: Expected ')'


Line: 396


Char: 636


Code: 0


URI: http://www.forums.winxperts.net/index.php?/membermap/

Posted

Download again - the files were updated and now fixes the error on adding your location.




i have downloaded the newest one nd its fixed that isse, im having a new issue now :)
Posted

yeah the guest access was just so you could see...normally no access at all ;).

still not working with minify off..

but based on your last response i found out why had to enable

'Load javascript files from Google' then it worked (guess i had some out of date files?)

Posted

yeah the guest access was just so you could see...normally no access at all ;).



still not working with minify off..



but based on your last response i found out why had to enable



'Load javascript files from Google' then it worked (guess i had some out of date files?)



It could be some thing that has changed since 3.0.2, you might want to upgrade to 3.0.5
Posted

might have to...just tried to add location and instantly got an error communicating with google.


(not even a delay)



That could be that your server doesn't allow remote file operations..
Posted

darn it...does this mod transmit on a certain port(s) as i may be able to get them opened



You need to have allow_url_fopen enabled in your php.ini.

You should be able to add the following to your .htaccess file.

php_flag allow_url_fopen on

Posted

just found out it has been disabled on all servers i use due to the script kiddies exploiting it to do DOS attacks :(
Thanks for the help anyway..i guess theres no way round this at he moment?

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...