Autor Thema: Data source? Google Maps error?  (Gelesen 2258 mal)

Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Data source? Google Maps error?
« am: 11. August 2011, 00:55:19 »
When you perform a search and you are viewing the results via search.php, at the bottom of the page is the option to download the results in a TXT file. The cache "status", "type", "container" and the following under "logs" is still in Polish. I cannot determine where it is coming from to translate it. Any ideas?

Logs:
<===================>
geohiker / 26.03.2011 / Znaleziona


Also, if you do a search and exclude your own hides and founds, if you click GoogleMaps at the bottom, it shows you ALL hides, even those you asked not to be shown.  is there a fix for this?

Thank you!
Jerry
Former OC US Admin

oliver

  • Gast
Re: Data source? Google Maps error?
« Antwort #1 am: 11. August 2011, 13:42:41 »
When you perform a search and you are viewing the results via search.php, at the bottom of the page is the option to download the results in a TXT file. The cache "status", "type", "container" and the following under "logs" is still in Polish. I cannot determine where it is coming from to translate it. Any ideas?

Should be lib/search.txt.inc.php

Zitat
Also, if you do a search and exclude your own hides and founds, if you click GoogleMaps at the bottom, it shows you ALL hides, even those you asked not to be shown.  is there a fix for this?

Its a known bug (by design). To read ignored caches, the user needs to be logged in. Login status is stored in the cookie. But google maps cannot submit the cookie of the user for oc.de with that query.

In the german code is a nice google maps included, so you dont need that link any more:
http://www.opencaching.de/map2.php


Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Re: Data source? Google Maps error?
« Antwort #2 am: 11. August 2011, 18:51:28 »
Should be lib/search.txt.inc.php

Right, I found that and fixed the translations there. However, I cannot find where it is pulling the data from.  For example, a line of code in that file is "Container: {container}". Where is it pulling "{container}" from?


In the german code is a nice google maps included, so you dont need that link any more:
http://www.opencaching.de/map2.php

Can I get the code to implement that map on OCUS?
Jerry
Former OC US Admin

oliver

  • Gast
Re: Data source? Google Maps error?
« Antwort #3 am: 11. August 2011, 22:37:02 »
Right, I found that and fixed the translations there. However, I cannot find where it is pulling the data from.  For example, a line of code in that file is "Container: {container}". Where is it pulling "{container}" from?

I dont have the source here at the momennt. But there should be an call to str_replace() with {container} as a placeholder.

Zitat
In the german code is a nice google maps included, so you dont need that link any more:
http://www.opencaching.de/map2.php

Can I get the code to implement that map on OCUS?

Sure, you can. I added you to the developer user group in the forum, so you see the internal developmen forums. You will find the GIT-Repository there. However, i am not sure how difficult it is to migrate the map back to the oc.pl code - many things changed. OC.se has successfull migrated from oc.pl code to the code in the repository (and improved and extended the git code).