Log In

Home
    - Create Journal
    - Update
    - Download

LiveJournal
    - News
    - Paid Accounts
    - Contributors

Customize
    - Customize Journal
    - Create Style
    - Edit Style

Find Users
    - Random!
    - By Region
    - By Interest
    - Search

Edit ...
    - Personal Info &
      Settings
    - Your Friends
    - Old Entries
    - Your Pictures
    - Your Password

Developer Area

Need Help?
    - Lost Password?
    - Freq. Asked
      Questions
    - Support Area



melannen ([info]melannen) wrote,
@ 2009-04-19 20:18:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood:*thud*
Entry tags:dreamwidth, tutorial

OpenID tutorial for JF
Hi, all. I am still messing with JF/DW imports and stuff. And thus I have created this tutorial for getting an OpenID through your journalfen. I'd love it if a few of you'd try to work through it and tell me if you succeeded and where it's confusing; it shouldn't take very long, if it works. I'll probably be crossposting it to a few JF and DW communities eventually.

So, Journalfen is an LJ clone site from which you can import to DW, but it does not actually have a functioning OpenID server. So it is difficult to actually use the openID JF accounts that the Dreamwidth importer creates.

However you can still use a JF OpenID by using OpenID delegation. That is, link your JF page to an account that *does* have an OpenID server, and Dreamwidth will use that server to give you a JF OpenID.

The Easy Way:

  1. If you're currently using S2, switch back to S1 by going to: http://www.journalfen.net/customize/switch_system.bml and choosing "switch to S1". If you're already in S1 (new accounts at JF still default to S1, I believe), skip to step two.

  2. Go to http://www.journalfen.net/customize/ , and scroll all the way to the bottom, to where it says "Overrides". Copy/paste this text:
    GLOBAL_HEAD<=
    <link rel="openid.server" href="http://www.exampleserver.com/openid/server.bml" />
    <link rel="openid.delegate" href="http://yourusername.exampleserver.com" />
    <=GLOBAL HEAD

    (JF seems to be sometimes adding an extra <=GLOBAL HEAD at the end when you save; if this happens, go back, take out both the <=GLOBAL HEAD s at the end, and save again, and you should be fine.)

  3. If you're going to delegate to an LJ clone, replace "exampleserver.com" with the service you're delegating to, and "yourusername" with your username at that site. LJ, DW, IJ, inksome, and basically everybody who is cooler than JF will work. However: you have to be logged in to that service in order for your journalfen openID to work. So pick a service that a) you are usually logged in to, and b) you are *not* going to be using your JF OpenID account at. (You can't be logged in to your personal account there while logging in to your OpenID, so you will always get a login failure.)

    If you want to delegate to something that isn't an LJ clone, and get around the login problem, try an OpenID from one of these places. In the text in your JF style, you'll replace "http://www.exampleserver.com/openid/server.bml" with the URL of your service or domain's openID server, and replace "http://yourusername.exampleserver.com" with the URL of your account there.

  4. Click "Save Changes" at the bottom of the page.

  5. You should now be able to use your JF account anywhere you can login with OpenID. However, make sure the URL you use is www.journalfen.net/users/yourusername , since JF doesn't do subdomains. In terms of DW, you will be able to use that account to claim and put an icon on imported comments originally made on JF, and eventually associate that account with your personal account. It will not affect your ability to use the OpenID account you delegated to (so, I delegated my JF openID to my LJ, but my LJ openID account still functions completely seperately and it counts as another openID account for invite code lottery purposes)


The Hard Way
  1. Think very hard about how badly you want to keep using S2. Most of the JF styles are there in S1 too! And S1 is so easy to customize if you know even a little HTML! If you decide to switch to S1, go to The Easy Way.

  2. Are you sure you want to stay in S2? It's really much nicer over in S1 land! ... fine. Go to http://www.journalfen.net/customize/advanced/ . We're going to create a custom theme layer. This is technically only allowed for paid users, so if you're a free user, you really ought to try The Easy Way. Or you could dishonestly take advantage of the fact that JF doesn't bother to block free users and do it anyway. I guess. This tutorial for creating theme layers is pretty good, and has pictures, so do reference it if you get confused here. If you're already using a custom theme layer, skip to step 4.

  3. Go to "Your Layers", then "Create layout-specific layer", type= "Theme", layout= whatever layout your journal is currently using, and click "create".

  4. The layer you just made should now appear in the chart at the top of the page, labeled "child of" whatever layout you used. If you're already using a custom layer, choose that one. Click the "edit" button under it to go to the S2 compiler.

  5. If this is a new layer, you should see a mostly-blank screen divided into several boxes, with the text
    layerinfo "type" = "theme";
    layerinfo "name" = "";
    in the largest box. Fill in the "" after name with a name that will remind you what layer this is.

  6. Underneath those first two lines, copy and paste this text:
    function Page::print_custom_head() {
    """
    <link rel="openid.server" href="http://www.exampleserver.com/openid/server.bml" />
    <link rel="openid.delegate" href="http://yourusername.exampleserver.com" />
    """;
    }
    It should also work to copy-paste the same text with a pre-existing theme layer, but I have not tried it.

  7. If you're going to delegate to an LJ clone, replace 'exampleserver.com' with the service you're delegating to, and 'yourusername' with your username at that site. LJ, DW, IJ, inksome, and basically everybody who is cooler than JF will work. However: you have to be logged in to that service in order for your journalfen openID to work. So pick a service that a) you are usually logged in to, and b) you are *not* going to be using your JF OpenID account at. (You can't be logged in to your personal account there while logging in to your OpenID, so you will always get a login failure.)

    If you want to delegate to something that isn't an LJ clone, and get around the login problem, try an OpenID from one of these places. In the text in your JF style, you'll replace "http://www.exampleserver.com/openid/server.bml" with the URL of your service or domain's openID server, and replace "http://yourusername.exampleserver.com" with the URL of your account there.

  8. Click the "Save and Compile" button at the top of the screen. If you're lucky, the page will reload, and the box at the bottom of the page will tell you "compiled with no errors". If the box at the bottom of the page spits gibberish at you instead, try the easy way.

  9. If your layer compiled with no errors, go back to http://www.journalfen.net/customize/advanced.bml . If you're already using this custom layer, skip to the last step. If you created a new layer, choose "your styles". Go to "Create style", type in a name for your OpenId-ified style, then click "create".

  10. You're taken to the Edit Style page. Go down to "Style Layers", and select the layout you chose when you created your theme layer. This should give you more options; go to the "Theme" dropdown, and select the theme you just made (it will be at the very end of the list.) Choose "Save Changes"

  11. You should get taken to the "Your Styles" page. Click the "use" button next to the style you just created. Your journal should now be using the new style, including an openID delegation in the headers. However, if you ever change your style or theme, you will need to repeat this tutorial. (Or you could just switch to S1 and do it the easy way.)

  12. You should now be able to use your JF account anywhere you can login with OpenID. However, make sure the URL you use is www.journalfen.net/users/yourusername , since JF doesn't do subdomains. In terms of DW, you will be able to use that account to claim and put an icon on imported comments originally made on JF, and eventually associate that account with your personal account. It will not affect your ability to use the OpenID account you delegated to (so, I delegated my JF openID to my LJ, but my LJ openID account still functions completely seperately and it counts as another openID account for invite code lottery purposes)


(Post a new comment)


[info]stellar_dust
2009-04-20 03:58 am UTC (link)
I did it the Hard Way!

Note: If you want your layout to still look the same, you need to also pick Auto-Generated Customizations for the User field in Step 10. And even so, I had to go in and reset a bunch of colors.

(Reply to this)(Thread)


(Anonymous)
2009-04-20 04:08 am UTC (link)
Ah, good to know! Were you editing a pre-existing custom layer, or did you create a new one?

(I did it with a completely non-customized S2 account, because I've never had a customized one.)

Did you get it validated on DW and everything?

(Reply to this)(Parent)(Thread)


[info]melannen
2009-04-20 04:08 am UTC (link)
...and that, of course, was me.

(Reply to this)(Parent)(Thread)


[info]stellar_dust
2009-04-20 04:23 am UTC (link)
I added a new one - I didn't have any pre-existing custom theme layers, only user layers, so I had to. (I wonder if it would work if you inserted the stuff into a user layer instead of a theme? They don't seem all that different. Hmm.)

Yep, it got validated and everything! The un's all weird though, like stellar-dust[journalfen.net].

(In #9 you need to get rid of the .bml on the url.)

(Reply to this)(Parent)(Thread)


[info]melannen
2009-04-20 04:38 am UTC (link)
Huh. The impression I got from my messing the last couple days is that if you've done any customizing, even changing the colors, there should be an "auto-generated customizations" theme layer for it under "your layers". I guess it is a user layer rather than a theme layer, though. It seems like you ought to be able to just stick the code in there, after the first two lines. (In case you can't tell, I know nothing about S2 really.)

On the other hand, just adding the theme layer *oughtn't* to have done anything to your color settings.

(Reply to this)(Parent)


[info]melannen
2009-04-20 09:02 pm UTC (link)
Okay, have tested it, and just insertng it in an autogenerated user layer seem to work fine, and not bork the colors. I guess I'm going to completely re-work the tutorial for S2 :P

(Reply to this)(Parent)


[info]zvi
2009-04-20 12:42 pm UTC (link)
I had wondered why you didn't use journalfen as your OpenID, since that's your main journal. I didn't realize that JF was pre-OpenID.

I have a suggestion for an addition to this text: http://delegatid.com/ will return the URL of the openid.server based on your openid URL. For a lot of openid servers, it's really non-obvious what the openid.server is.

(Reply to this)(Thread)


[info]melannen
2009-04-20 08:59 pm UTC (link)
Yeah, JF pushed an update a few months after Strikethrough (which is when we got tags and S2, among other things) that *was* post-OpenID, which is why some of the JF documentation claims it exists. But they either never got the OpenID part working or never bothered to turn it on, because it doesn't actually work (and http://www.journalfen.net/openid/server.bml says OpenID is disabled.)

And thank you! I'll add that link when I re-tool the post. (In case you can't tell, I don't actually know what I'm doing with openID.)

(Reply to this)(Parent)


[info]stromatolite
2009-04-20 05:51 pm UTC (link)
Thanks for putting this up! I didn't even know using Journalfen OpenID was possible.

(Reply to this)(Thread)


[info]melannen
2009-04-20 09:01 pm UTC (link)
Well, it's not, really, this is just how to fake it. :D

(You can actually get delegated OpenID for any URL where you can insert the two < link> tags in the html header; most of this post is just me figuring out how to insert stuff in headers for LJ styles.)

(Reply to this)(Parent)


[info]melannen
2009-04-22 03:27 am UTC (link)
If you would like a DW invite code, e-mail me at thisusername @ yahoo . com and I will send you one!

(Reply to this)(Parent)(Thread)


[info]stromatolite
2009-04-22 03:11 pm UTC (link)
Thank you very much!

(Reply to this)(Parent)


 
   
Privacy Policy - COPPA
Legal Disclaimer - Site Map