OpenID Comments for MT 1.5 and TypeKISS 1.1

I built a new version of OpenID Comments this morning. This version implements the original idea of using the other metadata headers on your OpenID for profile exchange. Now if you sign in and your OpenID has a discoverable FOAF document or Atom feed, it'll use the name from there as the name displayed on your comments.

I added this support quickly, testing on my LiveJournal, so it might not work with every FOAF or Atom document. Feel free to comment here if it doesn't work with yours. I should probably also support RSS and vCards, but FOAF and Atom were easy. (vCard metadata isn't exposed by Net::OpenID::Consumer, and probably won't be, since Brad and David are busy building a new system so OpenID services can use LID's profile exchange mechanism.)

So here's 1.5. FOAF and Atom name discovery was the only change, so feel free not to upgrade if you don't care about that.

This change in OpenID Comments exposed another problem with the TypeKISS plugin I use for the sign-in notice: if you have spaces in your name, they're displayed as URL-escaped %20s. I went ahead and fixed the existing problem where SignedInNames on the preview page were garbage (it was using the actual name of the commenter object, which is openid plus a random number). But if your name has a space in it, TypeKISS (which I'm using here) will still show it with a %20 in the middle. I don't see any way to do URL decoding in SSI. It'll take some more experimentation to figure that out.

Meanwhile, that old bug is fixed in TypeKISS 1.1.

Comments

comment

Picked me up out of my (probably horribly outdated) FOAF just fine, and the failure to pick me out of my Atom is a good reminder that I should hack it into having a feed-level author rather than repeated per-item ones.

comment

So it’s working fine with my FOAF file, and on my site as well.

Thanks!

comment

Just one comment: when posting here I’m getting “You: Neil%20Turner (sign out)”. I’m not getting that on my site though so it may be something specific to here.

Anyhow, thanks for the update, it makes OpenID feel like less of a poor relation to TypeKey.

comment

Yup, that’s part of the TypeKISS plugin that you’re not using. :) Shouldn’t be a problem for anyone using OpenID Comments without it.

comment

I’ve installed the newest version of your plugin and I don’t know what’s wrong, but I can’t get it to show up.

I uploaded all the as ASCII files, CHMODed the cgi file, turned on typekey and off email requirement, and put into my individual entry template. But nothing shows up. How can I find out what’s wrong?

comment

If you go to System Overview then click Plugins in the left toolbar, is “OpenID Comments” in the list?

I think you tried to write “and put <MTOpenIDSignOnThunk> into my individual entry template” but it didn’t come through. Is that, or <MTLiveJournalSignOnThunk>, the tag you added?

Did you save an entry after doing that, to republish the page with the new code?

comment

I’m actually trying to do the Livejournal one and yes, open id comments is in the list and enabled.

comment

Maybe it’s not in the right place in the template. Can you point me at a page where it should be showing?

comment

I put it right before the form just as in an example I saw.

Here’s an individual entry.

comment

Looks like a problem with your template code: you have showing up in your published HTML, so something is wrong. Could you email me a copy of your template code? I’m markpasc at this domain.

comment

I don’t know cause even if I use the default template it still doesn’t show up. Could it be something to do with the perl modules or something? If you check again I changed it to the default template and its still not there. Would you like me to send the template code anyway?

comment

Hmm, I guess not. :/ I’m not sure what it might be if it shows up in the Plugins list yet the tag does nothing. Check that you spelled the tag right (MTLiveJournalSignOnThunk, not SignIn)? :/

comment

Yup, I copied it directly. :) And I’ve tried both of them, the open id and livejournal. Is there a way I could put it in manually without the tag?

comment

Sure, there’s HTML in the README in the zip file. It still uses the MTOpenIDSignOnURL tag; you can replace it with the URL path to your MT install and plugins/openid-comment/signon.cgi if it doesn’t work either.

Change name="openid_url" to name="lj_user" if you want people to enter LiveJournal names.

comment

I wanted to say thanks for your help from yesterday. I got carried away with testing and fixing things, so I hadn’t gotten a chance to say thanks.

I’ve pretty much gotten it to work, except it doesn’t tell you once you’re signed in and there’s no way to sign out. Is it possible for you to let me see and use your template code with the CSS tabs and stuff to copy from, and credit of course, or would you rather keep that yours and private?

comment

You’re welcome!

I’ve no problem sharing the code; I posted it here for you. I hadn’t shared it before because there’s another plugin I use, TypeKISS, that makes it less useful to anyone else. If you don’t use SSI and TypeKISS or PHP and PHP-TypeKey, you have to rewrite a bunch of it as JavaScript to make it work. :/

comment

All right. I thank you for the code you posted and I’ve got it all working now. But I have another question. :) I signed into my own blog with my LJ name and commented to test it out, but it showed up with the typekey url and icon instead of livejournal. What’s wrong? Oh, and how do you change the icon to the left of the name instead of to the right?

comment

Great, glad it’s working better!

The TypeKey icon problem looks like it’s not picking up the plugin’s replacement MTCommentAuthorIdentity tag correctly. Are you using dynamic pages for your individual entry archives?

You can move the icon around by changing where the MTCommentAuthorIdentity tag is in your template code.

comment

I’m not quite sure what you mean by dynamic pages. My pages are php. You can see an example comment here. And doesn’t moving that tag just move the author to somewhere else? How does it change the icon?

comment

The MTCommentAuthorIdentity tag is only the icon. There should be a MTCommentAuthorLink tag next to it, to make the name. You should have something like:

<MTCommentAuthorLink show_email="0" no_redirect="1" default_name="Anonymous"> <MTCommentAuthorIdentity>

so change it to:

<MTCommentAuthorIdentity> <MTCommentAuthorLink show_email="0" no_redirect="1" default_name="Anonymous">

For dynamic pages, I meant dynamic publishing. You can see the setting if you go to Settings → Publishing, in the Publishing Preferences section, look for “Dynamic Publishing.” Do you have “Build all templates statically” selected, or one of the other options?

comment

All right I got the icon to move. And I have it set to ‘Build all templates statically’. Also, I want to thank you for all your help.