#wordpress 2018-08-02

2018-08-02 UTC
neo-cool23, kashike24 and jgmac1106 joined the channel
#
GWG
dougbeal: I have been starting to integrate some features into my work.
BlueShark26, d__b and ihavoc joined the channel
#
jgmac1106
is it an omen when the Slack giphy all serves up a gif of WordPress for the search term “Break All the Things”?
biberao8 joined the channel
#
GWG
jgmac1106: How goes the good fight?
#
jgmac1106
we will see, the class is going well, they haven’t tarred and feathered me yet, webmentions going through some getting caught in spam…the no rss feed…failing curl test..I have no idea what t do about that. I throw https://jgregorymcverry.com/feed into a broswer and it reads it fine…but everyone says they don’t get it
#
dougbeal
jgmac1106: its a guetenberg prophecy ;)
#
GWG
Odd.
#
jgmac1106
dougbeal++
#
Loqi
dougbeal has 5 karma in this channel (14 overall)
#
jgmac1106
I will play some other time and just send webmentions back and forth to each other…
#
jgmac1106
doing a vHWC now but its more DM support than video
#
GWG
jgmac1106: Did I ever show you my Webmention demo sites?
#
jgmac1106
no, look foward to it, grades due a midnight for my last class and I am doing vHWC for my current class so gonna drop off a bit
#
GWG
jgmac1106: It was for a demo a few years ago
#
jgmac1106
but how [chrisaldrich] is taking my class will be perfect proof of concept to show how powerful webmentions can be in learning spaces
#
dougbeal
how is the feed failing?
#
jgmac1106
i dunno I tried webmention.rocks again today first test: https://webmention.rocks/test/1 never gotten it to work….gRegor has told me for a bit he can’t get my feeds, then other tried a curl test and said I timeout…didn’t know if both were related
#
Loqi
[Webmention Rocks!] Discovery Test #1
#
jgmac1106
pinged my shared hosting provider, “they need more detail” but I get webmentions..I think I send them
Boulet8, jgmac1106 and [miklb] joined the channel
#
[miklb]
I’m still not clear the plan for rel=alternate in WP.
#
Loqi
[miklb]: I’m still not clear the plan for rel=alternate in WP.
#
Loqi
Welcome, [miklb]. We've had an influx of IRC spam recently, and you were not yet recognized as a non-spammer. Your previous message wasn't sent to the channel, but I'm repeating it below so everyone can see it. You are now marked as verified, so your future messages will be sent as normal.
#
GWG
How so?
#
[miklb]
is it meant to replace mf2 in the theme completely?
#
GWG
Supplemental
LewsThanThree26 joined the channel
#
[miklb]
supplemental to the point the uf2 plugin would cover the bases?
#
GWG
Maybe
#
[miklb]
OK. so kinda an enhancement but status quo otherwise. Cool. Just wasn’t sure what direction to move in, but seems just stay on my path.
#
GWG
Basically compat movd
#
GWG
move
#
[miklb]
I honestly don’t know what that means.
#
[miklb]
I was really hoping someone would say that the 2 combined would totally satisfy mf2 for a WP theme. Still not sure what would need to be done for it make it so.
#
GWG
It is an alternate view of a page
[snarfed] joined the channel
#
aaronpk
the rel=alternate thing is definitely an experiment, but if it works, it's a way to avoid the theme needing to add mf2 at all
#
[miklb]
that’s what I thought I was gathering from the conversation the other night, but wasn’t sure.
lbft20 joined the channel
#
GWG
Exactly. A fallback
#
[miklb]
what triggers the fallback?
#
GWG
[miklb]: It's like an RSS feed
#
aaronpk
the webmention receiver would have to look for it
#
GWG
It's a link inside the HTML that says there is an alterate way to view the page
#
[miklb]
I understand what it is, I’m asking how does the parser know to use the fallback?
#
aaronpk
it just decides to
#
aaronpk
I had to update xray to look for the rel=alternate link and now it uses that instead of parsing the HTML if it's there
[ryan339] joined the channel
#
GWG
aaronpk: That is what I want to add
#
GWG
But I have the other project?
#
[miklb]
sorry to be asking so many questions, just a potential dramatic change so I’m trying to figure out how to move forward.
#
GWG
[miklb]: Think of how micro.blog using a jsonfeed
#
GWG
Same idea
#
[miklb]
no, not really from what I’m hearing.
#
[miklb]
if the goal is for every parser to adopt rel=alternate then it wouldn’t matter how good the mf2 in the theme is, it would never get looked at. If it will be a maybe/maybe not every parser, then there still needs to be good mf2 in WP themes. In which case, I’m back to my question where are the conflicts with WP core mf1? Or are there anymore.
jack3 and surfist18 joined the channel
#
GWG
[miklb]: I intend to cover both
Looking joined the channel
#
[miklb]
alright, well, I’ll check back in a week to see if there’s been anymore discussion about the plan. At this point, I’m really hoping that rel=alternate works out, no one has to worry about mf2 in their theme, and I can move back to a static site.
#
dougbeal
wouldn't rel=alternate uf2 give more data?
[xavierroy], revi22, rogue, F4RR3LL, nullcone, Matthew_9, Kirito, Arokh3, nope__ and [matpacker] joined the channel
#
[matpacker]
Just had DreamHost migrate me over to a VPS, and now all my endpoints are broken and the headers wont authorise...haha
albel7275, anticrisis, [ryan339], iambismark, [matpacker], zmachine, Guest5020, szt20, ablackack17, chalcedony, fydel, bodeezl, jeremycherfas, interd0me, Guest88897, Dominian21, hggdh23, pendo32415, Boulet28, jgmac1106, orb, strugee24, Cprossu29, zz_ka6sox, Tabmow24, donblanco and bjs26 joined the channel
#
GWG
Looking at the next piece of Micropub
beaver12, GorillaWarfare2, tsp, lucy_, tomek15, jgmac1106, grit2, ozymandias27, Guest43987, ori18, dougbeal|mb1, [kevinmarks], Praise16, Xe2 and [dougbeal] joined the channel
#
[dougbeal]
[matpacker] is ssl working? That sounds like it could be a bad cert, assuming all the enpoints are https
Tourist24, Cprossu17, emerson, jackjamieson, barlas2, vamiry, Nightmare19, vdamewood, [kim_landwehr], [kevinmarks], khronosschoty16 and [metbril] joined the channel
#
[metbril]
Is there already a plugin that does this or another way, other than editing the template?
#
[metbril]
If I want to use Aperture as a Microsub server, I need to a token endpoint to my <head> section. Just like the auth endpoint.
#
[metbril]
Like in
#
[metbril]
`<link rel="microsub" href="https://<URL to microsub server>">`
#
aaronpk
shoot, I think the slack bridge isn't working with the channel mode
#
aaronpk
can you repeat what you first said?
#
[metbril]
If I want to use Aperture as a Microsub server, I need to a token endpoint to my <head> section. Just like the auth endpoint.
#
[metbril]
Is there already a plugin that does this or another way, other than editing the template?
#
[metbril]
Like in
#
[metbril]
`<link rel="microsub" href="https://<URL to microsub server>">`
#
aaronpk
the indieauth plugin does this for you
#
[metbril]
Sorry, I did not mean the toke endpoint, but the link to the microsub server
#
[metbril]
I don't want to hardcore it
#
[metbril]
Hard code
#
aaronpk
you should be able to paste that html in any widget thingy
#
sknebel
don't think there's a plugin yet, but you should be able to use any any widget etc where you can put arbitrary html
#
[metbril]
It doesn't need to be in the head section?
#
[metbril]
Anywhere on the page will do?
#
aaronpk
no I don't think so
#
dougbeal
metbril: I have all that stuff in a Custom Html widget
#
aaronpk
hm should I make a really simple plugin that just sets that link to aperture's endpoint?
#
[metbril]
I will give it a shot
#
[metbril]
I authenticated with Aperture and Indigenous. Next step: find some interesting channels. Any suggestions?
#
aaronpk
if you use micro.blog you can subscribe to your micro.blog timeline
[ryan339] and [jgmac1106] joined the channel
#
[jgmac1106]
I am not sure about webmentions and semantic link backs but from what I am reading we might be able to get mf2 done correctly in Gutenberg by just creating an hentry block... And pulling in all the Metadata from elsewhere... Or by doing a series of blocks. You can use classes and attributes and make it so other plugins can not style or change specific blocks
#
[jgmac1106]
Not sure if this could be a plug in that gets hentry correct for article, note, photo, bookmark, and reply or would still require a theme... Gonna ask around
#
[metbril]
I must be doing something wrong. I have added my own (json) feed to aperture and indigenous, monocle and alltogethernow all show no posts. The feed has 10.
#
aaronpk
[metbril]: in aperture does it show the number of posts?
#
aaronpk
you should see something like this in aperture's dashboard https://media.aaronpk.com/Screen-Shot-2018-08-02-09-54-47-WuQA2h5H4F.jpg
#
[metbril]
It shows jsonfeed 10 entries
boser3 joined the channel
#
aaronpk
then that is very strange that they arne't showing up in the clients
#
[metbril]
I have added the link from the aperture dashboard to my homepage.
#
[metbril]
The one ending with the '/xx' digits.
#
aaronpk
and you don't get an error logging in to monocle?
#
[metbril]
No, just a blank page with the reload button
#
[metbril]
I also tried following the Microformats feed, no change.
#
[metbril]
And follo your Microformats feed, which has 435 entries that don't show up in the client
#
aaronpk
oh, that blank page is actually supposed to be the list of channels
#
aaronpk
also why are the slack images not coming through the bridge anymore!
#
aaronpk
[metbril]: can you go to https://monocle.p3k.io/debug and screenshot that?
[aaronpk], [iambismark], [kim_landwehr] and [pfefferle] joined the channel
#
[pfefferle]
[jgmac1106] this is not how Gutenberg works... a block is not a whole entry, it is more a paragraph... if you have a text with two paragraphs and an image, Gutenberg creates 3 blocks... so it makes it even harder....
#
[pfefferle]
[jgmac1106] and even if we find some hacky solution, like with wp-uf2 we still have the problem with title, author informations, dates, ...
#
[pfefferle]
[jgmac1106] and if the theme supports microformats1 we might have side effects with backwards compatibility modes, because the Gutenberg-mf2 stuff will be on other html elements than the mf1s...
#
[pfefferle]
Gutenberg is nice, for a reply context block or semantic linking or... but not to try to fix the semantics of a theme...
[quinnvinlove] and [jgmac1106] joined the channel
#
[jgmac1106]
Wow.... They are going to make a block for each individual html element.... Only if we had someway to group strings of text in something like....an html element.
#
[jgmac1106]
[pfefferle] I was hoping when I read blocks supersede html.... Which just sounds crazy... It could work....darn...Hopefully the other avenues work
#
[pfefferle]
I invested a lot of time, to think about/build a general way of making themes mf2 compatible and ended up, building two themes from scratch, because everything else has not really worked...
#
[jgmac1106]
Yeah..and they seem to be working for most and I know folks hate page builders but it seems to be providing the design flexibility folks want.... I just apply to only static pages as safety
#
[jgmac1106]
[pfefferle] what is the difference when folks say uf2 and mf2?
#
[pfefferle]
Nothing, there was a time some folks used uf, because the „u“ looks like the „µ“ (https://en.wikipedia.org/wiki/Mu_(letter))
#
[pfefferle]
I think mf2 is more common these days
#
[jgmac1106]
Okay thank you. It is going okay in my class. Too many chose independent Publisher. Tryanny of tutorial. Actually going to ask folks to switch to SemPress or 2016.. Just got to let them calm
jgmac1106 joined the channel
#
[pfefferle]
Don‘t forget ZenPress, it is very similar to Independent Publisher and fully supports Gutenberg
#
[pfefferle]
It should also support static front pages now... (please re-check ;) )
[metbril] joined the channel
#
[metbril]
[aaronpk] screenshot of monocle debug
#
aaronpk
remove <link rel="microsub" href="https://aperture.p3k.io"> from your site
#
aaronpk
then fix rel="microsubb" to rel="microsub"
#
[metbril]
You looked at the page source 😉
#
[metbril]
I had that earlier but that did not work out too. I will change back and share a screenshot again.
#
aaronpk
well it certainly won't work the way it is now
#
[metbril]
I changed it back, that did not work. Then signed out and back in and that worked.
#
[metbril]
Learned: to sign up have the first microsub, after that change and login again.
#
aaronpk
right, monocle will find the endpoint when you log in
#
aaronpk
the order is: set up the indieauth plugin, log in to aperture, add the microsub endpoint to your site, then log in to monocle
#
aaronpk
you should never have <link rel="microsub" href="https://aperture.p3k.io"> since nothing ever instructed you to do that
dougbeal|imac, jackjamieson, [quinnvinlove] and [eddie] joined the channel
#
aaronpk
I had an interesting idea for a wordpress plugin for aperture
#
GWG
Oh?
#
aaronpk
can someone who knows these things point me in the direction of the hooks I would need to make this work? actually I might be able to copy stuff from the webmention plugin...
#
aaronpk
i'd like to make an Aperture plugin that when you install it, it goes and signs up for an account on my aperture instance, and then can write the <link> tag into the page
#
aaronpk
the way I want the signup to work is the plugin would ping aperture.p3k.io after it's installed, and I can do a little two-way handshake to set up the account
#
aaronpk
so you'd never actually need to visit aperture.p3k.io to use it
#
aaronpk
so basically I need to know: 1) how do I write a <link> tag into the html of just the home page? 2) is there a hook that runs just once after the plugin is installed, and 3) how can I make an HTTP route like the webmention endpoint
#
aaronpk
oh and 4) how does the plugin know the home page URL the site is installed at, including http/https and the subfolder
#
GWG
I can answer those
#
GWG
1. wp_head
#
GWG
2. register_activation_hook
#
GWG
3. rest API
#
GWG
4. home_url
#
GWG
or site_url
#
aaronpk
oh and is there a place the plugin can store stuff?
#
aaronpk
can I use the user meta table but set user=0 or something?
#
aaronpk
wait no that's the "options" table that I want right?
#
GWG
Yes
#
GWG
I can help check the code
#
aaronpk
thanks, give me a few minutes and I should have something hacked up
#
aaronpk
I think this will require almost no UI
#
GWG
Exactly
#
GWG
I need to look at Microsub
#
aaronpk
this indieauth plugin has a bunch of the stuff I need in it :)
[matpacker] joined the channel
#
[matpacker]
aaronpk:++
#
aaronpk
oh I need to know what the indieauth identity for the site is... GWG is there a way to ask the indieauth plugin for that?
#
[matpacker]
One day I will get the syntax correct! aaronpk++
#
[matpacker]
Today is not that day!
#
aaronpk
like if it's in single-user mode or multi-user mode
#
GWG
aaronpk, no, but good idea
#
GWG
I should have a function for that
#
aaronpk
yeah i'd love to be able to just get back the indieauth URL for the current user
#
aaronpk
I think I will just assume single-user site right now
#
GWG
Made a note
#
GWG
We don't have that
#
GWG
But good idea
#
[matpacker]
Favourite cache plugin for WP?
#
GWG
I don't use one
#
dougbeal
I wonder how much traffic before you need one
#
gRegorLove
I've used W3TC on client sites. It's pretty good
#
GWG
It's popular
#
GWG
I use fastcgi microcaching in Nginx
#
[matpacker]
i've just noticed that the dashboard is slow af, along with the site, since moving over to a dreamhost vps. Figured I would setup WP Super Cache or similar, just to speed things up a little.
#
dougbeal
matpacker: what are that stats on your vps?
#
GWG
How so?
#
aaronpk
how do I use it?
#
GWG
I had trouble too, but you are aaronpk
#
GWG
To do what?
#
aaronpk
to return a response
#
GWG
You return it from your handler
#
aaronpk
right, but like is there a constructor that I pass arguments to?
#
aaronpk
there's no usage information on that page at all, not even an example
#
GWG
Look at the wp_http_response class it inherits