-
Posts
400 -
Joined
-
Last visited
Everything posted by BFD Calendar
-
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.
-
I also think the PubDate is the culprit. I presume the MarkupRSS module gets that date from the creation date (itemDateField) of the post, under 'Render individual RSS item' in the module code. if($this->itemDateField && ($ts = $page->getUnformatted($this->itemDateField))) { $pubDate = "\t\t<pubDate>" . date(DATE_RFC2822, $ts) . "</pubDate>\n"; } else { $pubDate = ''; So basically I could change that into something based on the search criteria to find the posts that need to go into the daily RSS, $todayday = date("d"); $todaymonth = date("m"); $features = $pages->find("parent=/events/, bfd_day.name=$todayday, bfd_month.name=$todaymonth, sort=bfd_year"); and somehow insert those as PubDate. If that makes sense, should I change that in the module itself or in the RSS template? And uhm, it would be nice to direct me towards how as well....
-
Nope, MailChimp doesn't send http://feeds.feedburner.com/birthfactdeathcalendar either.... While I have one configured in exactly the same way http://wheniwasbuyingyouadrinkwherewereyou.blogspot.com/feeds/posts/default?alt=rss that works fine. But on Blogspot the articles are published as 'new' every day. Perhaps adding a 'tricked' publish date might help?
-
I moved my site from the working folder upfront and live. And yes I updated the feed @ MailChimp. Got a new url @ FeedBurner and have set up MailChimp to send at 3.00am in the morning. Hopefully I'm happy when I check my mail tomorrow morning. I'll see how it ends up html-wise. I know it's Landrover Owner Style Thanks again.
-
Adian, I installed ProcessRedirectIds. It looks like a definite improvement for what I want. I'll keep you posted if anything comes up. Thanks, DDV
-
Still wrestling with this.... My daily RSS feed works fine when viewed in a browser or RSS reader, but for some reason MailChimp doesn't pick it up as RSS feed. My five cents is that it doesn't because the posts in my query are not 'new', instead they are a set of existing pages matching search criteria. $todayday = date("d"); $todaymonth = date("m"); $features = $pages->find("parent=/events/, bfd_day.name=$todayday, bfd_month.name=$todaymonth, sort=bfd_year"); Any ideas someone?
-
I still wonder why internal page links are not referring to page ids instead of urls. As soon as something in the url changes the whole site can turn into a mess. I have a list with lots of names that I refer to, mostly by page relations, but once in a while also as link in a text area. Sometimes you find out after a while that a person is called Johnsson and not Johnson. Since the title field and url are based on 'Name, Surname' url 'name-surname' everything is fine when it comes to page relations, but not when it comes to url, it means searching the whole site - or my physical memory - to find out where the misspelled name was used. Or maybe one day I might decide it's better to put the names under parents A, B, C, etc instead of just all under parent 'people'. Then every text link to a name would need to change. The above mentioned modules are a workaround in some cases but not a solid solution. And apart from that, a PageAutoComplete field would be so much easier to search through 500 people, 900 places and 1000 dates for now....
-
Not too much of a Belgian beer enthousiast myself, but Icthegem’s should definitely be Ichtegem's (www.brouwerij-strubbe.be/start/historiek/en).
- 8 replies
-
- bar
- restaurant
-
(and 3 more)
Tagged with:
-
When I Was Buying You A Drink Where Were You?
BFD Calendar replied to BFD Calendar's topic in Showcase
Thank you Marc. It's amazing to find that many pictures, not only of people but even of events. 25 years ago all my information came from books, magazines or newspapers. I still have a huge collection of shabby black & white pictures enlarged by use of photocopying to bloating A4 images. I still need to scan those to add them as another bonus. And the pictures do stir some additional imagination. In 2012 my BFD blog even had a daily video about some event, also kind of crazy to see what's available on YouTube. I'll add some of those sometime too.... Regarding genealogy I guess you'll encounter some date problems too. I wonder how much these calculations are reliable to be sure that 17th of March 0763 was a monday. And it gets worse when you're going bc. I was born on the day Brion Gysin 'invented' the cut-up technique, so I guess that was my lucky star in heaven to gift me with a creative 'bolting' style.... -
Amidst all the fireworks, celebrations and yesterday's parties around the globe, I silently launched my Birth(+)Fact(x)Death(-)Calendar to the world. Although to most programming gurus on this forum it will probably not be a real 'showcase' to eat your heart out. As mentioned before, I'm not a PHP Grandmaster and I'm not a CSS wizard but just a simple creative artist doing what the uncontrollable urges make me do. Birth(+)Fact(x)Death(-)Calendar is a now 29-year-old project that has lived several lives, re-birthing from simple written notebooks to Commodore 64 cassette storage, several database systems and finally the World Wide Web. When a Zen Buddhist friend hinted me to ProcessWire and I saw the Architects demo I thought "Yeah, this is it!" But soon enough I hit the limits of my programming skills and gave up. I even admit that at a certain moment I thought Drupal was a better option. However, after a while I had the impression I was building a five storey garage building with a ton of complex tools and facilities while basically all I wanted to do was change the oil in the gearbox, grease some joints and keep up with routine repairs on an old LandRover. Things you usually do with a piece of wire, silicone and rock'n'roll tape. Last summer I encountered the unfortunate meeting of my left leg with a yellow car while driving my bicycle in Antwerp, leaving me captured to a couch in the living room and short walks on crutches to the kitchen for a cup of tea. Although thoughts and creativity were also somewhat crippled by the situation I knew I was going to have time on my hands for several weeks and months to say the least. So I went back to ProcessWire and thought "This must be it, get on DDV!" Now I know that this is it. Thank you Ryan for making something 'simple' that even I can manage to do what I've been dreaming to do for quite some time. Thank you also, along with all other hardcoders here to help me get over my beginners' mistakes and help me along the path to coding Nirvana where everything just simply works like simple earthlings want it to. I am sure most of you will either pull some hairs, burst out laughing or just stare with an open mouth at some of my coding solutions. But remember, I'm a mash-up, collage, cut-up, ex-cook, carpenter, welder, painter, teacher, bus driver, manager of a tattooed pig farm in China, visual artist doing my stuff with what I can find, and doing it LandRover owner style. Birth(+)Fact(x)Death(-)Calendar is also a work in progress. It grows day by day and I'm sure many new features will be added along the way. Right now my concern is to have the basic framework functioning from day to day. That's what Birth(+)Fact(x)Death(-)Calendar is about. Serving you a fine selection of events to inspire your day. Check Birth(+)Fact(x)Death(-)Calendar every morning for tips on which book to read, what movie to watch, where to go, maybe what to eat or drink, all based on events for the day. Today (2 January) you could perhaps read 'Suicides' by Guy de Maupassant, take a walk along Rue Le Sueur in Paris, listen to 'She was a Visitor' by Minimal Man, watch the fantastic movie '10 Rillington Place' with a stunning Richard Attenborough or just let your heart skip a beat for Philip Blaiberg. Check for events on your favourite day in the 'events' section. I'm filling in some events for most days of the year, but my collection of events is beyond 10.000, bear patience because I probably have a long way to go. If you like what you see and have suggestions to add new features, new paths, new possibilities, new abilities, better performance, better interfaces, cooler scripts, gadgets, etc,.... please tell me. And even better, also show me the 'how to' as well. The title for this post? It refers to a 1978 song by the Mekons, 'Where Were You?', and it was also the title of a blog I kept about my Birth(+)Fact(x)Death(-)Calendar for several years. Apart from collecting events I also archived where I was in pictures since 1999. Before on another blog The Eyes Have It, but now also integrated into Birth(+)Fact(x)Death(-)Calendar. And finally, post your requests for favourite days here! I have about 25 to 40 events for every day of the year. Any request posted here will be added in the next couple of days. And now.... enjoy Birth(+)Fact(x)Death(-)Calendar! DDV
-
Happy New Year to all Saturday 1st of January 2000 The first sunrise of the New Millenium as seen from my quarters in Taling Chan, Central Thailand, Thailand
-
Tried this but it didn't work for me. I can't select my 'newsletter' from the list and upon send there are several errors: Skickar Till BFD RSS Test Unable to Create New Campaign! Code=311 Msg=subject - Please enter a value Unable to Send Campaign! Code=300 Msg=Invalid Campaign ID: 429365 Any special type of MailChimp campaign I should make first? I basically want to send out the content of the home page every day.
-
moving site from sub folder to the root directory
BFD Calendar replied to Alex's topic in Getting Started
Upon moving ProcessWire into the root folder like mentioned above I get an error: Parse error: syntax error, unexpected T_VARIABLE in /www/index.php on line 105 line 105 says: $config->paths = clone $config->urls; Anything else I need to change to get it back working? Edit: fiddling with .htaccess solved the problem.- 14 replies
-
- root
- sub folder
-
(and 1 more)
Tagged with:
-
Ok, thanks. I'll first put my site where it will be and then work out what's the best way to get this working smoothly. I'm not in such a hurry to have all the content in place, having the framework right and working is more of a concern. There are still about 5000 names to add so I have plenty of time to test and find the best solution.
-
Second thought: if the link is kept as text instead of page id I have a bit of a problem.... I'm working on my site in a separate subfolder until I decide to put it online. So it's in something like www.mysite.com/temporary now. Hopefully in a week or so it will go to www.mysite.com - which means all the links in textarea fields are worthless or what?
-
Browse and copy the link would be a good option. Is it really the link (as text) that is used or is it the page id? If it's the link as text then I could be in trouble if a name turns out to be written differently and is changed later on, after the link is made. I assumed ProcessWire would use the page id which is shown as a link.
-
I'm using a lot of internal page links on my website. When they are in fields they are easy to fetch with asmSelect fields. But I also use them in textarea fields. Adding a link brings the pages menu, but then the hassle starts.... I have a few hundred names and I want to link to one of them, it means guessing where the letter H or S will be in the list of pages. For H start at page 12 or something and then click next, next.... For S definitely go to the last page and click previous, previous.... Is there an easier way that I haven't found out about perhaps?
-
Thanks. My brief career as Tattoo Pig Farm manager is documented here: DDV in China. And if everything goes as expected I should be halfway the healing process of my leg by now. My daily RSS feed is based on content from different pages: 'event' pages that match 'day' and 'month' of the date the RSS feed goes out. Basically the same query as the home page. But I guess it should be possible to get that into a summary field using CSS. Something else bothering me is that now all the 'summaries' go out as individual posts whereas I want them all together in one post. I don't want people subscribing to the RSS feed by mail (MailChimp) to wake up with 30 messages every day.
-
I'll start with saying that I'm not a 'coder' by far and sometimes I have the impression that most people here are and suppose that everybody is one. Being a 'performance artist' you could say I'm the opposite I need nothing else but my body to do my work. www.performan.org Nevertheless I've used the internet as a means to make my work public, since 1994 when Netscape 1.1 was released with the major introduction of frames. The Jockel Project Since 1985 I've kept a database of events that I find interesting, in notebooks, in a Commodore 64 environment, in a FoxPro database, in a Filemaker database, as a blog When I Was Buying You a Drink Where Were You? and now finally (and hopefully working from 1 Jan 2014) in a searchable website thanks to ProcessWire. Apart from that I worked as a cook, a carpenter, a welder, a painter, a teacher, a bus driver, manager of a tattooed pig farm in China and currently at an architecture school operating CNC machines and lasercutters but also unloading wood, card- and fiberboard or simply bricks from delivery trucks. And more actually I'm painstakingly recovering from a complex leg fracture since the unfortunate meeting of my left leg and a yellow car while driving my bicycle in Antwerp last summer. So yes, PHP and XML are hard work for me, but I'm willing to learn. And I'm happy to have discovered ProcessWire and appreciate the help I've had so far from anybody responding to posts and questions. Some things just aren't obvious, and even when searching the forums you don't always find what you want. Or sometimes something doesn't even looks like a solution until someone tells you to look at it in a different way - which you did, thank you. Oh, and if you're looking for some electronics to listen to while you're coding, our complete catalogue of electronic music since 1980 (vintage analog synthesizers, tapeloops and voices only!) is available for free at the Internet Archive.
-
Ahum, as if we are 'simply' capable of doing so, while still wrestling to get ProcessWire under my thumb....
-
I already have a running setup and a bunch of subscribers with MailChimp, so I want to stick with that if possible.