#wordpress 2017-07-29

2017-07-29 UTC
davidmead, [miklb] and tantek joined the channel
#
[miklb]
striking out w/mapbox api tonight.
#
[miklb]
kind a cherry on top of my week
#
www.boffosocko.com
edited /WordPress/Plugins (+153) "/* PESOS Plugins */ integromat"
(view diff)
tantek and [miklb] joined the channel
#
GWG
[miklb]: Still problems?
#
[miklb]
the API issue? I had my username spelled wrong in my curl test.
#
[miklb]
been a long week.
#
[miklb]
now just trying to remember how to loop through each object.
#
[miklb]
there we go.
tantek joined the channel
#
[miklb]
GWG I did realize that there are 9 default styles available for any auth_key so rather than a conditional, I’m just statically adding those and then dynamically adding any custom styles if auth_key is set.
#
GWG
Very good.
#
[miklb]
just need to add the default styles and test now.
#
[miklb]
one caveat I did discover. you can’t just use your default public auth_key to get styles, requires a new key with the scope styles:list added. Not sure how/where to add that info.
tantek joined the channel
#
[miklb]
hmm. not saving the value
#
GWG
Boom?
#
[miklb]
working. I sent it as a PR with hopes you can take a look and let me know how I can improve it.
#
[miklb]
I should have probably done more testing with a different user, etc, but excitement of getting it working got best of me.
#
GWG
I haven't ever done styles on my mapbox account.
#
[miklb]
then you would get the 8 options available to all authorized users. At least that’s how it’s suppose to work.
#
[miklb]
They’ve been doing a thing if you are subscribed to their email list, they have been offering additional styles each week you can add.
#
[miklb]
like a new style a week thing.
#
[miklb]
then you can customize those, or use as is.
#
GWG
I think I might be
#
GWG
Let me see what I can do. I'm going to be working on a few things.
#
[miklb]
well, it’s working for me, so I can use the fork on my site. Feel free to pick apart the PR.
[jeremycherfas] joined the channel
#
GWG
Pick apart?
#
[miklb]
use, critique, etc
#
GWG
Use, yes.
#
GWG
Critique...only what I mentioned regarding abstraction
#
Loqi
Obligatory Checked into Café du Monde.
#
[miklb]
one of the aforementioned styles I was able to add to my account.
#
[miklb]
I wonder if the map should get a mf2 class on checkins? u-featured?
#
[miklb]
anyway, thanks again for the plugin.
#
GWG
Looks nice.
#
GWG
Sorry for the delay. I was wiring an HDMI connection.
#
[miklb]
sure. I was rambling. But I do appreciate the plugin. I would have just hacked in a simple solution. Its nice to have something more robust to build upon.
#
[miklb]
But I definitely want to look now at having per map styles.
#
GWG
Well, I look forward to seeing what comes up.
#
[miklb]
I’m guessing shouldn’t be too much to add that dropdown to the post edit screen, then check 1st for post_meta before using default set in media settings.
[jemostrom] joined the channel
#
[jemostrom]
I’m trying to understand how to use the indieweb plugin. I have two sites example.com and stream.example.com which I both want to use, example being the main site. How should I configure the indieweb plugin in this case (I don’t understand how the ‘rel=“me”’ links should look like for the two sites)
#
[miklb]
howdy jemostrom
#
[miklb]
I don’t have experience using multiple sites
#
GWG
[jemostrom]: Is this a multisite installation of WordPress?
#
[miklb]
waves good night
[jemostrom] joined the channel
#
[jemostrom]
@gwg no, it's two separate installations.
#
GWG
You add rel.me links under your user profile. There is a box for arbitrary ones
[kevinmarks], ben_thatmustbeme, [miklb] and [eddie] joined the channel
#
[miklb]
GWG I’m confused where/how I should add the in-reply-to URL in a reply kind view.
#
GWG
How so?
#
[miklb]
well, if I post a reply with micropub, a url doesn’t get added to my note in the kind-reply.php template.
#
[miklb]
I notice there isn’t a reply kind in the post-kinds plugin.
#
Loqi
Bulma now has built in native mobile nav that doesn’t require JS
#
GWG
Since when?
#
GWG
There has been a reply kind since the beginning
#
[miklb]
a separate template?
#
[miklb]
there’s a the kind.php of course.
#
GWG
No. But there is a kind
#
[miklb]
even in that, I don’t see where it adds mf2_in-reply-to in the template
#
[miklb]
I feel like I’m missing something obvious
#
GWG
Well, I keep wanting to rewrite that.
#
GWG
get_url uses the kind to determine what property to look up
#
[miklb]
looking now, that’s why my reply to jeremycherfas didn’t show up. There’s no anchor tag for a URL.
#
[miklb]
is going to rewrite his reply template
#
GWG
I still need to address some things.
#
GWG
Just still catching up on back home stuff.
#
[miklb]
yeah, not asking you to fix anything, was just looking for some insight.
#
GWG
I just worry I may break things
#
[miklb]
well, replies are basically broken on my site, so I can’t do much worse ?
#
GWG
Are they broken in the plugin?
#
[miklb]
I’m not sure, but if you are posting via micropub, the $url doesn’t seem to get set anywhere in the template.
#
[miklb]
Let me test with the default templates.
#
GWG
I want to fix it if Micropub isn't working as expected.
#
[miklb]
the way the plugin template seems to be marking it up is to set h-cite p-in-reply-to and then p-name and u-url on the reply-to link. So I guess that’s OK. I just need to get my template to do something similar.
#
[miklb]
then there’s a p-name on the on the e-content
#
[miklb]
I honestly still don’t grok p-in-reply-to vs u-in-reply-to
#
GWG
u is attached to a URL.
#
GWG
p is attached to something else.
#
GWG
So, in the plugin, there is an entire h-cite it is attached to
#
[miklb]
I have made a total mess of this template.
davidmead and arush joined the channel