Live Journal Plugin Pack Release 0 (86 posts)

  1. unteins
    Posted 11 years ago #

    Ok, after much pain and suffering, I have my plugin pack ready to go.
    This is release 0, which means that they should work, but they have only been tested by me on my blog. Also, there are many features that aren't in them, that I hope to add in the future.
    You can get the whole set here
    To install, simply unzip the file into you wp-content/plugins folder on your blog. Then login to the Admin screen, click on Plugins and activate all the the LJ plugins.
    Here is what each does and what customization you may need to do
    LJ Extras: This is the GUI system that drives the rest of the plugins. It is optional, but it makes dealing with the others much simpler. Without it, you need to manually create up to 6 custom meta tags. I STRONGLY suggest installing it. Once it is activated, you will see a new set of buttons and input fields in the post editing interfaces.
    LJ Mood Icons: This plugin will display your mood and the LJ mood icon (Classic set only in this release) that goes with it. You can customize the text that appears before the mood by editing the string set in $mood_text in the file ljmoods.config.inc. Just replace the text in the ' ' with whatever you want it to say. The moods will appear below your post. You can also customize the paragraph by editing ljmoods.css in the plugins folder. This plugin uses two meta tags called unt_lj_moodid and unt_lj_mood to store the mood. These are created by the LJ Extras plugin, or you can add/edit them manually. If you disable the plugin, the mood will not be displayed on your post, but the meta data will be saved.
    LJ Music: This plugin will display the music you have set under each post. You can customize the text that appears before the music by editing the string set in $music_text in the file ljmusic.config.inc. Just replace the text in the ' ' with whatever you want it to say. You can also customize the paragraph by editing ljmusic.css in the plugins folder. This plugin a meta tag called unt_lj_music to store the music. These are created by the LJ Extras plugin, or you can add/edit them manually. If you disable the plugin, the music will not be displayed on your post, but the meta data will be saved.
    LJ Synch: This plugin will synch your post (no comments, hopefully in a future upgrade) with a Live Journal account. The plugin will also allow you to edit posts you have made to Live Journal through Word Press (currently only for posts that you synch with the LJ Synch plugin originally, though it is possible to manually setup imported posts to synch as well. This plugin uses 3 custom meta tags, I will explain each seperately.
    unt_lj_entry: this is the entry number returned by LiveJournal when the entry is synched. If you have an imported entry and know the LiveJournal entry number (this is NOT the same as the numbers in the html file that shows the page, this must be the internal itemid) you can manually create this entry along with unt_lj_journal and unt_lj_synch to enable editing of old posts on LiveJournal via WordPress. I hope to add support for importing the itemid and more in the future.
    unt_lj_journal: This is the journal that your post will be published to on LiveJournal. This value can be manually set, but it will also appear in the LJ Extras GUI in a drop down list. You can have more than one journal configured to post to. To configure the drop down list, you need to do the following. Open ljsynch.config.php and edit the line $journals['test'] = 'test';. Replace the part in [' '] with your LiveJournal username and the part in ' ' after the = with your password. Add additional lines in the same format to support more journals. Currently, you must have a username and password to post to the journal, I hope to support shared journals(groups) in a future relase.
    unt_lj_synch: This determines whether or not an entry will be synched when it is posted or edited. If the value is "checked" then it will be synched, otherwise it won't. You can set this setting via the checkbox in the LJ Extras GUI, or manually.
    LJ Tags: This plugin converts LJ user and LJ Cut tags in WordPress posts to HTML so that you can synch these tags with Live journal. Currently, the LJ Cut tag requires a [lj-cut] style syntax instead of the usual < style.

  2. unteins
    Posted 11 years ago #

    There was a bug in the first release of LJ Extras, you can grab an update here
    Or you can regrab the full set above.

  3. arghnoname
    Posted 11 years ago #

    Cool. With the hack I have it set up so my brother can check or uncheck if a post gets sent to livejournal. Does your synch plug-in have that option?
    Anyway though, I don't think I'll install it quite yet. I just got the hack working, and I think he's taken all the tweaking he can take from me for about a month or so.
    It's tempting though, a nice plug-in system with your bells and whistles makes me itchy to try it.
    He's kill me.

  4. unteins
    Posted 11 years ago #

    Yes, there is a checkbox for whether or not to update the live journal.
    I'd say let it settle for a day or two, then go for it :)

  5. arghnoname
    Posted 11 years ago #

    That's probably what I'll do. I'm not very patient.
    Thanks for the plug-ins!

  6. arghnoname
    Posted 11 years ago #

    I set up a livejournal account and was testing this on my own wordpress blog (as opposed to fitzing with my brother's), and when I published my post, it doesn't appear as if it got sent to livejournal.
    No errors were generated, it just didn't seem to work. I made sure to have the post to livejournal checked and changed the username and password in the config file. Incidentally, how do you have it so by default it is checked?
    I left unt_lj_entry blank, as I assumed was correct.
    I had installed all of the plug-ins, but only activated lj_sync and lj_extras. I also tested once with all of your plug-ins activated.

  7. tinarenee
    Posted 11 years ago #

    I'm having the same problem as AndySocial, except I'm not getting an error - it just doesn't show up on the LJ side. (my password is alphanumeric) I'm really excited about this plug in and want to make it work!!! :)

  8. TecFreak
    Posted 11 years ago #

    I found another bug. Its the same one from before, except this time it's on the edit comment page. The LJextras thing is all the way at the bottom when it shouldn't be anywhere.

  9. AndySocial
    Posted 11 years ago #

    One thing I've encountered in my error logs, which I have fixed by hacking the PHP code - directory paths. They're set to ../wp-content etc. This seems to cause no end of errors on my system, creating "file not found" errors for all the CSS files. So I fixed the code on my system by changing to /wordpress/wp-content etc. instead. This is something that might be coded into one location?
    Regardless, it still doesn't work at all on my system. It runs, but nothing like a decent result happens. The LJ-Synch module doesn't send a post to LJ. The LJ-moods module doesn't pull the graphics from LJ. I haven't tried the LJ tags support yet, but the only thing I was actually hoping for was lj-synch.

  10. unteins
    Posted 11 years ago #

    Ok, here is the situation.
    1) TekFreak - I will take a look at that one and figure out how to make it hide so it isn't there.
    2) AndySocial - I will look at the paths. I think all you need to do is remove the ../ from the path in the code for ljmoods.php and ljmusic.php. I will include an update with the fixed paths.
    3) There is a bug in the xml-rpc file that ships with WordPress that is causing the problem with it not posting. However, there seem to be a few other issues. I am looking into them as well. You can try to replace the wp-includes/class-xmlrpc.php with >a href="http://weblogtoolscollection.com/b2-img/class-xmlrpc.phps">this file and see if it works.
    I am sorry for all the problems, it was working well on my system. Believe me, I need the plugins to work well, so I will be fixing the bugs as soon as I have an answer.
    Thanks for the feedback and for trying them out.

  11. unteins
    Posted 11 years ago #

    AndySocial, the moods seem to be working fine. The text is displayed if there is no icon defined for the mood. LiveJournal doesn't define and icon for all of the moods. Accomplished is one of the moods that has no icon. Most of the rest do.
    Try any of these and you should get an icon, ecstatic, dirty, angry.
    If you look in the file moodlist.txt you can see which ones have icons defined.

  12. unteins
    Posted 11 years ago #

    I will keep looking into this.
    I have had it fail on my site as well. What is odd is that it appears to work on a fresh install of WordPress, but not afterwards.
    Sorry it is taking so long, but I am having trouble finding the bug (which I believe is in the class-xmlrpc.php file and not my code)
    So, there WILL be an update on this, as soon as I can solve the problem. Believe me, I am frustrated that it isn't working when it was earlier.

  13. unteins
    Posted 11 years ago #

    Good news, I think I have the problem solved in the new version 1.2.1
    You can download just the updated LJ Synch plugin here
    To install it, unzip the files into wp-content/plugins. Move class-IXR.php into wp-includes folder in the main WordPress folder. This file SHOULD be included when in WordPress 1.3 and is probably already in the nightlies.
    You can also download the whole pack here which now includes the new LJ Synch 1.2.1
    Hopefully this works nicely for you, it is working for me :)

  14. AndySocial
    Posted 11 years ago #

    Just deployed your new code, and it works like a champ. You rock.
    Thanks for all the effort on this - it's a great tool.

  15. unteins
    Posted 11 years ago #

    I got woken up really early this morning, so I am working on a new feature and I am also working on fixing something that I think is wrong (LJ posts are getting the current time stamp when posted/edited, they should get the same time stamp as the WP post)

  16. unteins
    Posted 11 years ago #

    The new version(1.2.2) is here
    The full set is here
    I added a new feature and I fixed it so that LiveJournal uses the WordPress timestamp instead of the current time.
    Here is the new functionality:
    The plugin supports a custom LinkBack which is added to every post. You will see a function in the ljsynch.config.inc file that creates the LinkBack. It defaults to link back to the post on your blog and uses the permalink as the href. You can customize this function as long as it returns a string. The result of this function will be added to the end of the post on LiveJournal. See the comments in the file for more information.

  17. Anonymous
    Posted 11 years ago #

    untiens! *mwah* - Workin' like a charm for me now! Posts in both places - really like the link back to my blog....Excellent work!

  18. Anonymous
    Posted 11 years ago #

    LOL - the *mwah* post was me...

  19. mog
    Posted 11 years ago #

    Downloaded the latest and it worked perfect. Now as to the smilies, how do I change them? It would be nice to match the LJ ones.

  20. unteins
    Posted 11 years ago #

    Which smilies where?
    If you mean on your WordPress blog, then you can always replace the files in wp-images\smilies
    However, if you mean the mood smilies, then currently it can be done by editing the ljmoods.config.inc and the moodlist.txt file (if needed)
    Here is what you need to do:
    1) Go here to find the LJ mood you want to use.
    2) Decide if you want to host locally (this may or may not have legal implications, it is up to you to resolve them) or pull the files from LiveJournal (I can't comment on the legal implications of this, nor can I tell you if the LiveJournal folks will be happy about it or not...)
    3) Either way you need to build a moodlist file. The one included with the mood plugin should get you a long way, but you will have to tweak it. Make sure each mood is listed with the right ID number. so it is mood:moodid:image where image is the name of the image file. You can get the image file names by right clicking on the images and choosing properties or looking at the page source. Make sure the mood file has a line that is :: or you won't be able to have a blank mood field.
    4) Once you have the mood list, you need to edit the two lines in the ljmoods.config.inc
    $mood_image_base_url - set this to the address of the image before the theme name. This should end with a /
    $mood_theme - set this to the theme name (ie the folder that comes right before the image name (no / before or after)
    The link to the image is built like this:
    $mood_image_base_url . $mood_theme . '/' . $mood_info[2]
    You can look at the config file and the image source in a WP post to see what I mean. I am hoping to have the time to expand LJ Mood Images to support multiple themes and the ability to assign themes per post on LJ (assuming LJ supports it) but this might be a little while.
    I hope that made sense, it is midnight, time for me to sleep :)

  21. arghnoname
    Posted 11 years ago #

    That works really well unteins, thanks!
    I was just wondering, what would I have to change so the default is to send it to livejournal? Checking the box every time isn't a huge deal, but I'd prefer that the default is checked, and I have to uncheck it to NOT send to livejournal.
    thanks again.

  22. unteins
    Posted 11 years ago #

    Ok, what you do is send a donation to me via PayPal.....
    errrrr.....ok what you do is redownload the plugins (here(
    Then go into ljsynch.config.inc and change $synch_by_default = false ; to $synch_by_default = true;
    You will also get a new userpics option. This is NOT an official release, so it is possible it is buggy. If you run into bugs, post here and I will see what I can do about it.
    There will be a new relase coming out that is at least slightly more tested in the future, with lots of additional features :)

  23. unteins
    Posted 11 years ago #

    It wasn't hard at all.....I have a fix in for the slashes already, I thought it was in this latest version, but maybe not....you can always try the link again and see if it is a newer version than the one you have....
    Right now I am adding a bundle of new features so it might be a couple days before the next release.
    I wanted to put a PayPal link on the page, but so far I haven't found a place to do it nicely yet....

  24. Craigo
    Posted 11 years ago #

    Okay, I think this is a bit strange but I'll try my best to explain this problem and I have been trying to find a solution but I cannot find one...
    If I do a text post to my weblog and then to LJ, it works. Good. Though....
    When I type up a couple of urls in the 'post' box, select 'mood' and then sync to LJ. This takes a long time to actually process it and the browser finally gave up and said 'session timeout' (or something similar). However, if I check via 'edit', the post actually got posted on my weblog but not to LJ!
    Now, here is a funny trick. If I select the mood and sync to LJ checked via the 'edit' panel and then just click on save. The actual post with URLs appears on LJ?!
    Sorry, if this gets a little confusing but am I doing something wrong or this hack isn't quite working for URLs posting?

  25. unteins
    Posted 11 years ago #

    Do you have the option to pingback URL's in the post turned on?
    What happens when posting is that a bunch of code executes and a lot of XMLRPC calls happen during this time. These can take a long time and may even time out. I probably need to do something to handle this more gracefully, but I haven't gotten there yet.
    I use the same trick on occasion when things don't work. I will definitely see if there is anything I can do to stop this from happening in a future release. First I need to finish the support for some additional extra features (like being able to post to LJ groups :)

  26. unteins
    Posted 11 years ago #

    arghnoname - Ok, I took your suggestion, there is now a button at the top of my menu on my homepage :)
    But seriously, I was joking in that post ;)

  27. mog
    Posted 11 years ago #

    What I've learned so far, draft posts show up in LJ, posts in the future, a cool WP feature, show up in LJ as soon as they are posted, defeating the purpose of the feature. And sometimes, when editing, posts come up duplicated in LJ necessitating deletion of the dupe. And when you want to delete one, checking last 20 gets:
    There was an error getting the journal entries to edit:
    Client error: Invalid text encoding: Cannot display this post. Please see http://www.livejournal.com/support/encodings.bml for more information.
    And checking on a certain date gets the same error message. Guessing it's a problem with text encoding, using UTF-8 for WP. Works for older, pre WordPress messages. Only way I've found to edit an old message in LJ is to view source of page and find message number of one want to edit, then click to edit latest message and insert number in location bar, hit enter, and, voila, get the right one. Something to work on thou if LJ uses different encoding, may be unfixable.
    I can write a post with the mood, which posts to LJ, then edit out the mood icon, inserting instead one of my custom smilies with synch with LJ unchecked and get the change in WP without the change in LJ.

  28. unteins
    Posted 11 years ago #

    I am a little bit confused about what is going on here. I am not sure exactly what problem you have.
    Could you try to explain it again for me, I really want to fix the problems for you. I am working on some updates to the whole plugin set, so I would like to put any bug fixes I can in.
    Also, do you know which version you have? does it have a userpic option?

  29. Anonymous
    Posted 11 years ago #

    The XHTML was not validating for me (specifically the image tag related to the move is not done in valid HTML). You need it to be: <img src="bla bla" /> instead of <img src="bla bla"> -- take out the spaces for your purposes.

  30. unteins
    Posted 11 years ago #

    I will look into that. I plan on cleaning up the whole thing once it is all coded. I am adding a ton of new options, but the code is getting a bit ugly.
    This should be a pretty easy one to fix though, thanks for the cacth :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.