Jump to content

BFD Calendar

Members
  • Posts

    400
  • Joined

  • Last visited

Everything posted by BFD Calendar

  1. If you set your map to satellite view these 'points of interest' don't show up. Well, only parks and some official buildings do but no business stuff. When zooming in, street names are all visible and people can even switch to street view to actually see the place you're 'marking'.
  2. The markers now fit the map better, no more two Alaskas showing. Still, only the height option works with the solution above. When generating three maps on the same page, the first and third are exactly the same apart from height. In the second zoom and coordinates work but no markers. <?php $map = $modules->get('MarkupGoogleMap'); $places = $pages->find("template=bfd_places, MapMarker!='', sort=title"); echo $map->render($places, 'MapMarker', array('height' => '400px')); ?> <hr> <?php echo $map->render(new PageArray($pages->find("template=bfd_places")), 'MapMarker', array('height' => '400px', 'zoom' => '5', 'lat' => '50.923813', 'lng' => '4.431493')); ?> <hr> <?php $places = $pages->find("template=bfd_places"); $options = array('width' => '100%', 'height' => '300px', 'zoom' => '5', 'lat' => '50.923813', 'lng' => '4.431493'); echo $map->render($places, 'MapMarker', $options); ?> See result here: http://www.birthfactdeathcalendar.net/bfd_processwire/places/ Entering an address or coordinates in the MapMarker address field doesn't keep the info yet upon publishing the page either. It still needs to be entered twice. Once in a while, when fiddling with zoom or moving the marker on the map before publishing the page it keeps the input properly. Using the new version and will try out the new icon and hover options soon. Thank you for that.
  3. Thank you. Truly I didn't look for an answer because there was no real problem. And since it didn't look like a real problem I thought it was a kind of 'easter egg' hidden by some smart programmer
  4. Contrary to what I read in other posts, there were no changes on my server. I left off work last night and logged in this morning with this error. Apart from losing an unpublished page everything works fine now. And pardon me for not knowing all of ProcessWire's history and quirks while finally discovering something 'funny' between the mass of cryptic errors and solutions I'm usually confronted with.
  5. This request was aborted because it appears to be forged.
  6. I installed them manually. Uploaded the zip file and expanded it there, removed "-master" from the folder name. There are no extra file extensions. Let me (hopefully) install the Module Manager and see if that helps. Edit: ModuleManager doesn't show up either What about the 'built-in installer? I'm in ProcessWire 2.3.0.
  7. To you it probably does.... I'll give it some trial and error or perhaps a night sleep and see if it does to me as well. Thank you for the encouragement <a href='{$img->page->url}'><span class='newspapersubtitle'>{$img->description}</span></a>
  8. This works excellent for something I'm doing. Just wondering if you can also grab the url of the page where the random image resides. To make the image clickable and go to the page, not the image itself.
  9. If using the 'new PageArray()' where or how do I tell it to show the markers that I want? echo $map->render(new PageArray($pages->find("template=bfd_places, MapMarker!=''")), 'MapMarker', array('height' => '400px', 'zoom' => '2', 'lat' => '50.923813', 'lng' => '4.431493')); It's probably obvious for seasoned programmers but I can't find any reasonable or understandable examples or explanation. (Hints or directions towards sources are welcome)
  10. The HTML Purifier looks like an OK option. But.... the 'MarkupHTMLPurifier' folder is in site/modules but it doesn't show up in the list of modules after a 'check for new modules'. So $purifier = $modules->get('MarkupHTMLPurifier'); $purifier->set('HTML.ForbiddenAttributes', 'p'); results in 'Error: Call to a member function set() on a non-object' By the way, I also have 'RandomImages.module' in my site/modules not showing up in the list either. Others work fine after uploading them to site/modules. Unzipped on the server so there should be no ftp errors.
  11. Is it possibly to sanitize only one tag? I want to include a textarea in a template without the paragraph formatting, but keeping all other formatting and links. What I want is "Here's a template that includes text from a <textarea> within the template text" What I don't want is "Here's a template that includes text from a <textarea> within the template text"
  12. The options are working alright but no markers show up. Do you mean it will only work with one marker? If so then how to get the markers from a 'find' show up on the map? Basically just like in the 'skyscrapers' website. As far as I can tell you've done it totally different there.
  13. Getting an error Error: Call to a member function getRandomImages() on a non-object on line $image = $helper->getRandomImages(1, "images", 1847); where '1847' is the parent of pages with an 'images' field. And the module doesn't show up in the list of modules although it's in the modules folder.
  14. Happiness comes from small things Now find a Good Samaritan who solves the GoogleMaps problem....
  15. $todaymonth is 11 indeed. That's what it should be because in my 'bfd_month' pagefield I selected '11' for events happening in november.
  16. Trying to get a list of events that happened 'today' results in nothing.... I have a number of 'events' pages with day, month and year fields. Getting the information from 'day' and 'month' I want to list them, and show the locations on a map. $todayday = date("d"); $todaymonth = date("m"); $features = $pages->find("template=bfd_events, bfd_day=$todayday, bfd_month=$todaymonth, sort=bfd_year"); foreach($features as $feature) echo "<li><a href='{$feature->url}'>{$feature->title} {$feature->bfd_case->title}</a></li>"; $items = $pages->find("template=bfd_events, bfd_day=$todayday, bfd_month=$todaymonth, MapMarker!='', sort=title"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'MapMarker', array('height' => '400px', 'zoom' => '2', 'lat' => '50.923813', 'lng' => '4.431493')); 'bfd_day' and 'bfd_month' are Page fields while MapMarker is fetched to 'events' with a 'get("template=bfd_places, id=$page->bfd_events_places_id_list")'. Using selector 'title*=November' works.
  17. For some reason the only array item working here is the height.... echo $map->render($items, 'MapMarker', array('height' => '400px', 'zoom' => '15', 'lat' => '50.923813', 'lng' => '4.431493'));
  18. All that is done. Perhaps I can make you a temp admin so you can add an entry and try to figure out what happens?
  19. Enter address 'city, state, country' in the MapMarker address field. Clicking outside and Lat, Lng and map appear. Upon publish the page is accepted without an error but the MapMarker address, Lat, Lng and map are empty. Entering address again and save publishes successfully.
  20. Trial and error. There was a conflict between two googleapis scripts 'maps/api/js' and 'maps/api/js?v=3'. Seems to work on first geocoding now. Edit: The error is back.... Enter 'Leipzig, Sachsen, Germany' in the MapMarker address field. Lat and Lng appear automatically when clicking outside address field and the map is rendered correct. On clicking 'publish' I get: Added page /selectlists/cities/leipzig/ Added page /selectlists/states/sachsen/ Saved Page: /places/leipzig-sachsen-germany/ (4 changes) - Cannot be published until errors are corrected Error geocoding address The MapMarker field, Lat and Lng entries and map have disappeared. I re-enter 'Leipzig, Sachsen, Germany', click outside address field and everything appears again. On 'publish' I get 'Error geocoding address' again but now the MapMarker field entry is still there while Lat and Lng are zero and the map doesn't show. Below the map it says 'over query limit'. Clicking in and out MapMarker field and publish again finally renders the map. head_inc has <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery-1.9.1.min.js?>"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/main.js?>"></script> <script type="text/javascript" src="<?php echo $config->urls->modules?>FieldtypeMapMarker/InputfieldMapMarker.js?v=203?>"></script> <script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?&sensor=false'></script> Using Firefox 24.0 on OSX 10.8.5 - ProcessWire 2.3 - MapMarker 2.0.3
  21. I have that working fine for 'related events' on the individual 'people' and 'places' pages. Thank you. What I was actually referring to is the search box. If you enter 'ballard' in the search box it only returns the 'people' page for ballard, not the events pages related to ballard. On the 'events' page the names are called from the 'people' page by referring id. $namepage = $pages->get("template=bfd_people, id=$page->bfd_events_people_id_list"); Would a Concat field offer some kind of solution? But I guess you can't do that with fields from one template on another.
  22. When everything fails, in the end trial and error always works....
  23. Thanks, I found out about that and made a 'simple' list for now. With a little bit of exercise, or by trial and error for that matter, I hope to putter some more complex find navigation list together sometime soon.
  24. Operator '~=' is not implemented in (in /homez.183/birthfac/www/bfd_processwire/wire/modules/Fieldtype/FieldtypePage.module line 377) How about a simple "=", it works for now....
  25. Cool, got it working now. Dumbfounded why it didn't before. ProcessWire is pleasing me a little bit more every day!
×
×
  • Create New...