#wordpress 2017-12-18

2017-12-18 UTC
#
Zegnat
GWG, you want to build a service like IndieAuth.com? Or do you want to build a WP extension that turns any WP website into an IndieAuth authorization server?
#
GWG
The latter.
#
GWG
But not yet.
#
GWG
First, I want to make any wordPress installation capable of using Indieauth for login. Any Indieauth.
#
GWG
I figure once it knows how to use any Indieauth server, I can see about making one.
#
Zegnat
I am not sure how the first influences the latter? The first allows you to use an external IndieAuth provider to login to WordPress. The second allows you to login to the IndieWeb wiki (and other places) using your WordPress, so you are probably logging into WordPress with the normal WP login then.
#
GWG
Zegnat: It doesn't. It influences the learning process for me.
#
Zegnat
Aah, gotcha :)
#
GWG
If I learn how to be a client, then it is easier for me to learn how to write a server.
#
GWG
That doesn't work in everything though.
#
GWG
I've been to the dentist many times, but have never learned how to fill a cavity.
#
Zegnat
Just making sure you didn’t think that implementing WP as a client was going to lead into WP as a server. A lot of the client work will not really apply.
#
GWG
Zegnat: No.
#
GWG
But even if I fail at writing a server, still a good thing to have
#
GWG
Right now, I'm home after some time away, so I have home things to catch up on.
#
GWG
So, don't expect an announcement tomorrow
#
Zegnat
Server really isn’t as hard as you might think. selfauth does it in less than 400 lines, including HTML & CSS :) And I think some of it can be dropped now that IndieAuth has a real spec clearing up some ambiguities.
#
Zegnat
But client is interesting too, e.g. for people like jeremycherfas who can then login to their WP sites with their main website instead of managing several passwords.
#
GWG
Zegnat: So, in an ideal universe, both
#
Zegnat
If you main sites is WP, you want to use that to login to places, so you need it to be an authorization server.
#
Zegnat
If you have side blogs running on WP (or maybe even a multi-user blog where all users have their own main websites) you want to login to those WP instances with just your domain, and they will need to be clients.
#
Zegnat
Yes, I think both are interesting to different people.
#
Zegnat
Given myself some stuff to think about there too, haha. Well. Off to bed. Have a good time at home doing home things, GWG!
#
Loqi
nice
Loqi, [miklb] and tracya joined the channel
#
tracya
hi indieteam?
#
Loqi
tracya: chrisaldrich left you a message 5 hours, 21 minutes ago: If it helps, Brid.gy has a "preview" button that you can use to test what it will post from a given URL. For most vanilla themes, it's going to include everything in the_content, which is likely why your share buttons were showing up.
#
Loqi
tracya: chrisaldrich left you a message 5 hours, 20 minutes ago: The "preview" button for your account can be found at https://brid.gy/twitter/TracyAltheide
#
[miklb]
howdy tracya
#
tracya
hi! I see there's a message. pretty cool
#
[miklb]
yes, you can use !tell <handle> something and Loqi the friendly bot will store the message and let the person know next time they come into the channel
#
[miklb]
!tell chrisaldrich thanks for the message about the preview
#
Loqi
Ok, I'll tell them that when I see them next
#
[miklb]
for example
#
tracya
oh very cool
#
[miklb]
GWG I think I want to revisit adding a silo.pub/GitHub micropub syndicate-to target. I’d also like to somehow figure out how to map micropub likes for GitHub urls to trigger that target
#
tracya
!tel chrisaldrich thanks for you help. I was able to test the preview and see how my link would appear on twitter.
#
GWG
[miklb]: Did we open that as an issue
#
GWG
tracya: You need the extra l, !tell
#
tracya
Lol oh boy
[chrisaldrich] joined the channel
#
[chrisaldrich]
Two lls... You rang?
#
Loqi
[chrisaldrich]: [miklb] left you a message 2 minutes ago: thanks for the message about the preview
#
tracya
!tell chrisaldrich thanks for you help. I was able to test the preview and see how my link would appear on twitter.
#
Loqi
Ok, I'll tell them that when I see them next
#
tracya
you're fine, I was just learning how to send a later message via Loqi
#
[chrisaldrich]
Hopefully previewing tweets is better than sending messed up ones.
#
[chrisaldrich]
What is Loqi?
#
Loqi
Loqi is a friendly and useful bot present in the IndieWeb discussion channels https://indieweb.org/Loqi
#
tracya
Yes, very much. I guess for now, I shouldn't tweet via the website because it looks like it will put all the content.
#
tracya
twitter will display the share text
#
GWG
tracya: There is a workaround.
#
tracya
there is?
#
GWG
If you set the setting in the Bridgy plugiin to pull from the excerpt, not the content, and put your Twitter text in the excerpt box, that should work
#
tracya
Well I should ask, if there anything else I need to do to modify my website?
#
GWG
tracya: There is always something
#
tracya
ok let me try that.
#
GWG
It's an addiction
#
tracya
Lol oh no!
#
tracya
It's true, I eventually need to start posting content. hehe
#
[chrisaldrich]
You can also use any one of other methods. /SNAP /Jetpack, even good old manual and others potentially
#
[miklb]
tracya I think there is an `hfeed` mf2 class in your theme code that is causing the issue. At least that’s what I took from the earlier discussions. If you know where that is, might be able to help walk through removing/fixing that insertion
#
[chrisaldrich]
Fortunately there aren't any reports of death by incremental improvement in the community.
#
tracya
while I'm at the bridgy settings, question, do I want to "link back to post"
#
[miklb]
GWG I hardcoded an syndicate-to target in my theme functions, but I got tripped up on how to trigger the actual action when the target is called. I tried reading through the bridgy publish code but couldn’t figure it out
#
GWG
[miklb]: That is why I wanted to make it better.
#
GWG
[miklb]: On my list for some day
#
GWG
I tend to jump around to avoid frustration
#
[miklb]
tracya that setting is whether you want to include a link in your tweet back to your original post. Some people omit those for short notes, but include them for longer posts/notes. That’s what the maybe is for.
#
[miklb]
GWG likewise. I was quite frustrated not being able to figure out how to trigger the action. I have the target, and I have the action, I just couldn’t figure how the part inbetween
#
GWG
Well, my goal was to make that a function of the micropub plugin. Except, what if you are using the UI interface?
#
[chrisaldrich]
I didn't look at the parsed code, but I'd guess that tracyas social share plugin (I don't recognize it off hand) is injecting itself at the front of the_content and causing the problem.
#
[miklb]
chrisaldrich, the theme does insert that sharebar, but the root problem is the hfeed inside the h-entry on the body
#
[miklb]
as it understood the conversation that is
#
GWG
[chrisaldrich]: This is why in my themes, I inject e-content around the core content at priority 1
#
[miklb]
GWG What do you mean about the using the UI? The WP admin posting interface? Yes, I’d certainly like to add that to the metabox for syndication. But short term, I’d love to have at least micropub syndicate-to support. If you were inclined to prototype a function to connect the dots between target & action, I’d write the plugin myself.
#
tracya
ok I changed it but I got a bridgy error notice when I published my post. It published on my website but not on twitter. when I previewed the tweet on bridge, same share bar display.
#
[miklb]
GWG And buy you several beverages of your choice when we inevitably meet in person
#
GWG
[miklb]: I'll think about it.
#
[miklb]
tracya if you wanted to share your theme code I think we could help sort out the issue, unless you want to go spelunking in the code yourself. I think I saw you mention someone wrote the theme, or you paid for the theme, so not sure if that’s an option.
#
tracya
miklb makes sense, on the maybe option.
#
[miklb]
GWG 🙂
#
GWG
tracya: There's an open report the errors from Bridgy aren't surfacing
#
tracya
milk yes I paid for it and no, I don't know how to share it with you. :/
#
tracya
GWG, ok good to know.
#
tracya
[miklb] sorry about that, my auto correct is very stubborn
#
[miklb]
I’ve been called worse 😉
#
tracya
Ok I'm in theme editor > theme functions .. I can copy paste?
#
[miklb]
best not to do it in channel.
#
tracya
There is a custom CSS section in the theme customizer. Would I be able to paste code there to override, versus make changes the theme itself? I'm just not sure how to create child theme.
#
[miklb]
you can past your code at https://gist.github.com.
#
[miklb]
the issue with the hfeed doesn’t relate to the CSS, so no need to worry about that at this time
#
[miklb]
I would also look at the header.php file, as it seems like that’s where that hfeed is coming from
#
[miklb]
specifically this `<div id="page" class="hfeed site wrap">` that hfeed can go away and not hurt anything
#
GWG
Yes. A lot of themes make that mistake
#
[miklb]
right, but right now just trying to help with this one 🙂
#
tracya
gist:9c9f53be5e891ec139a2f01276ba0579
#
tracya
did I give you the right link?
#
[miklb]
awesome, that’s where it is. Line 29. You can remove the hfeed from that class=“hfeed site wrap”, making it class=“site wrap” and nothing will break, and your parsing should be much better
#
[miklb]
tracya++
#
Loqi
tracya has 2 karma
#
tracya
[GWG] did he just runaway? :O
#
GWG
Not that I know of.
#
tracya
I'm teasing. ok I made the change and clicked update *gasp*
#
tracya
I'll test again.
#
[miklb]
nope, just went to get some tea
#
tracya
ok i think it took the changes but I got this error "Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP." I hit the update button again. and it's thinking. I'll give it a minute and then try to test it again
#
[miklb]
weird.
#
[miklb]
Your host must not be allowing edits to the theme via the WordPress admin.
#
tracya
no dice. same error.
#
[miklb]
I believe some hosts do not set the permissions to allow that. That’s a bummer
#
tracya
my host? oh learning something new.
#
tracya
I didn't realize they could do that.
#
[miklb]
they will generally say it’s a security issue.
#
tracya
oh ok
#
[miklb]
that would be a debate for another day 🙂
#
tracya
well I'm taking a quick break and and be back. gotta mull this idea over.
#
tracya
*gotta come up with another solution
#
[miklb]
BUT, now we know where the hfeed is, so then it’s just a matter of finding a way for you to edit that file. Not sure you’re relationship with the person/company that wrote the theme, or how it was installed.
#
GWG
Who is your host, out of curiosity?
#
tracya
It was couple years ago I purchased it. I downloaded a file and added a serial once installed.
#
tracya
back
#
[miklb]
how did you add it to your WordPress installation?
#
tracya
I'm trying to look but I honestly don't remember
#
[miklb]
not a problem. What company hosts the site? That might help us find another solution.
#
tracya
dreamhost
#
GWG
They are fairly friendly.
#
tracya
ok found the info.
#
tracya
I installed the theme by uploading through my wordpress site.
chrisaldrich joined the channel
#
chrisaldrich
I've downloaded GWG's TwentySixteen Indieweb fork to try out for a while.
#
tracya
they are. great host.
#
GWG
chrisaldrich: How is it?
#
GWG
tracya: And they have sponsored Indieweb things
#
tracya
ok we'll I think create a new site for the social media using GWG's theme and direct all traffic there.
#
tracya
Yes, that's how I found out about indieweb. I follow them on twitter.
#
chrisaldrich
GWG, so far not bad, I did create a child theme version to port over a lot of previous small CSS tweaks and a few other odds and ends, but so far looks awesome
#
chrisaldrich
I like some of the subtle tweaks you've made to it, particularly to help notes look a bit better
#
GWG
chrisaldrich: Suggestions welcome. I use this.
#
chrisaldrich
tracya, are you in a city with a /Homebrew_Website_Club? One of their executives came to our most recent meetup in LA last week.
#
tracya
i submitted a ticket to the theme support theme so I'll see if anything pops from that. thank you guys for all your help.
#
chrisaldrich
I'll have to spend some time comparing the versions to see the subtleties of what you've changed and why. But I like it a lot so far.
#
chrisaldrich
I suspect many of the preliminary changes are for better microformats support.
#
tracya
no I'm not
#
[miklb]
tracya you may want to open a ticket with Dreamhost to get help with best way to edit that file. They may give you links to using SFTP or how to edit it via CPanel. Or they could just remove that one little class for you.
#
tracya
Looks like there was past meetings, but nothing solid now.
#
GWG
tracya: Which city, may I ask?
#
tracya
chicago.
#
tracya
ok just sent a support email to dreamiest, i'll see what they say.
#
tracya
ok folks I'll be back in a few days. I have to uninstall and reinstall on a new site.
#
tracya
thank you for all you help, specially since I'm not a developer.
#
tracya
I just like to tinker with wordpress BUT I strongly believe we should own our own content.
#
[miklb]
we shall be here. Good luck. Our goal is to make this less difficult, so we appreciate your patience and tenacity.
#
tracya
thanks! goodnight!
#
tracya
miklb++
#
Loqi
miklb has 14 karma in this channel (66 overall)
#
tracya
GWG++
#
Loqi
gwg has 33 karma in this channel (294 overall)
#
tracya
chrisaldrich++
#
Loqi
chrisaldrich has 3 karma in this channel (69 overall)
zb111, [eddie], j12t and [pfefferle] joined the channel
#
[pfefferle]
good morning
#
[pfefferle]
120+ new messages 😳
#
Loqi
*yawn*
[eddie] and [miklb] joined the channel
#
[miklb]
pfefferle you have 👍
[pfefferle] joined the channel
#
[pfefferle]
thanks 🙂
#
[miklb]
On my WP plugin bucket list is a way to use @usernames and have it look for the Twitter profile URL and link to that instead of my hacky plugin that just links to their Twitter page.
dougbeal|mb1 joined the channel
#
[miklb]
I mean, the homepage link url people add to their profile instead of just linking to their profile page.
florida, [miklb], tbbrown and [pfefferle] joined the channel
#
[pfefferle]
so, back again
[kevinmarks], raretrack, [eddie], [miklb], j12t, tbbrown and tantek joined the channel