#wordpress 2019-02-23

2019-02-23 UTC
[kevinmarks], [tantek] and [asuh] joined the channel
#
[asuh]
I didn’t realize WordPress is moving up the PHP requirement to 7.0 by the end of the year. This is gonna be a painful year for a lot of legacy plugins and themes but a much needed upgrade
chrisaldrich and [jgmac1106] joined the channel
#
aaronpk
end of an era
[gRegorLove], [grantcodes], [manton], [eddie], [jgmac1106], tw2113, [tantek], chrisaldrich, [Rose], jeremych_, g1, jgmac1106, [dave] and [galexk] joined the channel
#
[tantek]
Indeed. Probably a good move though?
[dougbeal], [schmarty], [jgmac1106], [gRegorLove], [manton], [galexk], [Rose], [dave], tbbrown and jackjamieson joined the channel
#
GWG
jackjamieson: You get to be in my demo too
paulrobertlloyd joined the channel
#
GWG
jackjamieson: What is next with Yarns?
chrisaldrich joined the channel
#
jackjamieson
GWG Now that Yarns is pretty stable I want to improve the backend interface a bit
#
jackjamieson
Still having some intermittent stability problems with some clients, but I haven't had time to test properly and document them
#
GWG
jackjamieson: I may do some Indieauth enhancements and some refactoring. I see some opportunities to simplify a few code sections.
#
GWG
I wanted to wait until it was stable to possibly destabilize it
#
jackjamieson
GWG: That'd be great. I haven't really touched the auth stuff since porting from Micropub, and I think you're right it can be improved a bit
#
GWG
Well, you are using the older version of the code.
#
GWG
I modularized it
#
GWG
In Micropub
#
jackjamieson
Ah yes, I remember that but I never updated it
#
GWG
I self-assigned that to myself
#
jackjamieson
For which I'm grateful because I'm still a bit confused by the auth code :)
#
GWG
It took me 2 years to understand it
#
GWG
But, the Indieauth plugin is my preferred way to use Indieauth. But Microsub should have the same indieauth.com fallback Micropub does
[chrisaldrich] joined the channel
#
GWG
The alternative is to put up a message..."This won't work unless you install the Indieauth plugin"
#
GWG
jackjamieson: What do you think re that?
[eddie] joined the channel
#
jackjamieson
Hmmm, on the one hand, I think anyone who is using a microsub server is probably willing to install a few IndieWeb plugins. But on the other hand, it's nice to have a bare-minimum that works on its own
#
jackjamieson
So I think a fallback to indieauth.com is nice
#
jackjamieson
Actually I just realized I had forgotten that fallback exists and wrote that the indieauth plugin is required in Yarns' readme
#
GWG
And the Indieauth plugin has other uses outside of just Micropub/sub
#
GWG
But, using your WordPress credentials to log in is a more seamless experience
#
jackjamieson
For sure, and I always like that when I demonstrate Yarns to people I can demonstrate the idea of logging in with my own URL
#
jackjamieson
But I think the fallback is a great option
#
GWG
So, there's a file in Micropub called Micropub-Authorize. I'll switch over to that code. I deliberately, in the 2.0 branch, separated out the pieces to make them easier to work on
#
GWG
That was partly in response to what you said at IWS
#
jackjamieson
Fantastic, thanks GWG
[jgmac1106], [schmarty], aneel, mt, [kevinmarks], [Vincent], [davidmead], [eddie], [cleverdevil], [gRegorLove], [Rose], tbbrown, [RichV], kimhansen, rayna, corntoole and [tantek] joined the channel
#
[Rose]
So, does anyone here have suggestions for importing content from a static site?
#
[Rose]
Google seems to suggest using a plugin to import via RSS.
#
jackjamieson
[Rose] That's what I would do. It's been a few years, but I've used plugins to import rss with good results. I don't remember if there were any hiccups, which probably means it worked well
#
[Rose]
One blog post suggested that there were some odd issues, but I'll try this all offline first
jgmac1106, snarfed, jon1, [jgmac1106], JVL1, chrisaldrich and [Rose] joined the channel
#
[Rose]
Aha! The plugin is written and only compatible with PHP 5, it uses a function that was removed in PHP 7
#
GWG
[Rose]: Someday we should write a MF2->WordPress one
#
Loqi
GWG has 78 karma in this channel over the last year (163 in all channels)
#
[Rose]
Agreed, for the time being I used this: https://github.com/kemayo/wp-rss-importer
#
[Rose]
Stumbled across the blog of someone who migrated from Jekyll (similar enough to Grav), and he switched that plugin from using Regex to SimpleXML
#
GWG
[Rose]: I have the parsing code in WordPress
#
GWG
Just never programmed it to create posts
#
GWG
It should be easy to use Parse This to create posts from RSS or MF2
#
[Rose]
I just wanted a bunch of my content around so I could mess with a theme and see how it looks to start with 😄
#
GWG
[Rose]: Either way, good idea for a project
#
GWG
Import and export via jf2 json and mf2 json
#
[Rose]
Ah, it doesn't understand my tags, it imported them as categories, and combined the commas... Eek
#
[Rose]
Maybe I'll do a custom import based on my files after all
#
jackjamieson
[Rose} Ah, bummer. Actually now that I think about it I think I ended up having to pay for a premium plugin. This was probably back in 2013 though so I'm out of date
#
[Rose]
Honestly, I have 100 posts in my blog blog, and probably at least as many if not more on my "microblog", it wasn't going to be easy 😉
#
[Rose]
If it were I'd be worried
#
[Rose]
The good news is, I can almost certainly do this pretty easily in Shortcuts.
[gRegorLove] joined the channel
#
GWG
[Rose]: My code sees everything as an article because it has a name
#
GWG
Just checked it against your site
#
[jgmac1106]
I dream of the micropub export client but I was also talking in vHWC the other night how I hate losing that piece of my design.
#
[jgmac1106]
How that blog looks is just a part of me as the content or sometimes more the community if I spin up a blog for an event or something
#
GWG
[jgmac1106]: That would work.
#
GWG
[Rose]: Can you send each post in through Micropub?
#
[jgmac1106]
I think [cleverdevil] got close...I am sure the harder part is the dates on the other end. I dunno how this stuff works...I just dream
#
GWG
[jgmac1106]: We accept sending published dates.
#
GWG
So, the WordPress Micropub endpoint would do that.
#
[Rose]
I could send each post through MicroPub, but as I have to read all the files in the system anyway to parse the data, I may as well at least get started on devices I always have with me 😉
#
[jgmac1106]
yes knocking on a door is easy, knowing the local customs to and knowing which room to set yoru data in a bit harder
#
[jgmac1106]
I am so mad I exported facebook as HTML and not JSON
#
[Rose]
And then I can just use the WordPress action in Shortcuts, which is one of the reasons why I'm switching back to WP
#
GWG
jgmac1106: I should look into JSON importing.
#
GWG
The problem is race conditons.
#
GWG
Too many things happening at once.
#
[Rose]
If I import from my files, then I can grab all the images and upload them with the post too, and I even have the slug. It's a win win win as far as I can tell.
#
GWG
I need to build a system to break the job into chunks, to avoid that
#
[jgmac1106]
grav seemed way too heavy of a system for a personal site, simple things take digging IMO
#
[jgmac1106]
Digging my approach, I figure I will stick with Known as I slowly subsume [grantcodes] plumbing into my site. I spent one day trying to learn PHP, not enough resources anymore
#
[jgmac1106]
...which in the end will play with WordPress...given the roadmap
#
GWG
[jgmac1106]: What will play with WordPress?
#
[jgmac1106]
hopefully anything with proper microformats if we do it right
#
[jgmac1106]
....but in terms of larger ecosystem...I kinda stopped paying attention...but the phase three stuff....seems like a new ecosystem
#
GWG
[jgmac1106]: Hope so.
#
GWG
[jgmac1106]: Phase 3 Workflows, you mean?
#
GWG
By then, I may have to break down and solve this problem in another way.
#
jgmac1106
you have always wanted a micropub only, WordPress ad the engine approach
#
GWG
I wanted an option
#
jgmac1106
I really should invest the time to learn Ruby since I own a company built on RoR but only so much time in the day and Ambesh is great at that…Always wanted to try FrancisCMS…so much plumbing written in Ruby lot of tools exist
#
jgmac1106
and Drupal. I want to try that…I like playing with all the toys
jon1, chrisaldrich and jgmac1106 joined the channel