#wordpress 2018-01-07

2018-01-07 UTC
#
GWG
I need to enhance the rss feed possibly
[kevinmarks], tantek, sebsel, mblaney, wagle, chegalabonga, raretrack, davidmead and [miklb] joined the channel
#
GWG
[miklb]: Hello. May I add you to my poll, for a moment?
#
GWG
Part of my work this weekend has been on Weather
#
GWG
Weather is inside Simple Location.
#
GWG
What sort of personal locations do you want to or like to share?
#
GWG
I'm trying to design the settings to cover people who want to and don't want to share
#
[miklb]
Personally I would go with a loose location as default with option to be more specific.
#
GWG
Right now, I go with the original WordPress Geodata permissions expanded
#
[miklb]
I don’t know what those are
#
GWG
geo_public indicates that Private is 0, Public is 1, and if missing or not set to 0, assume public
#
GWG
I expanded that definition to additional granular publics at either non-zero numbers.
#
[miklb]
sure. I thought you were discussing how specific is the location.
#
GWG
Well, the feature that links into weather that I'm set to implement is geodata support for users, which means I'm logging the last location a user was reported at.
#
GWG
That's the feature I'm trying to flesh out.
#
GWG
Settings wise.
#
GWG
I was looking at granularity for it as well, but I have to start with the extent people want to
#
GWG
A. Automatically set a default location for posts based on the user.
#
GWG
B. Is this a permanent default location or 'last seen'?
#
GWG
C. If it is last seen, when does that expire, if ever? If you check in in Fiji, and you live in Tampa, and you don't update your location for a month, that would mean all posts would be tagged as Fiji...
devsl and tantek joined the channel
#
GWG
Am I overthinking this?
#
GWG
Hello, devsl.
#
devsl
Hi :)
#
devsl
I got all of the plugins, but can’t find any settings, except for maybe Bridgy
#
devsl
Any tips?
#
GWG
devsl: What settings are you looking for?
#
GWG
If you installed the Indieweb plugin, all settings are under the Indieweb menu, except for the Webmention ones, which are under 'Discussion'.
#
devsl
I installed IndieWeb, Webmention, Semantic Callbacks, Syndication Links, Micropub and Bridgy Publish
#
GWG
devsl: What do you want to do specifically? Happy to help.
#
devsl
I want to set up Webmention and Micropub for my site, so I can use it with Micro.blog, but can’t figure out what to do exactly
#
devsl
This is the site: slsrepo.com
#
devsl
Micro.blog posts are on slsrepo.com/category/micro-blog-posts
#
GWG
Well, Webmention will work out of the box if you enabled the options in Discussions to "Attempt to notify any blogs linked.. " "Allow link notifications.." and "Allow people to post comments"
#
GWG
Lower down on the same page, you'll see the ability to enable Webmentions for Pages, etc.
#
GWG
Micropub has no settings
#
GWG
Yet
#
GWG
Enable it and it is on.
#
GWG
But bear in mind, Micropub is a Micropub server, to post to a WordPress site.
#
devsl
how do I know what is my Micropub token?
#
GWG
If you want to post to Micro.blog, that is a Micropub client.
#
GWG
devsl: Micro.blog asks for a token?
#
GWG
I really should sign up for an account just to see how the two work together.
#
devsl
My Micro.blog is linked to my WordPress, so new posts on WordPress show up on Micro.blog
#
devsl
It’s pulling the posts from WordPress with my RSS/JSON Feed
#
GWG
devsl: So, if you enable the Micropub server, you can use a Micropub client to post to the WordPress site, and they will show up on Micro.blog
#
devsl
But to post from a third party app I need my Micropub token
#
GWG
devsl: Which app? Most of them will get the token directly.
#
devsl
Micron for Micro.blog
#
GWG
devsl: Got a link to that?
#
GWG
I'm interested to see. I can tell you how to manually get a token, but I'm surprised the client doesn't open up a login so it can get it itself.
#
devsl
chrislopez.micro.blog/micron/
#
devsl
You should definitely sign up for Micro.blog, It’s a great service with a really nice (but currently small) community and it’s very open.
#
Loqi
yea!
#
GWG
devsl: I met Manton a few weeks back and saw some demos.
#
devsl
I can send you a screenshot of the app, since it’s currently in beta
#
devsl
the Micron app, that is
#
devsl
if I want to publish to a site other than a hosted micro.blog, I need a URL and Micropub token for that
#
GWG
It asks for a Micropub token?
#
GWG
Interesting.
#
GWG
Regrettably, I'm not an iOS user.
#
GWG
I hope before it leaves beta, he implements the full spec to get the token for you.
#
sknebel
what is gimme a token?
#
Loqi
gimme a token is a helper to obtain a an access token from your IndieAuth endpoint: https://gimme-a-token.5eb.nl/ https://indieweb.org/gimme_a_token
#
devsl
I can suggest that for him - he is very fast at fixing bugs/implementing new features
#
sknebel
^^^ you can use that to get a token from your site, but as GWG says, hopefully that gets fixed
#
GWG
sknebel: I was going to suggest Gimme a Token, but is Micro.blog using the Indieauth.com token endpoint or another one?
#
GWG
I'm not sure.
#
GWG
As I said, I should sign up to play with it.
#
GWG
But all the nice tools are for Apple products.
#
GWG
And I'm a Linux/Android user, so I can't try them out
#
sknebel
GWG: for posting to wordpress, what token endpoint is used by micro.blog doesn't matter
#
GWG
sknebel: Good point. But does this beta app do that?
#
devsl
It’s completely free for WordPress/Tumblr/Movable Type/Any other site that outputs RSS/JSON feeds
#
GWG
I'm probably overthinking it
#
devsl
I think I confused you a bit
#
GWG
devsl: It's possible, but I also confuse myself sometimes.
#
devsl
Micro.blog itself doesn’t need the token, it fetches it for you
#
GWG
I did just sign up for an account, but I'm not feeding it yet.
#
GWG
Might as well reserve the name
#
devsl
you just need a feed to add posts to the site without a hosted micro.blog
#
devsl
but that Micron app I’m beta testing asks for a token
#
devsl
What do I fill in the Auth field of Gimme a token?
#
GWG
I wonder what the developer had in mind.
#
devsl
no idea :P
#
GWG
Could it be the token in account settings under micro.blog?
#
GWG
I see one there
#
GWG
devsl: I did hook some of my site up to Micro.blog
#
devsl
the tokens in the account settings of micro.blog is just application passwords
#
devsl
the tokens in the account settings of micro.blog is just application passwords
#
devsl
since micro.blog doesn’t use password for user login, when you want to use a third party app you need an app password
#
devsl
I need a token generated for my WordPress site
#
devsl
I need a token generated for my WordPress site
#
devsl
why are my posts sent twice?
#
devsl
my messages, not posts
#
devsl
seems like it’s fixed
#
GWG
devsl: The Micropub server for WordPress uses Indieauth.com by default, so the Auth Endpoint in there by default is correct. Me is your URL. The default shoudl work.
#
GWG
devsl: If you want to see what Micropub can do, may I make a suggestion for you to test something?
#
devsl
sure
#
devsl
suggest away
#
GWG
There's a reference Micropub client at http://quill.p3k.io/ - Give it a shot quickly to see how the server part works for you. It does the token hunt seamlessly, and is a good comparison
#
devsl
btw, I tried gimme a token, the page at IndieAuth says micro.blog can’t be used for auth
#
GWG
devsl: Under your micro.blog settings, there is one for App Settings
#
GWG
At the bottom, it says "Indieauth lets you sign in with your domain name..." If you host your microblog on micro.blog...
#
GWG
If you add it there, it would workk.
#
GWG
However, if you want it to work with your wordpress site, you need to put in that URL
#
devsl
Just tried quill
#
devsl
It won’t create the post - it says 401
#
devsl
I did get the token generated from gimme a token
#
devsl
I need to use the access token part?
#
GWG
devsl: You logged in successfully to Quill and it got a 401 from your site?
#
devsl
yep
#
GWG
The only reasons why the Micropub server would return a 401 would be if the Access Token was not scoped properly or if the URL didn't match the site homepage or the user URL of any user
#
GWG
Go to your user profile and add the URL of the site to the URL field?
#
devsl
oh I see the problem
#
devsl
oh I see the problem
#
devsl
I used http://slsrepo.com and my site is https://slsrepo.com
#
GWG
If the http site redirects to the https site, it should figure that out, but currently it doesn't.
#
devsl
yeah, I redirect the http to https
#
devsl
and wordpress is on the https
#
devsl
I use the rel=me link to twitter as http though
#
devsl
I found your profile on Micro.blog, I see you are jewish :)
#
devsl
I found your profile on Micro.blog, I see you are jewish :)
#
devsl
I am too :)
#
devsl
I am too :)
#
GWG
devsl: Did it start importing stuff? Good
#
devsl
Yeah it imported a lot of things :)
#
devsl
Yeah it imported a lot of things :)
#
devsl
Yeah it imported a lot of things :)
#
GWG
I gave it Notes, Checkins, Likes, and Bookmarks
tantek joined the channel
#
GWG
devsl: But anything on the WordPress side I can definitely try to help with.
#
devsl
I’m gonna try the webmentions after I finish the Micropub :)
#
devsl
So, with the token I got from gimme-a-token
#
devsl
I need just the access token part? or the whole thing?
#
devsl
me=http%3A%2F%2Fslsrepo.com%2F&scope=create+update&access_token=alotoflettersandnumbers
#
devsl
this is what I got
#
GWG
Just the access_token
[kevinmarks] joined the channel
#
devsl
so, Micron doesn’t support pasting that access token, I need to manually type it in >.<
doubleloop[m] joined the channel
#
GWG
Does it work though?
#
devsl
About Webmentions, I replied to my test post, but I don’t see anything - do I need to configure bridge?
#
devsl
bridgy
#
devsl
Haven’t written the entire token in yet, so don’t know if it works
#
GWG
devsl: How did you reply?
#
devsl
On Micro.blog
#
devsl
You can see it on my profile - Micro.blog/devsl
#
GWG
devsl: The post on your site isn't marked up as a reply. And it doesn't link to anything, so it wouldn't have processed as a webmention
#
devsl
the post on the site is the first post
#
GWG
And where is the reply post?
#
devsl
I see it doesn’t show up on the website
#
devsl
It shows up on the apps, not on the Micro.blog website
#
devsl
wait
#
devsl
nope, don’t see it
#
GWG
Does it have a URL?
#
devsl
I think it does, but can’t see where to get it
#
GWG
In order for webmentions to work, it needs to find the link
#
devsl
also, followup on micropub, Micron didn’t work with it, said the details are invalid
#
devsl
I guess the issue is the same as it was with Quill
#
devsl
how should I fix it?
#
GWG
devsl: Set the URL in your user profile to the same one you are putting in
#
devsl
you mean on twitter?
#
GWG
devsl: In your WordPress user profile
#
devsl
on my WordPress profile it shows up
#
devsl
on my WordPress profile it shows up
#
devsl
followup on web mention - I got them!
#
devsl
they showed up in my comments to approve screen
#
devsl
sweet :)
#
devsl
look at my page now
#
devsl
slsrepo.com/micro-blog-posts/68806
#
devsl
yep :)
#
devsl
the two replies went in :)
#
GWG
There it is working as expected
#
GWG
Your reply was parsed and added as a comment.
tantek joined the channel
#
devsl
great, so the webmentions are working :)
#
devsl
Now, about micropub, what did say about the wordpress profile?
#
devsl
I have twitter showing up there
#
GWG
Yes, but the URL that Micropub uses to match user to site is your User URL
#
GWG
It is under Your Profile -> Website
#
devsl
yes, my website is the url with the https
#
devsl
on the profile, the website address is the site address with https
#
devsl
what’s next?
#
GWG
Then if you enter that as your domain in a Micropub client, it should let you post
#
GWG
Like Quill as a test
tantek and gRegorLove joined the channel
#
devsl
cool, so, Quill worked
#
GWG
devsl: We're getting there
#
devsl
but Micron still claims it’s invalid.
#
devsl
I’ll handle that with the developer :)
#
devsl
I’ll let him know - and request to make the app make the whole token generation :)
#
GWG
devsl: Or at least better documentation
#
devsl
so, what do I need more?
#
devsl
can you explain to me what each plugin does exactly?
#
GWG
devsl: Let's reverse the question
#
GWG
What do you want to do?
#
devsl
now that I got Micropub and Webmentions working (and by the looks of it, IndieAuth is working too), what other things do I need to make my site fully IndieWeb compatible?
#
devsl
What each plugin does?
#
devsl
What each plugin does?
#
devsl
Webmentions and Micropub, covered
#
GWG
IndieAuth the plugin just allows you to login to your site using an Indieauth server.
#
GWG
Webmention allows you to receive and send webmentions.
#
devsl
Syndication Links, Semantic Callbacks? Bridgy Publish?
#
GWG
Semantic Linkbacks makes it look pretty
#
GWG
Syndication Links optionally adds links to each post noting where it appears on another site. For example, Micro.blog, Twitter, etc.
#
GWG
Bridgy Publish allows you to easy publish using the Bridgy service
#
GWG
Which also, if you register, will pull back responses from Facebook, Twitter, Instagram etc back to your site
#
devsl
like the OwnYourGram site?
#
devsl
Import instagram posts to my site?
#
GWG
devsl: Bridgy is more for likes and replies than your posts
#
devsl
so the Publish plugin is for cross-posting? similar to JetPack Publicize?
#
GWG
devsl: It's a UI for the Bridgy site
drkokandy joined the channel
#
GWG
The text there might explain it better
#
devsl
I saw the site
#
devsl
ok
#
GWG
I, for example, post on my site, syndicate or cross-post to Twitter, for example, and pull back any replies using Bridgy to my version of the post
#
devsl
How is Bridgy different than Webmentions if it imports my likes/replies?
#
GWG
Bridgy turns other website responses into webmentions
#
GWG
Facebook and Twitter don't support webmention
#
devsl
oh ok
#
devsl
got it :)
#
devsl
what are Post Kinds, Microformats2, Simple Location?
#
Loqi
It looks like we don't have a page for "Post Kinds, Microformats2, Simple Location" yet. Would you like to create it? (Or just say "Post Kinds, Microformats2, Simple Location is ____", a sentence describing the term)
[kevinmarks] joined the channel
#
GWG
Simple Location adds location awareness to WordPress posts, comments, and users
#
GWG
Microformats2 adds markup to your theme if it doesn't support Microformats 2, which is what is used to figure out what a like is.
#
GWG
Post Kinds allows you to mark up posts as likes, checkins, replies, etc.
#
devsl
What are Microformats? those h-entry, h-card things?
#
Loqi
microformats are extensions to HTML for marking up people, organizations, events, locations, blog posts, products, reviews, resumes, recipes etc https://indieweb.org/microformats
#
GWG
devsl: Yes
#
devsl
So, I can add it to the theme without handling with the theme code? my theme is a mess :P
#
devsl
I’m just lazy when it comes to working on it
#
devsl
I mostly work on my iOS apps
#
GWG
devsl: That is what Microformats2 tries to do, but it is hard to do that in WordPress accurately, so inside the theme is better
#
devsl
So, I should write that support in my theme :)
#
GWG
If you can.
#
GWG
I've helped people with that if needed
#
devsl
In what ways can you help with that?
#
GWG
devsl: I've made a fork of three themes and redid them with microformats2. I know where to look
#
devsl
ah ok
#
devsl
my theme isn’t open source though
#
GWG
Well, that might be a problem if I am not able to see it.
#
GWG
If I can see the code, I can modify it
#
devsl
If you want, I can send you the code
#
GWG
Happy to try to help.
#
devsl
where/how to send it?
#
devsl
do you have dropbox? I can set up a shared folder
#
GWG
I have it, but I haven't used Dropbox in ages.
#
GWG
It used too many CPU cycles
#
devsl
what would be the best way to send it to you?
#
GWG
You should still be able to send it. I can download it from the website then
#
devsl
Oh ok
#
devsl
What is the email I should send it to?
#
GWG
My first name at my last name dot com
#
devsl
shared folder or zip file?
#
devsl
what do you prefer?
#
GWG
Zip
#
devsl
Sent
#
devsl
Did you get it?
#
GWG
I just got a notification about it
#
GWG
Isn't it 1AM there?
#
devsl
yes it is :P
#
devsl
I’m a night owl, occasionally
#
GWG
Just curious.
#
GWG
I'll have a look in a few minutes.
#
GWG
The theme is a few years old, from the looks of it.
#
GWG
Have to read through it to see how it was set up
#
GWG
Do you still need IE7 compatibility?
#
GWG
I see a bunch of stuff to support older browsers
#
devsl
Well, not really, but if we can keep it, cool, if not, well, fine
#
devsl
It was made back, around 6 years ago
#
GWG
I see a lot of things that have been superseded, but I think I could make some modifications.
#
devsl
As I told you
#
devsl
I really need to clean it up
#
devsl
I really need to clean it up
#
GWG
devsl: Are you running the latest version of WordPress?
#
devsl
yeah
#
devsl
yeah
#
devsl
4.9.1
#
devsl
4.9.1
#
devsl
and my PHP Version on the server is 7.1.7
#
GWG
So, I could cut some backward compatibility cruft
#
devsl
if you can clean it up, remove all the “gconverter” mentions etc, would be great
#
devsl
if you can clean it up, remove all the “gconverter” mentions etc, would be great
#
GWG
But, Microformats 2, the plugin will work for now
#
GWG
Remove gconverter mentions would be hard. They are everywhere
#
GWG
Every single file.
#
devsl
It was a huge mistake
#
GWG
I'm just going to add the right classes for markup.
#
GWG
devsl: You could always switch themes.
#
GWG
Is there something in this theme you are attached to?
#
devsl
I really like my theme and it works great for me too, I just wanna clean up the code so It would be less of an headache to edit - and maybe make the site faster
#
devsl
that gconverter thing, I originally used the them on Drupal and didn’t have a lot of time to rewrite the theme when I moved the site to WordPress, so I used this “gconverter” conversion service - which worked but the code is not covered in this
#
devsl
*theme instead of them
#
GWG
Doing a massive rewrite is beyond what I would be able to help you with right now. But adding the classes for microformats2 I can do.
#
devsl
I’m willing to pay :)
#
devsl
but alright
#
devsl
but alright
#
devsl
if you can just add the microformats, it would be great
#
GWG
I build things for fun mostly, not money.
#
GWG
So, I did Simple Location, which you asked about, because I wanted to show maps on my site.
#
devsl
I need to set some time aside and rewrite the theme to also support these micro.blog posts better
#
devsl
I totally get you, I’m a developer too
#
devsl
I totally get you, I’m a developer too
#
GWG
devsl: I'll see what I can do. I'm working on finishing up weather support, but..
#
GWG
devsl: I'm not one professionally. My studies were in another field. For me, I build things that I want to use.
#
devsl
It’s just that it’s a massive thing, so, don’t wanna take your time off other projects with no gain
#
devsl
oh nice
#
devsl
I make apps that I want to use, then I just continue to modify it to fill the needs of users who liked it :)
#
devsl
I’m doing iOS apps mainly
#
devsl
for example, I made my browser app, Browsy, just so I can have an easy to use, nice for reading and writing browser
#
GWG
devsl: Exactly the same
#
GWG
My project this week is adding weather support to Simple Location
#
GWG
Why?
#
GWG
I live in New York.
#
devsl
but then people used it for “kiosk modes”, for presentations, for museum exhibits, etc, so I added some features to it
#
GWG
There was a big snowstorm
#
devsl
yeah I heard
#
devsl
yeah I heard
#
GWG
I want to note it in my posts
#
GWG
But, I have 5 related issues that my design for weather will add that people asked for.
#
devsl
I heard it was -40 celsius yesterday on the US, with at least 19 casualties
#
devsl
I heard it was -40 celsius yesterday on the US, with at least 19 casualties
#
GWG
Not in my area.
#
GWG
It is -8.5C here right now
#
devsl
sounds insane and scary - weather here is casual, never to high, never to low
#
devsl
it’s 9 degrees here
#
devsl
not to high, not to low, It’s around 4-40 celsius
#
devsl
not to high, not to low, It’s around 4-40 celsius
#
devsl
4 and 40 are rare though
#
devsl
4 and 40 are rare though
#
devsl
winter is around 10-20, summer is like 20-35
#
GWG
I know. I've been to Acre.
#
devsl
Oh nice hehe
#
devsl
Oh nice hehe
#
GWG
I haven't hung around there much, but have been there.
#
devsl
a nice coincidence, but it’s where I live :P
#
devsl
I mean, the exact city :P
#
devsl
I mean, the exact city :P
#
GWG
devsl: I know. I read your site
#
devsl
oh :)
#
devsl
I’m currently also working on a text editor and file previewer
#
devsl
I made a weather web app a few years ago
#
devsl
maybe some of it’s code could be of use to your weather work
#
devsl
slsrepo.com/sosweather
#
devsl
It’s in Python
#
devsl
the source code is on my site, on the Products page
#
devsl
supports english and hebrew
#
GWG
Link didn't work
#
devsl
sorry, add a trailing /
#
GWG
Nothing seems to load, oddly.
#
devsl
what browser are you using?
#
devsl
what browser are you using?
#
GWG
Firefox
#
GWG
latest
#
devsl
does it support asking your location?
#
GWG
Yes
#
GWG
I let it
#
devsl
oh wierd
#
devsl
weird
#
devsl
the first page is intentionally blank, it asks for your location services then forwards you to the weather page according to the coordinates it picked up
#
devsl
if it’s still blank it failed to pick it up
#
devsl
Works fine for me in Safari and Chrome
#
devsl
Don’t have Firefox handy
tantek joined the channel