WordPress.org

Support

Support » Plugins and Hacks » Live Journal Plugin Pack Release 0

Live Journal Plugin Pack Release 0

  • 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.

Viewing 15 replies - 1 through 15 (of 85 total)
  • 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.

    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.

    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 🙂

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

    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.

    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!!! 🙂

    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.

    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.

    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.

    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.

    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.

    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 🙂

    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.

    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)

    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.

Viewing 15 replies - 1 through 15 (of 85 total)
  • The topic ‘Live Journal Plugin Pack Release 0’ is closed to new replies.
Skip to toolbar