Jump to content

BFD Calendar

Members
  • Posts

    400
  • Joined

  • Last visited

Everything posted by BFD Calendar

  1. The South Pole doesn't show up in MapMarker.... http://www.birthfactdeathcalendar.net/places/the-south-pole-polheim/ It also prevents the map showing up in an array of posts. http://www.birthfactdeathcalendar.net/events/dates/december/14-december/
  2. BBEdit from time immemorial.
  3. It didn't happen when I was doing this in PW 2.3.1. And when editing related pages it happens quite often to do that at the same time in different browser tags or windows.
  4. It is indeed much faster, perhaps too fast It happens both on a local MAMP installation on my MacBook and on a live installation on a server. Upgrade was from 2.3.1. A typical situation is when I'm editing one page in admin interface, and also need to edit another one which is related to the first one, in a new browser tag. When the second one is done and saved or published, I finish the first one. Upon save the request appears to be forged.
  5. SInce upgrading to PW 2.4 I'm getting more frequent 'aborted forged requests' when it takes too long to publish or save a page. Any chance to give a page a bit more time before it appears 'forged'?
  6. I followed the Great Ryan's hint and installed MAMP on my MacBook. The local installation of ProcessWire runs smooth now. If you're hesitant on working under the hood of your Mac, read this lookalike 'HowTo'. Only, don't forget to replace 'Drupal' by 'ProcessWire'.
  7. Radek, line 'LoadModule rewrite_module modules/mod_rewrite.so' is uncommented. Horst, hosts file is updated. Restarted Apache, restarted Mac several times. Other local sites work, including php and mysql. ProcessWire tables in database exists etc, so everything seems in order and yet....
  8. Radek, nope, same problem. And as I said I can access the site at 'mycomputername.local' but still resulting in a 404 error when I want to log in or go to 'about' or any other page.
  9. Adrian, because that's what it originally said and setting it to 'Allow from all' doesn't change anything. Radek, 'myweb.local' goes looking for 'www.myweb.local' and ends up nowhere whereas 'mycomputername.local' goes to my local sites. But nevertheless still resulting in a 404 error.
  10. Doesn't work on a Mac for me. Testing separate sites in /Library/WebServer/Documents/site1.org and /Library/WebServer/Documents/site2.net etc/apache2.httpd.conf is set to DocumentRoot "/Library/WebServer/Documents" <Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all </Directory> The .htaccess 'garble' test failed, so I presume httpd.conf is the culprit but how/why? In .htaccess I uncommented RewriteBase /site1.org/ RewriteBase /site2.net/ Still getting a 404 error....
  11. Marty, that's what I have all the time now. Switched off NVIDIA with gfxCardStatus and using Intel only. Andrew, not so fantastic Wi-Fi is something else I'm experiencing since Mavericks. I see more of my neighbours' networks than my own. Anyway, it's off to the Apple Service Center tomorrow.
  12. Adrian, check this link to see if your MacBook Pro falls into the problem category, it's mostly mid 2010 models, I bought mine Dec 2010. http://support.apple.com/kb/TS4088 And here's a discussion about the NVIDIA errors and important message if your warranty is due. https://discussions.apple.com/message/23620455#23620455 I upgraded to Mavericks on 22 Nov 2013. Since then I had frequent "your Mac restarted because of a problem" errors and sometimes my screen wouldn't wake up when opening the lid. It happened mostly with graphic applications and scanning. If you're near an Apple shop they supposedly can do a hardware test. It seems that the error can be dormant but get worse under Mavericks.
  13. I had the same experience with a 1st generation Powerbook 5300, broken power connector solidly soldered back to the motherboard by a tech junkie on a street stall in Bangkok. My recent MacBook Pro with matte screen suffers a NVIDIA error since upgrading to Mavericks. I found out there's a free repair program from Apple. It took me some strong arguments to still get that for free while my warranty was 35 days due.
  14. Soma, I'm aware that my code is probably not conventional. A mashup of old html, snippets found on this forum and php according to the manual. Usually trial and error make it work, or not.... 'bfd_events_places_id_list' is a single page field used on several 'events' page templates. The selectable pages are 'places' with several fields. The 'id' is a remainer of my database past where you needed a unique matching id to relate one table to another. In ProcessWire the id of the page is what I use to relate the information in the 'places' pages to an 'event' page. "$markers->add($feature->bfd_events_places_id_list);" adds the markers alright. With an array of four events, there are four markers on the map and they point to the right location (markerLinkField and markerTitleField). This is what Ryan told me in this post. Since '$feature->bfd_events_places_id_list' adds the marker I'd think '$feature-url' would be the url of the 'event' page that holds the 'bfd_events_places_id_list' field, the page I want the marker to link to, and the page I want it's title to show up as markerTitleField. But thank god your '$myentry' addition did the trick! The 'simple property hook' is something I still don't really get.... but a working sample should help me on the right path, thanks.
  15. Soma, 'bfd_events_places_id_list' is a field that relates to the page-id of a 'places' page. The 'places' page has fields for name, street, district, city, state, country and mapMarker. One 'place' can be related to several 'events'. $placepage = $pages->get("template=bfd_places, id=$page->bfd_events_places_id_list"); echo "in {$placepage->bfd_places_name}, {$placepage->bfd_places_street}, {$placepage->bfd_places_city->title}, {$placepage->bfd_places_state->title}, {$placepage->bfd_places_country->title}." The markers are also added to the map via the 'bfd_events_places_id_list' reference. They show up fine, the link however goes to the 'place' page. It would be better if the link goes to the 'event' page. Where '&& $feature->bfd_day' comes from, uhm I don't remember.... I presumed '$feature->url' would be the url of the '$pages->find()' results, in the same way as the markers are added to the map.
  16. Wanze, I tried putting everything in a div, doesn't work. The div ends up on the first page of the pdf and the content on the next, with no background. Putting images in a <td> works fine: <td width=\"75\" valign=\"bottom\"><div class=\"image\"><img src=\"{$webimage}\"></div></td> The $webimage is an url to images on other websites, by putting them in a div set to max-width:75 they all line up well in the same size. What also doesn't seem to work is the 'valign' value. DDV
  17. Adrian, 1 - you seem to have a solution for any of my problems. 2 - what a bummer that I probably need new headcracking code to get what I want.... Too bad 'manually coding' doesn't involve a wrench, pliers, rock'n'roll tape and a piece of wire. For now I want just one PDF export from a 'daily' list of events. But then since I started using ProcessWire it's been stirring my imagination and creativity and I'm bound to expand the possibilities. If every expansion needs a new (coding) language then that's simply too much for me.
  18. Wonderful module. For some reason the pdf doesn't want to include a background image. Tried to force it in a table, but no go.... <style type="text/css"> table.page { padding: 15px; background-image: url(bfd_background_opacred_800x2359.png); background-color: #FFD6D9; background-repeat: no-repeat; background-position: top; } </style> <table class="page"><tr><td> The background color works but the image doesn't. The image is in the 'pages2pdf' folder. Tried putting it in the 'templates' folder and tried full url but nothing works. Any ideas? When the pdf covers several pages (multiple items in a find array) the html becomes slightly messed up, but that's maybe due to my clunky coding....
  19. I would like the markers on my map link to the event page that features the location instead of the location page itself. The location is related to the event by the field 'bfd_events_places_id_list'. Tried this but it doesn't work.... $features = $pages->find("parent=/events/ | /the-eyes/, bfd_month.name=$month, bfd_day.name=$day, sort=bfd_day, sort=bfd_year, sort=name"); $markers = new PageArray(); foreach($features as $feature) { $markers->add($feature->bfd_events_places_id_list); } if ($markers && $feature->bfd_day) { $map = $modules->get('MarkupGoogleMap'); $options = array('width' => '100%', 'height' => '500px', 'markerLinkField' => '$feature->url', 'markerTitleField' => '$feature->title'); echo $map->render($markers, 'MapMarker', $options); } else { echo ""; };
  20. Always eager to learn something new! Unless it's beyond my comprehension....
  21. Thanks all. Horst's solution did the trick. I tried <?php header("location: http://www.your-site.com/page-url-with-mail-script/"); before but it didn't work. <?php file_get_contents("http://www.your-site.com/page-url-with-mail-script/"); however worked. Teppo, the page I'm calling is indeed hidden because I'm using it only to send my daily array to Blogger. As soon as it runs smooth Blogger is configured to accept and post automatically. And of course the page shouldn't be reachable otherwise.
  22. Horst, the 'tasks scheduler' only allows me to enter the url of a script/page on the server and fix a time when it should be executed. I can't edit the cronjob itself (or I haven't figured out where to do it). Adrian, 'bfd_mailer.php' is the template that has the mail script. Load it in a browser and the content is sent. 'wire('pages')' didn't do the trick. LazyCron looks promising, but I see Captain Hook luring around the corner again. Still gobbledegook to me but I guess I'll have put my teeth in there sooner or later. I kinda get the idea behind it but applying it is something else.... Basically the hook says 'myFunc' is sending the email (script in template) 'everyDay'? Or is 'myFunc' finding the pages AND sending the email? And it should be not just 'everyDay' but every day at 1.00 am. So should I distill it all from http://processwire.com/api/hooks/ and http://processwire.com/api/hooks/captain-hook/ or are there more practical examples out there? Anyway, thanks until now.
  23. I have a template that includes a php mail script sending the results of an array. It works fine when I load the page in a browser, it sends the page content like it should. I want this to happen every day at 1.00 am, so I have a Cron Job (Tasks Scheduler on my server) scheduled to perform the script. Command executed : /usr/local/bin/php.ORIG.5_3 -c /usr/local/lib/php.ini-2 /homez.183/birthfac/www/site/templates/bfd_mailer.php But I get a PHP Fatal error: Call to a member function find() on a non-object on line 51: $features = $pages->find("parent=/events/, bfd_day.name=$todayday, bfd_month.name=$todaymonth, sort=bfd_year"); So I presume the doesn't understand the ProcessWire code "parent=/events/".... Any suggestions for a workaround or solution?
  24. And, you have to put it into html to show the image instead of the filename <img src='{$page->imageK1->first(2)->url}' /> (or adapt Soma's solution to this).
×
×
  • Create New...