My apologies to everyone who is following me on Livejournal! I re-imported my entire Livejournal archive into my blog but I accidentally left my LJ cross-posting plugin turned on, so it got into an infinite loop where I would import a post, and then it would get cross-posted, and then imported again… This meant that duplicates of my old posts dominated everyone’s friends pages. I went back using Xjournal and manually deleted all of the duplicate posts from Livejournal, so everything should be back to normal.
The good news is that all of the old LJ comments have been imported with threading this time, thanks to the new Livejournal importer in the unstable “trunk” version of WordPress
Huge thanks to Beau for writing the importer, it worked perfectly.







Hey @skyfaller, glad to hear that it worked for you!
Did you happen to notice anything at all that was wrong or could have been handled better? I’m trying to make sure this is rock-solid ready for an official release in 2.8 hopefully.
Cheers!
Beau
I haven’t noticed anything that was an obvious *bug*… however, one thing that I consider to be problematic is that the “friends-only” posts show up as password-protected entries on my blog, with the titles still visible. This may be a limitation of WordPress, but on Livejournal the titles were not visible to people who were not my friends. Some of the titles are too revealing and I have to go make them completely “private”.
I think it would be better for people to have to log into my blog to see the titles on the “friends-only” posts, or to even see that they exist at all, really.
Some of the tags on friends-only posts are also a bit revealing, and those are also things I think might be better hidden unless someone is logged into my blog.
Hmmm good point. I think technically this is dependent on your theme (which can choose not to show anything if the post is protected), but most themes show at least the title, even on protected posts.
So basically, you’d prefer any post on LJ that’s either Private (me only) or Friends Only, should come across to WP as being Private?
My only concern with this is that once you give your friends accounts on your WP blog, they log in, and then they can see any of your posts which were previously “Private” (for you only). I think that was my reasoning behind doing it the way I did previously.
Doing it this way gives the separation where you can send your friends a password so they can access your posts, but still retain completely private posts as well.
I’ll check this out a bit more and see if there’s something I can do with it.
You can modify your theme so that it uses something like this to prevent displaying anything at all for a protected post
Urgh, sorry – code got eaten – try this:
[?php
if ( post_password_required($post) ) {
echo get_the_password_form();
} else {
// Normal title + post + meta display
}
?]
Where do I put that code again? I guess we need to kill the titles both on the individual posts and when viewing multiple posts from the archives…
Also, won’t we have to edit some core WordPress code to make the “Tags” widget not display tags from friends-locked posts?
Hmm the tags widget (core code) would need to be changed to exclude tags on private posts. You might want to file a ticket for that in Trac, and see what level of support there is for it (might slow down those queries a lot, I’d have to look).
As for the code above, you want it to wrap around the entire section in your theme that outputs a post. So on index.php and probably single.php, you want to take that code above, drop it in, and then move everything that currently shows the title, body, etc, so that it appears where the “//Normal post…” part of it is.
Hope that makes sense.
I’m sorry, I’m just not enough of a coder to figure this out apparently. Searching the web has also been unhelpful, turning up content-free threads like http://en.forums.wordpress.com/topic/hiding-categories-post-title-with-password-protected-entries … Can you give me an example of an index.php file that has been modified the way that you suggested and works? If you could do that for the default theme then I can probably figure out how to do it on my theme.
Thanks for the e-mail! I got your index.php file and modified my theme the same way, and it works
It looks a little strange, especially when there are a lot of password-protected posts in a row, but at least it’s not exposing my friends-only post titles to the world.
I still feel that there needs to be a better long term solution to this problem, but I think now I may be able to open this site to Google / the robots of the web, which is all I need in the short term. (I don’t want those private titles archived by search engines.)
Is there no way to have certain posts be only visible to certain levels of user, e.g. “Administrators”? That could be the setting for “Private” posts while “Friends-only” posts could be available to some lower level of user on my blog?
Actually, I’m doing some tests right now, and the different Roles (user types) in WP do allow for some level of control over this.
A “Subscriber”, “Contributor” or “Author” will not see “Private” posts (either in their admin section, or on the blog itself), but they will see “Password Protected” posts, provided they know the password.
Once you bump someone up to be an “Editor”, then they see your “Private” posts, and don’t require a password to access “Password Protected” posts either.
The problem with using this is that you’d need to elevate someone’s privileges all the way up to Editor (so they can edit your posts and do all sorts of things), just so that they could read some Private posts.
I’m thinking the way it is is probably the best way still. It just means that if you’ve got titles/tags that you want hidden, then you’d need to modify your theme to ensure that’s done.
?