Jump to content

Mats

Members
  • Posts

    353
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Mats

  1. I have a couple of customers on one.com (Danish company) and it's working out ok. I use mebo.se, a Swedish (pretty close to Denmark) web host, with very fast servers, great support at a low price.
  2. Mats

    Padloper showcase

    @Zeka It is. I'd appreciate a bug report.
  3. Mats

    Padloper showcase

    @Zeka www.doic.se uses Padloper for logged in customers.
  4. I don't think it's possible. Check out this SO answer: http://stackoverflow.com/questions/31861822/google-maps-how-to-show-city-or-an-area-outline/31865958#31865958
  5. @netcarver Repo is updated. Thats's my favourite shirt! Thanks for setting up the store.
  6. Hi! Welcome to the forums! Check this thread out for front end-editing with ckeditor:
  7. Looks and works great! Love the map on the contact page: http://eizocolour.com/contact-us/!
  8. Thanks @netcarver and @dab! I'll update the code with your additions @netcarver.
  9. Check out http://yourdomain.com/admin/module/edit?name=InputfieldPageName tpr was faster
  10. I think you are looking for this: $page->your_mapfield->address
  11. Seems to be at database problem. I can't duplicate the issue on my set up (also on 3.0.18). Can you add other field types without the db issue?
  12. Thanks for your detailed answer! Very impressive stuff. The vangoghroute.nl site is very nice too.
  13. Very nice work! Could you tell us something about the map? Are you using geojson for the routes/polylines?
  14. Thanks for the report Beluga. I'll look into it.
  15. Glad you got it sorted, i had the same issue at some point.
  16. Hi! Here's the solution: https://processwire.com/talk/topic/9827-single-image-upload-on-frontend-doesnt-work-correctly/
  17. Something like this? http://ipicture.justmybit.com/demo/ipicture-cars-demo.php https://github.com/jamietre/ImageMapster Could be a useful fieldtype.
  18. Here's the code: function convertGeoToPixel($lat, $lon) { $mapWidth = 38; $mapHeight = 109; $mapLonLeft = 16.37007904846189; $mapLonRight = 17.151481636352514; $mapLonDelta = $mapLonRight - $mapLonLeft; $mapLatBottom = 56.1947686858922; $mapLatBottomDegree = $mapLatBottom * M_PI / 180; $x = ($lon - $mapLonLeft) * ($mapWidth / $mapLonDelta); $lat = $lat * M_PI / 180; $worldMapWidth = (($mapWidth / $mapLonDelta) * 360) / (2 * M_PI); $mapOffsetY = ($worldMapWidth / 2 * log((1 + sin($mapLatBottomDegree)) / (1 - sin($mapLatBottomDegree)))); $y = $mapHeight - (($worldMapWidth / 2 * log((1 + sin($lat)) / (1 - sin($lat)))) - $mapOffsetY); return array($x, $y); } $pposition = convertGeoToPixel($pl->map->lat, $pl->map->lng); echo "<div class='litenkarta'><div class='punkt' style='left: {$pposition[0]}px; top: {$pposition[1]}px; '></div></div>";
  19. Hi Rick! I use InputfieldMapMarker for the lat/lng coordinates (used for google/mapbox maps mainly) and the code from the SO link to convert the lat/lng to x/y pixel coordinate dynamicly. I'm only using the conversion on one image but i guess you could use $image->width $image->height to make it work with uploaded images.
  20. I'm using this code and the InputfieldMapMarker to mark positions on an image. You can see it in action here (the small blue images with a white dot): http://alltpaoland.com/
  21. Change the module file from .php to .module.
  22. The search seems to be using this: http://www.runningcoder.org/jquerytypeahead/
  23. Corrected code: $q = $sanitizer->text($input->get->q); if($q) { $input->whitelist('q', $q); $qs = explode(" ", $q); foreach($qs as $key => $q){ $qs[$key] = $sanitizer->selectorValue($q); } $selector = "title|body|interests*=" . implode("|", $qs) . ", limit=50"; if($user->isLoggedin()) $selector .= ", has_parent!=2"; $matches = $pages->find($selector); if($matches->count) { $content .= "<h2>Found $matches->count pages matching your query:</h2>"; $content .= renderNavPanel($matches); } else { $content = "<h2>Sorry, no results were found.</h2>"; } } else { $content = "<h2>Please enter a search term in the search box (upper right corner)</h2>"; }
×
×
  • Create New...