#wordpress 2018-07-01

2018-07-01 UTC
#
jackjamieson
GWG: Still wrapping my head around things. I've been looking at the webmention plugin and it is clearer to understand than the micropub plugin I was referencing before
#
jackjamieson
Leaning about the WordPress REST API now
#
jackjamieson
*learning
#
GWG
jackjamieson: There is a reason I want to rewrite the Micropub plugin
#
GWG
It wouldn't add any features per se, but it would be easier to work with
#
jackjamieson
The REST API is definitely clearer to understand
#
jackjamieson
I've created an endpoint and can identify query parameters and respond accordingly, but I'm still having trouble handling authorization with IndieAuth
#
GWG
jackjamieson: You don't need to. If the IndieAuth plugin is enabled, it can handle it.
#
GWG
Just use lines 171 through 179
#
GWG
That will work for now
#
jackjamieson
That's what I've been trying, but get_current_user_id() returns 0 -- I'm trying to figure that out now
#
GWG
Well, we need more context around that, I think. Some websites get that 401
#
jackjamieson
When I try to log in with monocle, I see the indieauth screen and can click through to authenticate, but then I get an error screen from Monocle...
#
jackjamieson
"code":"indieauth.user_not_found","message":"User Not Found on this Site","data":{"status":"401","response":"http:\/\/jackjamieson.net\/YarnsTesting\/"
#
jackjamieson
I was thinking I'd try to chip away at this a bit more, and then post a longer excerpt of the code to GitHub to see if you (or anyone) can spot what I'm missing
#
GWG
jackjamieson: I might be able to suggest something quickly.
#
jackjamieson
Awesome! I'm all ears
#
GWG
Put your website URL into your user profile.
#
GWG
Tell me if that works.
#
jackjamieson
Not yet, I'll try clearing cookies and logging into monocle again
#
GWG
It's a problem on the WordPress side, that it isn't associating the URL with the user account
#
jackjamieson
Hmmm. I can, however, authenticate to Quill using the micropub plugin and this site
#
GWG
I'm wondering if it should always return the author URL
#
GWG
Odd.
#
jackjamieson
I'm testing this out on a temporary site, so I'll also give it a try on my main site since it's set up less haphazardly
#
jackjamieson
Weird, on my main server I get a 403 forbidden
#
jackjamieson
Oh wait, it's still trying to connect to aperture, I'll have to fix that
[jgarber] joined the channel
#
jackjamieson
Removed all references to aperture on my site but Monocle still tries to use it. Probably not the main fix anyway so I'll go back to my testing site
#
GWG
I want to figure out how to finish the Vouch receiving feature
#
jackjamieson
How's that coming>?
#
GWG
Been thinking about it. I finished most of it when I was at IWS. Just need to refine it.
#
jackjamieson
That's good! I'm looking forward to trying it. What's left to refine?
#
GWG
Well, it is a receiving Vouch system, not a sending one.
#
GWG
I just want to look at the parameters a bit more.
[schmarty] joined the channel
#
jackjamieson
Cool, well I'm looking forward to installing it once it's ready
#
GWG
It will be a PR to the webmention plugin, so it will install for you.
#
jackjamieson
Ah, that makes sense
#
GWG
Right now, it doesn't approve Vouches, only rejects them.
#
GWG
It needs the option to auto-approve Vouches before I submit the PR
tantek joined the channel
#
jackjamieson
Looking at /vouch now to see how it works
#
GWG
jackjamieson: I rewrote the page after the session. I'm hoping it is accurate. I did ask tantek, who mapped out the original description, to have a look when he had a moment. Curious to see what he thinks of my update
#
GWG
I hope I understand it now
#
jackjamieson
Looks interesting, I haven't looked at vouch much before. The wiki page makes sense to me, but I'd probably have to see it in action to follow it properly
#
jackjamieson
Anyway, I've got to get going for now. Thanks for the suggestions with indieauth β€” I think I'm on the right track but still getting that 401. Since Micropub is working correctly it's probably something on my end.
#
GWG
That 401 is our biggest issue with IndieAuth
#
GWG
I need to solve it
#
jackjamieson
I've got a bit of time tomorrow so I'll see if I can make any more progress. And if I can't crack it I'll upload to github and see if you can spot anything I'm missing
#
GWG
I want this, so I want to help
#
jackjamieson
It is typically that specific sites *always* get a 401?
tantek joined the channel
#
jackjamieson
Anyway, I've got to run. I'll let you know how it's going tomorrow. Thanks again for all your help. I think I've got a fairly clear idea of how to proceed once this auth stuff is resolved, so hopefully I can make steady progress from there
#
GWG
jackjamieson: Yes. It is usually based on the access token
#
jackjamieson
Ah, then my issue is probably different, since micropub has no issues. That's good news since I just have to find what I'm doing wrong
[miklb], [jgarber] and [jgmac1106] joined the channel
#
[jgmac1106]
I am bout 50/50 on micropub authorization. Getting bettet
#
GWG
[jgmac1106]: I'll keep working on it
[dougbeal] joined the channel
#
[jgmac1106]
Weird was I can do all of Indigenous, no OmniBear, half of quill
#
[jgmac1106]
Indigenous highest priority so I am cool
#
[dougbeal]
Is there a way to create a Kind template, specifically I would like to autofill some stuff if an Issue is selected
#
GWG
Autofill?
#
GWG
Are you referring to input or output?
#
[dougbeal]
I mean, if I select Issue Kind, could strings be inserted into the post editor?
#
GWG
What strings?
#
GWG
I am trying to understand what you want to accomplish
dougbeal|mb1 joined the channel
#
[dougbeal]
Need markup for github issue syndication: https://brid.gy/about#github-issue-comment
#
[dougbeal]
Maybe a bookmarklet?
#
dougbeal
That would be handy if there was a link to the project repo that could be autodetected
#
GWG
It already marks up for that, or should
#
GWG
You want to customize the output, not the input
#
dougbeal
Idea: change the dashboard even feed to Indieweb events!
#
aaronpk
dougbeal++ amazing is that possible?
#
Loqi
dougbeal has 4 karma in this channel (6 overall)
#
aaronpk
That always annoys me in my wordpress installs
#
GWG
aaronpk: What does?
#
dougbeal
Wordpress Events and News
#
GWG
You can hide it
#
GWG
aaronpk: You can add your own. pfefferle made a dashboard widget for Indienews
#
dougbeal
GWG ooh, is it a plugin?
#
GWG
Yes. In his Github repo
#
aaronpk
Oh awesome
#
aaronpk
is that listed in the Wordpress plugin page on the wiki?
#
aaronpk
we need one that parses indieweb.org/events
#
GWG
pfefferle used the WordPress RSS parsing functions.
#
Loqi
[pfefferle] wordpress-indienews: Automatically send mentions to IndieNews
#
dougbeal
How different are dashboard and site widgets?
#
GWG
Not too different, but different
#
aaronpk
Did I make an RSS feed for indienews?
#
GWG
There you are....he ran it through granary
#
dougbeal
What is granary
#
Loqi
granary is a library and REST API that frees you from social network snowflake API and exposes the sweet social data foodstuff inside as HTML and JSON with microformats2, ActivityStreams, JSON Feed, Atom, XML, and more https://indieweb.org/granary
#
GWG
PHP-MF2 isn't bundled with every plugin. But it should be bundled with more
#
GWG
I wish WordPress had better dependency management instead of requiring independent bundling.
[jgmac1106] joined the channel
#
dougbeal
Gasp, wordpress doesn't render punycode!?!?!?
#
dougbeal
ah, there is a plugin for that
#
dougbeal
last updated 8 years ago, tested up to 3.0-beta2
[eddie] and [Vanessa] joined the channel
#
[Vanessa]
Little ironies: thought I might use Indiebookclub, but although it logs into my site and a token shows in WordPress, posts don't get there. Yet, I successfully managed to post using Quill for the first time, which has never worked before. I'm sure there is some logic somewhere...
xenial64-user2 joined the channel
#
xenial64-user2
any web expert here
[kevinmarks] and [jgmac1106] joined the channel
#
[jgmac1106]
[Vanessa] make sure to join the WordPress Webring https://www.wordpressindiewebring.jgregorymcverry.com
#
[jgmac1106]
Congrats on creating chat name and wiki page
[Vanessa] joined the channel
#
[Vanessa]
[jgmac1106] Ok, I'll try to figure that out later - heading out into the sunshine now. Not entirely sure what it is or what it's for, so I'll read up this afternoon. See if I can finish my Indieweb week on a roll!
#
[jgmac1106]
[Vanessa] it is nothing. A practice from the 90s and 00s. It is everything. A collection of all the IndieWeb WordPress blogs out there. Right now n=3. Enjoy 🌞
#
[jgmac1106]
I just dusted off an old plug in. You join that WordPress site, I add you to ring, you add table linking you to every other site.
#
[Vanessa]
[jgmac1106] I do vaguely remember the terminology. πŸ˜€
[manton], davidmead, [jgmac1106] and [Vanessa] joined the channel
#
[Vanessa]
I add table? [jgmac1106]
davidmead joined the channel
#
[jgmac1106]
Yeah I put in a widget. Can go anywhere on homepage
davidmead, [barryf] and [jgarber] joined the channel
#
[Vanessa]
But what does it have to contain?
#
Loqi
πŸ›οΈπŸ‘¨β€πŸŽ“πŸ•ΈοΈπŸ˜ˆπŸ”ŽβœοΈπŸ€¬πŸ—ΏπŸ•ΊScholar. Teacher. Meaning maker. Friendly devil. Skilled researcher. Writer. Truth Speaker. Big headed dancer. (needed excuse for Eastern Island emoji. #PDPfest
#
[jgmac1106]
Just copy everything and style way you want. Off to beach but can help at our common time tomorrow
#
[jgmac1106]
Oops wrong post
#
Loqi
@CathieLeBlanc <table border="0" cellpadding="2" cellspacing="0" style="border:0px hidden #a0b0c0;margin:0px 0px;font:normal 12px Arial,sans-serif;background:#d0d7df none;color:#000000; width:250px !important; border-spacing:0px !important;"> <tbo...
[gerwitz], [eddie], [chrisaldrich], mblaney_ and [dougbeal] joined the channel
#
[dougbeal]
[Vanessa] does the book shown up in your indiebookclub.biz profile ?
[Vanessa] joined the channel
#
[Vanessa]
[dougbeal] Yes, it does, just can't seem to get it to my site.
#
[dougbeal]
Maybe [gregorlove] can peek into the logs and see if there are any errors.
[manton] and dougbeal|mb1 joined the channel
#
[dougbeal]
[Vanessa] Gregor in this channel according to Slack, would you mind asking in #indieweb
[schmarty], [grantcodes], [cleverdevil], [kim_landwehr], davidmead, [eddie], [miklb] and tantek__ joined the channel