#wordpress 2017-12-08

2017-12-08 UTC
[miklb], doubleloop[m], [manton], j12t, [kevinmarks], [dshanske], tantek and [pfefferle] joined the channel
#
[pfefferle]
Good morning
#
[pfefferle]
Oh, a lot of ZenPress Problems!?!
#
Loqi
guten morgen
#
[pfefferle]
jeremycherfas mrkrndvs it‘s hard for me to join the discussion, because I am on a different time zone... If you need help and or code changes, please file some issues on GitHub!
#
[pfefferle]
trying to understand the „h-card problem“
[mrkrndvs] joined the channel
#
[mrkrndvs]
Ok, will do
#
[pfefferle]
Oh you are still awake
#
[pfefferle]
Anything I can help you with, now?
voxpelli and prtksxna joined the channel
#
wagle
is there anything in upgrading plugins that uses ports other than https?
#
wagle
this plugin wont finish upgrading, and I have stuff bouncing off my firewall
#
wagle
hrm, it just tookk 15 minutes to upgrade... I think it was semantic-linkbacks
[jeremycherfas] joined the channel
#
[jeremycherfas]
pfefferle It seems my problem was between pin13 and DNS and nothing to do with Zenpress.
tantek, raretrack, doubleloop[m], qwerty, jeremycherfas and [pfefferle] joined the channel
#
[pfefferle]
jeremycherfas and dshanske is there still a problem with the h-cards in ZenPress, or something I have to do?
#
jeremycherfas
For my part, nothing I am aware of.
#
raretrack
when i use the sempress theme instead of showing the author as "My Name" it shows it as "<span class='p-author h-card'>My Name</span>", i.e. including the markup. I can't work out how to get rid of it, so have stuck with Independent Publisher instead
#
jeremycherfas
nat problem because I am the only person who ever publishes to my site, and so displaying author details is redundant.
#
raretrack
good point jeremy, i'm the same. is there some css to turn post author off completely?
#
jeremycherfas
I have a modified Partials > entry-header.php display: none; on address .byline and address
#
jeremycherfas
I think that does it.
#
jeremycherfas
php AND display
#
raretrack
thanks jeremy, after a play i found that .entry-meta .byline, .entry-meta .address { display: none; } did the trick
#
raretrack
jeremycherfas++
#
Loqi
jeremycherfas has 2 karma in this channel (10 overall)
#
jeremycherfas
Raretrack you could also take a look at this cli
#
[pfefferle]
raretrack deinstall the uf2 plugin
#
[pfefferle]
the uf2 plugin is only a polyfill
#
[pfefferle]
you do not need it for themes that fully support mf2 markup
#
[pfefferle]
you do not have to hide it via css
#
raretrack
i don't think i've got a uf2 plugin installed
#
[pfefferle]
can you have a look at your plugin?
#
[pfefferle]
the title might differ, I think it is something like microformats2 or so
#
[pfefferle]
it is “Microformats 2”
#
raretrack
ah yes, I do have that one
#
[pfefferle]
you can disable and deinstall the plugin if you use sempress or an other indieweb compatible theme: https://indieweb.org/WordPress/Themes
#
raretrack
yes, i've just deactivated it and removed the css and it works correctly now, thanks.
#
GWG
Morning
#
Loqi
*yawn*
#
GWG
[pfefferle] I have an idea about the span issue.
#
[pfefferle]
dshanske I am listening 😉
#
GWG
raretrack said that the SemPress theme was affected by WordPress UF2, which shouldn't be the case. The plugin is set to not do anything if the theme declares microformats2 supp
#
GWG
support
#
GWG
So why was it not working?
#
[pfefferle]
I have no idea 🙂
#
[pfefferle]
but the real problem is that more and more themes do escape the frontend function
#
[pfefferle]
I am not sure if uf2 is still a good idea, like it is now
#
[pfefferle]
raretrack your welcome 🙂
#
[pfefferle]
raretrack you’re welcome 🙂
#
GWG
I agree, but it should work with SemPress
#
GWG
I think maybe it should hook onto after_theme_setup instead of plugin_loaded
#
[pfefferle]
perhaps it loads the required files directly
#
GWG
It may be checking before the theme declares support
#
[pfefferle]
or like that
#
GWG
I thought I checked with the flag at the time
#
GWG
But I should fix that and remove the author filter. Too much of an issue
#
[pfefferle]
the problem is, that all filters might be faulty… the title is even worse
#
[pfefferle]
then it is better to leave the plugins as they are and hope that the mf1 semantics are properly defined
#
[pfefferle]
and if you remove those two… the plugin has no real benefits
#
GWG
Good point
#
[pfefferle]
pehaps we can implement a test
#
[pfefferle]
to check if the frontend renders the tags properly
#
[pfefferle]
and if it fails, we deactivate the plugin with an error
#
[pfefferle]
perhaps as an “register activation” hook
#
GWG
I will have a look. I am in Austin for IWC
#
GWG
So I am in a fix things sort of mood
#
GWG
But I have a list
#
GWG
No, that shouldn't happen.
#
GWG
I need to figure out better testing.
#
GWG
But that isn't the problem
#
[pfefferle]
you need some contributor like yourself 😉
#
GWG
[pfefferle]: It doesn't look like Khurt signed up for Bridgy
#
GWG
[pfefferle]: Got any?
#
GWG
[pfefferle]: I got sidetracked for a few days, but I intend to fix several plugins in the next week
#
GWG
After Austin I'm off for a few days
#
[pfefferle]
but the PK plugin should not throw errors anyways
#
GWG
If you've been watching, the last two weeks I've been doing a lot of commits.
#
[pfefferle]
sure, but perhaps you are working on too many plugins at the same time…
#
GWG
[pfefferle]: The error means there is no checkin property. But it should check for that. I think I can fix the error now. But not the rest of it
#
GWG
[pfefferle]: Define same time? Swapping back and forth or having so many active plugins.
#
[pfefferle]
both 🙂
#
[pfefferle]
let’s build some GWG clones 😉
#
[pfefferle]
one for each plugin!
#
GWG
looks at pfefferle's Github account
#
GWG
120 Repositories....
#
GWG
[pfefferle]: I'm not the only one we have to clone
#
GWG
[pfefferle]: Why do you think I spent time automating some things I was doing manually? I'm letting people improve my plugins upstream.
#
GWG
Admittedly, it is just icon sets, but if I can find more ways to do that...
#
GWG
And I saw your comments on same and intend to address for all plugins I maintain
#
[pfefferle]
on “same”?
#
[pfefferle]
ah, you mean SIL OFL ??
#
GWG
[pfefferle]: From reading the license, I am compliant, but I need to disclose appropriately.
#
GWG
I also need to change it to be more evident where I got the individual kind fonts from.
#
GWG
So, back to writing a script to create the output, rather than bundling the SVG files inside the plugin
#
[pfefferle]
the problem is, that you seem to mix different icons and it is not clear which one is from where and you have to include the license file I think
#
GWG
Do I have to include the license file or link to it?
#
[pfefferle]
good question
#
GWG
I thought you just had to link to it
#
GWG
So, I am adding the references to the README
#
[pfefferle]
2) Original or Modified Versions of the Font Software may be bundled,
#
[pfefferle]
redistributed and/or sold with any software, provided that each copy
#
[pfefferle]
contains the above copyright notice and this license. These can be
#
[pfefferle]
included either as stand-alone text files, human-readable headers or
#
[pfefferle]
in the appropriate machine-readable metadata fields within text or
#
[pfefferle]
binary files as long as those fields can be easily viewed by the user.
#
GWG
Wouldn't README be a header?
#
GWG
I will figure something out to satisfythat.
#
GWG
I thought my original notation was enough, but I want to go a bit further
#
GWG
I intend to bring the solution to every plugin that uses icons. That includes Indieweb, which has the rel-me widget
[miklb] joined the channel
#
[miklb]
good morning
#
GWG
[miklb]: Hello. Just talking future plans
#
[miklb]
so I think I’ve decided work around for my theme and the h-card widget
#
GWG
[pfefferle]: What do you want to accomplish next?
#
[miklb]
yes, reading scroll back now
#
GWG
[miklb]: Share
#
Loqi
[alohastone] #130 Threaded comments
#
[miklb]
since I want to customize the output but only show the h-card on the home page if the user adds the widget to that area, I’m going to check if_widget_active. If it is, then display my custom function to output the fields. Same with rel-me widget. As the widgets improve, I can revisit that decision
#
jeremycherfas
Hey miklb, off-track, but ... I was recently reading about a weekly photo challenge somewhere, and I think it was on your site, with a photo about Building, but I'm blowed if I can find it now. Was it you?
#
[miklb]
the photo challenge was micro.blog. I started it but then had another murder in my neighborhood like the 3rd day and got off track. (The shooter has since been captured)
#
[miklb]
that one was a 1 week challenge, 7 days.
#
[miklb]
pfefferle a 24 year old guy randomly shot 4 people blocks from my home over the course of 51 days
#
jeremycherfas
Was it? I thought iot was a weekly thing. I started that too but got derailed, not quite as serious reasons as you though. Just lazy.
#
[pfefferle]
I am speechless!!!
#
jeremycherfas
And they say guns make people safer.
#
[miklb]
it was pretty crazy. After the 4th one, the police thought they had the person boxed in and twice that morning I had police with long guns searching my yard/home. It was stressful
#
[pfefferle]
oh my god
#
[pfefferle]
now i am really happy to live in europe!
#
[miklb]
This person bought the gun “legally” a few days before he shot and killed the 1st person. I have feelings on that subject to say the least.
[xavierroy] joined the channel
#
[xavierroy]
pfefferle and dshanske I also have the same issue as Khurt with the bridgy errors
#
[miklb]
But anyway, I think I have a work around so I don’t ignore the user decision to add a widget to the home page area for a profile, but can customize the output
#
jeremycherfas
I can imagine. It really is hard for those who don't live in that culture to understand why people are so gung-ho for guns. And crazy poweful guns.
#
[miklb]
Just know that not all of us Americans are in that mold.
#
[pfefferle]
miklb but I love the idea of a widget area for a vcard
#
jeremycherfas
Oh, I do know that. But those of you who are not seem to powerless to change anything.
raretrack joined the channel
#
[pfefferle]
I exactly had some similar ideas, after GWG and jeremycherfas talked about the h-card thing
#
[miklb]
pfefferle the widget is there now, I’m looking at implementing it as a profile on the home page, thus a need to better customize output
#
[pfefferle]
and to add a fallback h-card if no widget is added
#
[xavierroy]
Is there a way to create a child plugin like how child themes are possible
#
[pfefferle]
hello xavierroy I think dshanske is the better one to help you with the bridgy plugin, I do not use it at the moment
#
[miklb]
GWG what do you think about an option for the widget to display name, nickname or both? Currently it displays the display_name. Which is good for author display, but might want both on an h-card. (I’d like to display both Michael Bishop && miklb for instance)
#
[miklb]
I use bridgy plugin, what’s the issue
#
[pfefferle]
xavierroy not directly but you can reuse functionality
#
GWG
[pfefferle]: I am very much looking forward to avatar caching.
#
GWG
[miklb]: Pleasant thought there
#
[xavierroy]
pfefferle any ideas as to how to do that?
#
[pfefferle]
GWG me too and the caching is not really the problem, but I do not have a good idea for a migration yet.
#
GWG
[pfefferle]: Europe isn't always safer. But point taken
#
[pfefferle]
xavierroy can you explain your problem a bit more?
#
GWG
[xavierroy]: Can you link to your Bridgy user pages? The log there would tell us what the Bridgy Error is
#
[pfefferle]
dshanske but germany is 😉
#
GWG
[pfefferle]: Closest I've been is Poland, sorry
#
[xavierroy]
pfefferle I use Post Kinds 😀 but I changed the postkind-postformat linking for my read kind. Now whenever there is an update to the plugin, I have to edit/redo my changes to the plugin
#
[pfefferle]
dshanske shame on my, I also never visited the USA
#
[miklb]
xavierroy do you mean the view template?
#
GWG
[xavierroy]: What did you change? And is there a way I can prevent you from having to do that?
#
[miklb]
if so, you can have custom versions of those in your theme
#
[pfefferle]
xavierroy ok, then you again have to talk to dshanske he is the creator if this plugin too 😉
#
GWG
Who is also here in the room
#
[xavierroy]
pfefferle I know 😀
#
GWG
[pfefferle]: You are always welcome in the US. Well, not necessarily by our president, but...
#
[pfefferle]
dshanske 😄
#
[miklb]
GWG then I shall look at a PR for the h-card widget
#
[miklb]
at me writing it to be clear
#
GWG
[pfefferle]: Also, miklb is pretty knowledgeable as a user of the plugin. Sometimes you don't need the creator. Although if [xavierroy] is modding the plugin...then I should find a way to make it so it is unnecessary.
#
GWG
[xavierroy]: You are changing what post kind links to what post-format, correct?
#
[xavierroy]
Yes dshanske
#
GWG
[xavierroy]: If so, you can do that by filter, as opposed to modding the code.
#
GWG
The table of taxonomies is in an array. It passes through a filter called 'kind_info'
#
[xavierroy]
Any pointers? Consider me a Gen 2.5 person
#
GWG
So you can filter it in your theme, or create a simple plugin.
#
GWG
[xavierroy]: Yes. I probably could write you a 5 line plugin that would do it for you.
#
GWG
[xavierroy]: Although, I will, alternatively, ask which post format are you changing to link to which post kind? You might be able to change my opinion on the matter
#
[xavierroy]
dshanske that would be great.
#
[xavierroy]
The read kind defaults to status format. I want to use an article format for that
#
[xavierroy]
Post Kinds is a great plugin, just that lots of functionality is tucked away. 😀
#
[miklb]
you could customize the output in your theme without filtering
#
[miklb]
create a kind_views/kind_read.php and copy the article format to that file and customize.
tantek joined the channel
#
[xavierroy]
Maybe if that post kind-post format mapping is transparent for newbie users
#
[xavierroy]
miklb I might do that
#
[miklb]
*could* be operative term. not definitive solution
#
[miklb]
the default views are in /includes/views in teh plugin. Any of those can by copied and customized in your theme
#
GWG
Try that. I didn't test it, but it should work if you install it as a plugin
#
[miklb]
needs to slow down his typing
#
GWG
[xavierroy]: My original version of the plugin disabled post formats entirely, as I considered kinds a drop-in replacement.
#
GWG
It is interesting to see the differing perspectives on that.
#
[xavierroy]
dshanske gracias
#
GWG
[xavierroy]: Any time. You can edit it as needed.
#
[xavierroy]
I will try that out and let you know
#
GWG
Admittedly, I tried to make the code flexible, even if everything doesn't have a UI
wagle and [andrea_arbogast joined the channel
#
[andrea_arbogast
Does Quill provide it’s own mappings, or does it use the mappings from the post kinds plugin? Seems like they are a bit different
#
GWG
[andrea_arbogast: Quill posts using Micropub. Post Kinds uses post type discovery based on the properties sent by micropub to determine the kind.
#
GWG
What is going on specifically?
#
Loqi
It looks like we don't have a page for "going on specifically" yet. Would you like to create it? (Or just say "going on specifically is ____", a sentence describing the term)
#
GWG
I feel like I should stay on because there is such good discussion going on.
#
[miklb]
GWG speaking of icons/fonts have you seen the new Font Awesome 5 https://fontawesome.com/
#
raretrack
this is a good thread - I now understand the difference between post format and post kind, and do like the ability to mix and match if needs be
#
[andrea_arbogast
I need to confirm this, but it seems when I post a bookmark from Quill it comes in as a link format, whereas if I post from WP it is a status.
#
[andrea_arbogast
Not a problem, really, but just trying to understand how everything works
#
GWG
[andrea_arbogast: When you post from WP, you set the Post Kind to Bookmark?
#
GWG
[miklb]: No, I haven't. But Post Kinds uses Font Awesome to backfill some icons...something I was reminded I improperly documented recently. My intention is to update the icons after I finish updating other icons to address the issue. I also want to display the icons on the settings page.
#
GWG
If Micropub sets the property bookmark-of, Post Kinds sets the kind to bookmark
#
GWG
Quill would set the micropub request to bookmark-of
#
[andrea_arbogast
@GWG yes, or use a bookmarklet to select it for me
#
GWG
[andrea_arbogast: By default, Post Kinds sets the post format of any bookmark kind post to link. Closest equivalent.
#
GWG
This is because someone requested I set the post format for backward compatibility.
#
GWG
There is, based on previous, the possibility that my interpretation of closest equivalent isn't the same as others. None of the formats quite match the kinds.
#
GWG
raretrack: I have to see if the readme explains it well.
#
[andrea_arbogast
Ok. So when I post from within WP that automatic setting of format to link isn’t happening.
#
[andrea_arbogast
I agree with the equivalency
#
[andrea_arbogast
I think there is something not quite right about by WP setup
#
[miklb]
friendly reminder, any contributions to documentation greatly appreciated, doesn’t require any coding skills 😉
#
GWG
[andrea_arbogast: Interesting. Will have to check that. Mind opening an issue on Github
#
GWG
miklb++
#
Loqi
miklb has 8 karma in this channel (60 overall)
#
GWG
[miklb]++
#
GWG
Just checking to see if that worked
#
[andrea_arbogast
sure, will do
#
GWG
I just added a line in the readme about the relationship.
#
GWG
Will amend more next time I do a release.
#
GWG
I'm already Indiewebcamping and the camp isn't for another 24 hours.
#
GWG
Woo
#
[andrea_arbogast
Thank you so much for your help! Wish I could be there in Austin
#
GWG
[andrea_arbogast: No you don't. It snowed last night.
#
[miklb]
IWC is a state of mind
#
GWG
[andrea_arbogast: Remote attendance is an option.
#
GWG
We usually have the chat up and a simple video feed for demos and such
#
Loqi
gwg has 23 karma in this channel (278 overall)
#
GWG
schmarty is bringing stuff
#
GWG
I was going to bring a backup rig, but I ran out of the house Tuesday morning due an emergency and didn't have time
#
[andrea_arbogast
I will try-- taking some workshops for my other interest this weekend, so will try to fit it all in.
#
GWG
Anyway, just added the icons to the settings page so I can view them all.
#
GWG
May do a refresh
#
GWG
Especially if one of my dependencies has been updated
#
GWG
But one problem at a time.
#
GWG
Or one font at a time
#
GWG
I seriously never thought I'd spend this much time on icons
#
[andrea_arbogast
lol
#
GWG
But looks are important, I guess
#
raretrack
indieweb principle #7 ;)
#
GWG
raretrack: If you've got it, flaunt it?
#
raretrack
lol yeah
#
GWG
To be honest, I'm doing all this icon stuff so it will be easier to maintain in future.
#
GWG
I blame [pfefferle]
#
GWG
I always blame [pfefferle].
#
GWG
For rabbit holes I end up in
#
GWG
[pfefferle] adds composer support to update the MF2 parser in Semantic Linkbacks
#
GWG
I say... "Great, why don't I do that."
#
GWG
And two weeks later...
#
GWG
Here I am.
#
GWG
Just so my intent isn't missed..
#
GWG
pfefferle++
#
Loqi
pfefferle has 10 karma in this channel (40 overall)
#
[andrea_arbogast
miklb if one were to help with documentation, where/how would one do that? On the wiki?
#
[miklb]
wiki or a PR to a README. I’d be happy to turn wiki docs into README if uncomfortable with doing a PR, or better, if anyone isn’t familiar with GitHub/pull request but want to learn, help with that process.
#
[miklb]
Wiki might be good for brainstorming and outlining, but I’m of the camp that the docs should ship with the plugin
#
raretrack
i tend to agree, not all plugin users will know where to go for indieweb info, nor should they have to
#
[miklb]
agreed. Especially with the WP.org plugin repo being the most common source of finding/installing
#
[miklb]
README could link to the wiki however for explanations of common IW terms, etc
#
[andrea_arbogast
OK, cool. I have some limited experience with GitHub, so make take you up on that help. I do have some suggestions to improve the docs, so will work on that.
#
[andrea_arbogast
but now, unfortunately, I’m off to a funeral
#
[miklb]
my condolences
#
raretrack
sorry to hear that
#
[miklb]
btw, that’s a standing offer to anyone who would like to contribute but is unfamiliar/uncomfortable with doing pull requests.
#
[xavierroy]
miklb I'll contribute something
#
raretrack
i'd like to help too, have limited experience with github but willing to learn
#
[miklb]
in that case, maybe I should write something up, but make myself available to help in specific cases. In reality, the repo can be forked and edited in the browser, especially for markdown files. But I need to refresh myself with the grunt task, I think the .txt file is where the edit needs to be so that it gets into the plugin repo
#
GWG
You can also write in an issue and someone else can merge if you aren't git inclined
#
raretrack
i did get 75% through the Code Academy github training, perhaps time to do the other 25%!
[pfefferle] joined the channel
#
[pfefferle]
dshanske 😄
#
GWG
raretrack, you can write documentation as a blog post and link to it as well.
#
GWG
pfefferle, re licenses, we probably need to commit license.md in the mf2 folder for Semantic Linkbacks
#
[pfefferle]
oh, you are right! I will whitelist it!
#
GWG
pfefferle, as I said. You send me down these paths and I stay there for a while
#
GWG
pfefferle++
#
[miklb]
loqi ?
#
Loqi
pong
#
[miklb]
GWG pfefferle what are your thoughts about implementing something like this https://probot.github.io/apps/update-docs/
#
GWG
Sounds like a possibly good idea
#
GWG
But both pfefferle and I use a grunt task to convert readme.txt to readme.md, so we have to ask for PRs that update both.
#
[miklb]
or a CI task that runs the grunt task on readme.txt
#
GWG
That didn't even occur to me
#
GWG
How would that work?
#
[pfefferle]
Travis can run the grunt task
#
[pfefferle]
And commit the changes
#
[pfefferle]
And/or the pot file
#
[miklb]
automate all the things
#
[miklb]
if that is of interest and no one has already tackled it, I can send a PR for the IW plugin that could be used elsewhere
#
[pfefferle]
Gogogo 😍
#
Loqi
miklb has 9 karma in this channel (61 overall)
#
GWG
Please do. It didn't occur to me that Travis could commit or I'd change mine
#
@marktimemedia
"Hey can you help fix some CSS/Frontend issues?" "Ok sure!" - Create Local site - Git clone - Composer install dependencies - npm install dependencies - Local SSH? - WP-CLI db import/user create - broken thing - burn down, repeat - Grunt? Somewhere? ...wait what was I doing?
(twitter.com/_/status/939159626783879171)
#
GWG
miklb, if you do it for one, I will likely deploy it for all I control
#
[miklb]
I’ll just need to make sure I’m committing back to the PR, but I’ve used Travis to commit before, so I have some experience there
#
[miklb]
my jekyll site committed back the json repsonse from bridgy so I could use that for the syndication link
jeremycherfas, raretrack, tantek, [manton], [cleverdevil], [jeremycherfas], j12t, j12t_, j12t__, dougbeal|mb1 and [miklb] joined the channel
#
GWG
New Syndication Links pushed to stable
tantek, [kevinmarks] and [manton] joined the channel