-
Posts
420 -
Joined
-
Last visited
Everything posted by BFD Calendar
-
PW not installing correctly - admin not found
BFD Calendar replied to Jamie Gordon's topic in Getting Started
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'.- 27 replies
-
- 1
-
-
- admin
- processwire
-
(and 3 more)
Tagged with:
-
PW not installing correctly - admin not found
BFD Calendar replied to Jamie Gordon's topic in Getting Started
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....- 27 replies
-
- admin
- processwire
-
(and 3 more)
Tagged with:
-
PW not installing correctly - admin not found
BFD Calendar replied to Jamie Gordon's topic in Getting Started
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.- 27 replies
-
- admin
- processwire
-
(and 3 more)
Tagged with:
-
PW not installing correctly - admin not found
BFD Calendar replied to Jamie Gordon's topic in Getting Started
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.- 27 replies
-
- admin
- processwire
-
(and 3 more)
Tagged with:
-
PW not installing correctly - admin not found
BFD Calendar replied to Jamie Gordon's topic in Getting Started
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....- 27 replies
-
- admin
- processwire
-
(and 3 more)
Tagged with:
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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....
-
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 ""; };
-
Cron Job for ProcessWire mailer template
BFD Calendar replied to BFD Calendar's topic in General Support
Always eager to learn something new! Unless it's beyond my comprehension.... -
Cron Job for ProcessWire mailer template
BFD Calendar replied to BFD Calendar's topic in General Support
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. -
Cron Job for ProcessWire mailer template
BFD Calendar replied to BFD Calendar's topic in General Support
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. -
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?
-
I'm obviously a beginner....
-
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).
-
It took me a while too: $image = $page->imageK1->first(2);
-
I'm going for a different approach.... Since I was also looking for an easy solution to update my long time blog I figured I could do that by sending my daily ProcessWire query by email to Blogger, set it to automatically post and then let MailChimp and Twitterfeed pick up the Blogger RSS to send it to my MailChimp daily subscriber list, to Twitter and to some Facebook pages. All that can be scheduled to happen say between 1.00 and 2.00am, making people believe I never sleep. So far so good. In my newsletter template I added $to = "performan.org.##mycode##@blogger.com"; $headers = "From: ddv@birthfactdeathcalendar.net\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=ISO-8859-1' . "\r\n"; $subject = $jaargang . $jaargangst . " year - N° " . $daynumber . " " . $today; $body = "<html><body>" . $headtxt . $counttxt . $bfdtxt . "</body></html>"; where $bfdtxt is the output of my query. Works fine when the page is loaded in a browser, but only the last '$feature' is featured in the email while all are listed on the webpage. When I call this page from the 'task scheduler' on my hosting server nothing happens.... If anyone could direct me on the right path that would be great.
-
Ah hooks.... seems like I will have to boldly go where no me has gone before. Thank you Soma, I'll try to screw this into my template, start the engine and see if it works.
-
I tried "$rss->itemDateField = date(DATE_RFC2822);" where I assume "date(DATE_RFC2822)" is today in the format needed for an RSS feed. It would mean that the creation date is tricked into today and the posts look as if they are created today. MailChimp checks the RSS at 3.00am, finds the 'new' pages and sends them out. The pages found in my array sent to the RSS template lists events that have a 'bfd_day' field that matches today's day and a 'bfd_month' field that matches today's month. The 'bfd_year' field is of course different for every event. So I don't think it would be necessary to add another field. Perhaps another approach is this: $day = $feature->bfd_day->title; $month = $feature->bfd_month->title; $year = date("y'); $rss->itemDateField = new DateTime('$year-$month-$day'); What do you coders think of it?
-
Ok, my RSS feed is NOT a feed of recently CREATED pages. My RSS feed is a list of events where the field 'bfd_day' is today and the field 'bfd_month' is this month, aka the day the RSS feed goes out. The pages can be made anytime beforehand. Right now I'm making pages for 24 May, they should appear in the RSS feed on 24 May and not in the RSS feed of tomorrow. So somewhere "$rss->itemDateField = 'created';" should be replaced by a date function 'today' rather than 'created' for each item. My guess is "$rss->itemDateField = date(DATE_RFC2822);". Trial and error and I'll wait and see again if and what MailChimp will send me at 3.00am in the morning.