#microformats 2014-10-02

2014-10-02 UTC
#
bret
webkernel: yea
#
webkernel
ok, thanks
#
bret
channel is monitored too, so if nobody is around just hang out
#
webkernel
i am using this line of code in my wordpress article
#
webkernel
<time class="dt-published" datetime="2013-05-01 12:00:00">20 minutes ago</time>
#
webkernel
when I publish the article and then go back to the editor the code looses the tagging
#
bret
yikes
#
webkernel
it remains only 20 minutes ago
#
webkernel
is this normal?
#
bret
so wordpress is 'cleaning' your html?
#
webkernel
yes...and also tumblr
#
bret
even when you look at view source
#
webkernel
yes
#
webkernel
but only this time class
#
bret
tumblr definitely can take microformats
#
webkernel
the other code is ok
#
bret
never done it myself but seen it
#
bret
are you doing this i a post or the template level?
#
webkernel
if i create a html page in Komposer and publish in my website via ftp, all is ok
#
bret
so the word press publishing tools are stripping your html
#
webkernel
but only the time class
#
bret
not sure why
#
webkernel
it happens the same in tumblr
#
bret
webkernel: I would ask in #wordpress
#
tantek
time element
#
tantek
to be clear
#
Loqi
tantek: bret left you a message 1 hour, 55 minutes ago: Ok I added a parsed example here http://microformats.org/wiki/h-entry I'll do the rest if that looks okay to everyone
#
tantek
it sounds like WordPress needs to be updated to support the new HTML5 elements
#
bret
ideally, you put the microformats in the template level
GWG joined the channel
#
GWG
Did I hear someone say Wordpress and Microformats?
#
webkernel
yes :)
#
GWG
What seems to be the problem?
#
GWG
OR question?
#
GWG
Query?
#
GWG
Etc?
#
webkernel
i am using time element within a post
#
GWG
Yes?
#
webkernel
after publishing the tag disappears
#
tantek
GWG, it appears something in WordPress is filtering out the <time> element
#
tantek
from that I would generalize to say that WordPress may be filtering out *all* new HTML5 elements, e.g. <article>, <aside>, <data> etc.
#
webkernel
no, not <article>
#
webkernel
only <time>
#
webkernel
i am testing with this example
#
webkernel
<article class="h-entry">
#
webkernel
<div class="e-content p-summary p-name">
#
webkernel
<p>Just writing a guide to using <a href="http://microformats.org/wiki/microformats-2">
#
webkernel
microformats-2</a></p>
#
webkernel
</div>
#
webkernel
<time class="dt-published" datetime="2013-05-01 12:00:00">20 minutes ago</time>
#
tantek
interesting, then perhaps WordPress may be filtering out all new elements in HTML5 *introduced in 2011-11-01 or later* like <time>, <data>, maybe some others
#
webkernel
</article>
#
webkernel
it happens in tumblr also
#
tantek
bret - re: JSON example in /h-entry - well done! yes feel free to do so to the other specs too!
#
webkernel
i am using sempress theme
#
bret
I think the side by side helps make the usecase/purpose much more clear
#
GWG
Why do you want the time element in the editor? That's usually put in by the theme?
#
tantek
bret - re: HTML+microformats and JSON? well - much more clear to *some* folks (programmer / parser types) - but certainly not majority (HTML coders / publishers)
#
GWG
This isn't Wordpress. This is TinyMCE I think
#
webkernel
I see....for that I need to know what to edit. I'll try to figure out!
#
GWG
Install the TinyMCE Advanced plugin and select the option to not filter HTML5 elements
#
GWG
webkernel: If you want the direct solution
#
GWG
But usually I put the post time/modified time automatically in the theme. I suppose you could have a time in the paost
#
webkernel
thanks! I'll do!
#
GWG
webkernel: Still curious...what were you trying to do?
#
GWG
What time was it?
#
GWG
Is there a URL?
#
webkernel
I was trying to test time element within the post as per an example I saw in microformats.org
#
tantek
makes sense
#
tantek
WordPress treats "inside the post" as somewhat from the core, somewhat from the theme, the template, and the user, right?
#
KartikPrabhu
from reading this question, Wordpress sounds like a shit-show wt HTML judas priest
#
KartikPrabhu
webkernel: just to be sure, is the whole time element removed or only datetime?
#
webkernel
the whole time element
#
tantek
KartikPrabhu: user-friendly CMS UI that can handle updates at various levels of "code" is a very difficult problem. I wouldn't begrudge the WP folks for where they have ended up. They've outlived a bunch of other solutions that were not as good.
#
KartikPrabhu
tantek: still if I enter something in HTML-editor mode I would expect it to stay there regardless
#
KartikPrabhu
maybe a trade-off to creating a one-size fits all solution
#
KartikPrabhu
webkernel: what if you put datetime in the ISO format as so: 2014-10-01T13:20:17-05:00 ?
#
KartikPrabhu
notice the "T" in there
#
webkernel
I think i've done that as well...let me check
#
tantek
KartikPrabhu: no need for the "T" in the HTML5 time element
#
GWG
tantek: Yes. It separates the layers
#
KartikPrabhu
tantek: I know, wondeirng if that is causing some filtering
#
tantek
the datetime attribute for <time> is a bit more user/author friendly than ISO8601
#
tantek
KartikPrabhu: it's not an HTML editor. It's a WYSIWYG editor that sort-of supports some HTML as an advanced escape hatch for those that "know what they're doing"
#
tantek
kind of like a lot of Markdown variants
#
KartikPrabhu
always like a pure HTML mode, like Blogger had. But they did other horrible things so...
#
GWG
But, what you seem to be doing is putting in 20 minutes ago?
#
GWG
So you want relative as opposed to absolute time displayed in the theme then?
#
GWG
If you put the time code in the post editor, it will be absolute
#
KartikPrabhu
GWG: human readable relative time in text but absolute time in data elements sounds good to me
#
webkernel
i know.....
#
webkernel
it's absolute
#
GWG
webkernel: Just trying to understand.
#
webkernel
i am just making my first steps into microformats
#
webkernel
and i am testing
#
webkernel
this is not a real post :)
#
GWG
webkernel: SemPress uses mf2 markup though with time
#
GWG
But you can change the display to make the times show relatively while marked up absolutely.
#
GWG
There is even a plugin for it called relative date
#
GWG
Either way, if you are experimenting with markup manually, just use the Advanced settings I mentiond
#
tantek
makes some remark about minimizing use of "just", especially with reference to any "settings" ;)
#
tantek
or "simply" for that matter :)
#
webkernel
tinyMCE solves the problem
#
GWG
tantek: Merely install the plugin, which will allow you a settings interface for settings you yourself could set manually, but don't have to.
#
GWG
Why code when someone has?
#
tantek
lol: "merely"
#
webkernel
i've installed the plugin
#
GWG
pulls out thesaurus
#
GWG
Purely
#
GWG
Solely
#
GWG
KartikPrabhu: You don't do relative time on your site
#
webkernel
what is the advantage of using sempress? I still need to use microformats in my code, right?
#
GWG
webkernel: Sempress is the theme. You can always write your own, I did.
#
GWG
Sempress marks up the page for you
#
GWG
IT puts whatever you put in the post editor inside e-content
#
GWG
It adds the post metadata in the proper formatting
#
webkernel
cool
#
GWG
webkernel: You can always do your own code. I wrote my own Wordpress theme that has the microformats built in inside it, in thesame way Sempress does.
#
webkernel
for that I need to learn code.... I am making my first steps into the world of modified content...sorry :)
#
webkernel
may i say i'm a dumb?
#
tantek
no. but you may say you are learning :)
#
GWG
webkernel: Never say that.
#
GWG
There is always something new to learn
#
GWG
And tantek makes me feel like I should know more all the time.
#
GWG
But he's been doing this much longer than I have
#
webkernel
that's my intention....to learn. Stiff learning curve though
#
tantek
may we all never stop learning
#
GWG
tantek: That's the challenge
#
webkernel
yeap
#
tantek
and the opportunity :)
#
GWG
To learn and to share
#
webkernel
i'll begin with html i supose
#
webkernel
then CSS?
#
webkernel
javascript?
#
GWG
webkernel: What is your goal?
#
webkernel
blogging and be able to fine tuning my themes
#
webkernel
cross-posting
#
webkernel
indieweb
#
webkernel
that will be enough for now :)
#
GWG
webkernel: Do you want to use Wordpress or something else?
#
GWG
Cross-posting to where? You mean POSSE to Facebook/Twitter/etc?
#
webkernel
till today all my experience is with WP and also with tumblr (for some months), but always in a user level
#
webkernel
POSSE yes
#
webkernel
i'm using Bridgy with tumblr
#
webkernel
I have a hosting and a domain
#
webkernel
i can install other blog software if that is better for my learning process
#
GWG
webkernel: If you want to stick with Wordpress, you can install plugins to add Indieweb functionality, and customize for additional ones.
#
GWG
For example, the Webmentions and Semantic Linkbacks plugins add those features to Wordpress pretty seamlessly.
#
GWG
My Semantic Comments plugin changes the presentation of comments on a Webmention site
#
webkernel
i think i'll stick with WP
#
webkernel
step-by-step i'll try to understand all those concepts like rel-syndication, webmention, etc.
#
GWG
IF you want to POSSE without Bridgy, try the Social Plugin or the Nextscript SNAP plugin
#
GWG
IF you want to add rel-syndication, you have jihaisse's Wordpress Syndication plugin or my Syndication Links plugin
#
GWG
IF you want to be able to set reply/like/favorite terms on posts that are in response to other posts, try the Indieweb Taxonomy plugin
#
webkernel
i've installe indieweb plugin right now and other recommended ones
#
webkernel
i'll go for social plugin
#
GWG
Different people have different preferences.
#
GWG
I didn't use the Wordpress Syndication plugin, and wrote my own, because I had different needs.
#
GWG
I suppose I could have contributed to jihaisse's plugin, but...
#
webkernel
i think Wordpress Syndication doesn't work with WP 4.0
#
webkernel
it runs only up to 3.7
#
GWG
Mine is still being developed.
#
GWG
I need to add an automatic content filter for people who don't want to code
#
GWG
And instructions
#
GWG
makes notes of things he should do
#
webkernel
:) great
#
webkernel
well.... it's very late now. I need to sleep. Tomorrow another working day!
#
webkernel
tks vy much for your help
#
webkernel
i'll be back :)
#
GWG
webkernel: That gives me till tomorrow to push that out in an update to the repository
#
webkernel
good night everyone! regards from Portugal
#
Loqi
buenas noches
#
webkernel
boa noite
gordonb joined the channel
#
tantek
GWG thanks and well done :)
#
GWG
tantek: I want to help
#
KartikPrabhu
GWG: yeah I don't like purely relative times. something like absolute-time (relative-time) might be better
#
tantek
I think aaronpk wrote a blog post about relative times
Soopaman, gordonb, tantek, gRegor`, KevinMarks_, Aranjedeath, eschnou, shaners, pfefferle, krendil, kez, robmorrissey and webkernel joined the channel
pfefferle and webkernel joined the channel
#
webkernel
hi..anyone knows why I can't create an app in twitter named NextScripts?
#
webkernel
twitter NextScripts is already taken for Name
pfefferle and Exploter joined the channel
#
psi
edited /hcard-examples-in-wild (+132) "/* new and uncategorized examples */"
(view diff)
Exploter, Soopaman, pfefferle, encolpe, KevinMarks_, webkernel, TallTed, Aranjedeath, gRegor`, tantek, robmorrissey, gordonb, jschweinsberg, shaners, krendil, KevinMarks___, KartikPrabhu, netweb1 and ivc\zz joined the channel