{
"items": [
{
"type": [
"h-entry"
],
"properties": {
"_id": [
16704
],
"url": [
"https://macdaraconroy.com/2019/08/weaknotes-for-w-o-4-august-2019/"
],
"uid": [
"https://macdaraconroy.com/2019/08/weaknotes-for-w-o-4-august-2019/"
],
"author": [
{
"type": "MacDara Conroy",
"properties": {
"name": [
"MacDara Conroy"
],
"url": [
"https://macdaraconroy.com/author/macdara/"
],
"photo": [
"http://0.gravatar.com/avatar/37167652532c121404900106c4b087d9?s=96&d=mm&r=g"
]
}
}
],
"published": [
"2019-08-05T12:48:28+01:00"
],
"updated": [
"2019-08-06T13:55:56+01:00"
],
"content": [
{
"html": "After my previous tribulations, I finally got Webmentions (or at least pings between my own entries) to display on my posts. That involved a lot of trial and error to find the right PHP code to display comments in WordPress, which is a lot more difficult than you might imagine. \n\nI suppose the presumption is that 99% of users will just install a theme someone else has written, while the 1% that create themes are already versed in PHP \u2014 leaving the likes of me out in the cold, more or less. Alas, another example of the advancing web pulling up the latter behind it. (See also: people who compress their CSS into an unreadable block simply to save a few kilobytes \u2014 why?!)\n\nAnyway, since I only want to display Webmentions and not actual comments, I kept the code as simple as possible, and once I cracked the logic of what to put where, it worked like a charm. (I\u2019ve since changed it to also display my older trackbacks/pingbacks, but I might turn that off as the output is on the ugly side.)\n\nThe next step was styling up the generated text as I wanted, and that part went a bit easier than expected. An addition I made to my functions.php file while I was figuring all this out generates enough distinct class tags that applying CSS to the required elements was a simple enough task, though ultimately it\u2019s a bodge job (using the display:none property for bits that are still visible in the HTML source, for instance) because the code that the Webmentions plugin generates cannot itself be edited through WordPress settings. More control over that part would be helpful \u2014 perhaps via functions.php? -- especially since there\u2019s an errant capitalisation of \u2018article\u2019 that I can\u2019t ignore.\n\n+++\n\nLast Tuesday I went to Rathmines for the press screening of the new Quentin Tarantino film. Actually, I took the Luas (right around the corner from where my coach drops me off) to Ranelagh and walked the 10 minutes from there to the Stella Theatre. Sony laid on breakfast at the Stella Diner next door, which if I\u2019m honest was my main reason for going; QT I can take or leave. I filled up on buttery, peppery scrambled egg.\n\nThe film, as it happens, is one of QT\u2019s better ones (I\u2019ll be writing up my review this week) but the Stella cinema was, in retrospect, not the best place to see it.\n\nThe building looks fabulous; the new owners did a fantastic job with the theme and the furnishings. Seats have oodles of legroom, space to put your things and ottomans to put your feet up (they open for storage, too). But the place ultimately tips over the edge of form over function. The huge leather armchairs are too roomy to get a comfortable viewing position, and make it far too much a solitary experience even if you were with a friend or loved one. And the resonance in the auditorium made the dialogue in the film hard to hear quite often. Apparently tickets cost around \u20ac20 to see a film there; I wouldn\u2019t even pay half that much for the experience.\n\n+++\n\nI needed to clean my phone screen during the week (I keep my phone in an Otterbox Defender because I\u2019m a klutz, but dust and grime can still get in) so I went for the microfibre cloth I keep in my camera bag, which led me to checking if the battery in my DSLR still had any juice \u2014 lo and behold, it did! Just enough, even though I last used it around two years ago.\n\nThat\u2019s pretty amazing for an 11-year-old piece of modern electronics. It\u2019s a Canon EOS 450D and it really has been one of my better purchases. I should also use it more, now it\u2019s got a fully charged battery again. The case just needs a little love as the stitching came off one of the velcro fasteners. Nothing that can\u2019t be fixed.\n\n+++\n\nAs I finish this off, it\u2019s a bank holiday here, so I\u2019ll be spending the rest of this afternoon watching Tripleman\u00eda.",
"value": "After my previous tribulations, I finally got Webmentions (or at least pings between my own entries) to display on my posts. That involved a lot of trial and error to find the right PHP code to display comments in WordPress, which is a lot more difficult than you might imagine. \n\nI suppose the presumption is that 99% of users will just install a theme someone else has written, while the 1% that create themes are already versed in PHP \u2014 leaving the likes of me out in the cold, more or less. Alas, another example of the advancing web pulling up the latter behind it. (See also: people who compress their CSS into an unreadable block simply to save a few kilobytes \u2014 why?!)\n\nAnyway, since I only want to display Webmentions and not actual comments, I kept the code as simple as possible, and once I cracked the logic of what to put where, it worked like a charm. (I\u2019ve since changed it to also display my older trackbacks/pingbacks, but I might turn that off as the output is on the ugly side.)\n\nThe next step was styling up the generated text as I wanted, and that part went a bit easier than expected. An addition I made to my functions.php file while I was figuring all this out generates enough distinct class tags that applying CSS to the required elements was a simple enough task, though ultimately it\u2019s a bodge job (using the display:none property for bits that are still visible in the HTML source, for instance) because the code that the Webmentions plugin generates cannot itself be edited through WordPress settings. More control over that part would be helpful \u2014 perhaps via functions.php? -- especially since there\u2019s an errant capitalisation of \u2018article\u2019 that I can\u2019t ignore.\n\n+++\n\nLast Tuesday I went to Rathmines for the press screening of the new Quentin Tarantino film. Actually, I took the Luas (right around the corner from where my coach drops me off) to Ranelagh and walked the 10 minutes from there to the Stella Theatre. Sony laid on breakfast at the Stella Diner next door, which if I\u2019m honest was my main reason for going; QT I can take or leave. I filled up on buttery, peppery scrambled egg.\n\nThe film, as it happens, is one of QT\u2019s better ones (I\u2019ll be writing up my review this week) but the Stella cinema was, in retrospect, not the best place to see it.\n\nThe building looks fabulous; the new owners did a fantastic job with the theme and the furnishings. Seats have oodles of legroom, space to put your things and ottomans to put your feet up (they open for storage, too). But the place ultimately tips over the edge of form over function. The huge leather armchairs are too roomy to get a comfortable viewing position, and make it far too much a solitary experience even if you were with a friend or loved one. And the resonance in the auditorium made the dialogue in the film hard to hear quite often. Apparently tickets cost around \u20ac20 to see a film there; I wouldn\u2019t even pay half that much for the experience.\n\n+++\n\nI needed to clean my phone screen during the week (I keep my phone in an Otterbox Defender because I\u2019m a klutz, but dust and grime can still get in) so I went for the microfibre cloth I keep in my camera bag, which led me to checking if the battery in my DSLR still had any juice \u2014 lo and behold, it did! Just enough, even though I last used it around two years ago.\n\nThat\u2019s pretty amazing for an 11-year-old piece of modern electronics. It\u2019s a Canon EOS 450D and it really has been one of my better purchases. I should also use it more, now it\u2019s got a fully charged battery again. The case just needs a little love as the stitching came off one of the velcro fasteners. Nothing that can\u2019t be fixed.\n\n+++\n\nAs I finish this off, it\u2019s a bank holiday here, so I\u2019ll be spending the rest of this afternoon watching Tripleman\u00eda."
}
],
"summary": [
"After my previous tribulations, I finally got Webmentions (or at least pings between my own entries) to display on my posts. That involved a lot of trial and error to find the right PHP code to display comments in WordPress, which is a lot more difficult than you might imagine. I suppose the presumption is […]"
],
"category": [
"Self",
"blogging",
"code",
"design",
"personal",
"weaknotes"
]
}
}
]
}