[9/30/07 - currently working with WordPress 2.3 (important details at end of post)]
[5/15/07 - currently working with WordPress 2.2 (details at end of post)]
[3/15/06 - modified plugin currently working with WordPress 2.0.2]
Through a bit of trial and error I’ve managed to come up with a (relatively) quick ‘fix’ to get Live+Press (a LiveJournal compatibility tool for WordPress) to play nice with WordPress 2.0.#. It’s not a pretty fix, but if you’ve upgraded to WordPress 2.0.#, have a LiveJournal and aren’t coping well without the functionality of the Live+Press plugin the changes I’ve made will suffice for the time being.
Pros:
- The ‘write’ page no longer breaks in WP 2.0.# once the plugin is activated.
- LiveJournal usertags (e.g.
creepigurl,
tiny_terrors) will be visible/functional in your WordPress install once again (without the plugin, they simply disappear from the entry). - The WordPress post entry and edit entry functions both synch with LiveJournal, with all LJ options (mood, music, security, disable comments, ‘post to journal’, select user, etc)
Cons:
- Deleting an entry from WordPress will not synch with LiveJournal. The entry will have to be manually deleted from LiveJournal.
Moodicons will not show in WordPress. I’m not sure if it is theme specific in my case or an error due to the upgrade. I have not used this option in the past therefore I am not sure if this option was ever functional on my site.<– Moodicons work just fine ~ I simply needed to edit the moodlist.txt file in order to use the custom mood theme I selected *oops*.
You will need to make a few simple changes to the following files in the Live+Press 1.5.2 plugin: LivePress.php, lpextras.php and lpeditjournal.php. The class-IXR.php, found in the wp-includes folder of your WordPress install, will need to be modified as well. The changes consist primarily of commenting out several lines and insert a couple of lines of code, but to be on the safe side be sure to back up your Live+Press files and class-IXR.php before you make any changes.
Noteworthy: Live+Press1.5.2 was installed prior to upgrading and active during the upgrade of my WordPress intall from 1.5.2 to WP2.0.#. The rich text editor is disabled in my WP 2.0.# install. Also, the Live+Press plugin was active when I copied the three edited files over the original files. I don’t know if these factors have any real bearing on whether or not the mods will work ~ but since I was asked…
LivePress.php
Edit:
- comment out line 11

lpextras.php
Edit:
- comment out line 77, 79-82

lpeditjournal.php
Edit:
- comment out line 113
- insert a new line @ 114 and add the code exactly as depicted on line 114 in the image below

class-IXR.php
- Line 526: find
and change to$contents .= trim($line)."\n";
(as in Unteins version of class-IXR.php).$contents .= trim($line); //Unteins Fix Original: trim($line)."\n"; - Line 497: comment out
//echo '<pre>'.htmlspecialchars($request)."\n</pre>\n\n"; - Line 530: comment out
//echo '<pre>'.htmlspecialchars($contents)."\n</pre>\n\n";
[Please note]
These changes are offered ‘as is’ and ‘use at your own risk’. I’m an HR manager by trade and playing around with code, etc. is something I do in my (extremely scarce) spare time ~ there is a good chance these alterations may cause Live+Press to ultimately be more ‘broken’ than ‘fixed’ (though the changes have worked on each of the four WordPress installs I maintain). If you have any questions or suggestions on how to properly ‘fix’ this plugin please feel free to comment below. I’ll try my best to respond in a timely manner ~ no promises, though =)
Support history for SoMuchGeek’s original plugin can be found ::here:: and in the wordpress.org support forums.
IMPORTANT! Remember to replace the current class-IXR.php, found in your wp-includes folder, with the modified version of the file. Otherwise you will receive a series of frustrating errors regarding lpextras.php on your ‘write entry’ page.
Text versions of the modified files can be found here:
[UPDATE 3/15/07] Unteins has adopted the changes above in the unsupported version of Live+Press (1.99 at the time of this writing). The modified plugin is available in a handy zip file on his site.
[UPDATE 5/15/07- QUICK FIX FOR WORDPRESS 2.2] Live+Press no longer appearing in your ‘Write Post’ screen? It’s a simple enough fix - edit the following files: lpsynch.php & lpextras.php.
Find this line:
if (strpos($_SERVER['PHP_SELF'],'wp-admin/post.php') || strpos($_SERVER['PHP_SELF'],'wp-admin/bookmarklet.php')){
and add the following bit just after the first parenthesis:
strpos($_SERVER['PHP_SELF'],'wp-admin/post-new.php') ||
I don’t know for sure but I do not believe Unteins is supporting the plugin any longer. I have been unable to access the plugin page on his site for quite some time.
Alternatively, if you don’t want to manually edit the LP files, you can just download the edited plugin here: ::Live+Press1.99.9::. I cleaned up the ‘options’ page - made it a bit less ‘ugly’. I bumped the plugin version to ‘1.99.9′ ~ not due to any significant change in code, just to differentiate the updated version from 1.99. That, and I’m very tired right now ;-p
[UPDATE 9/30/07] No changes to the code were necessary, however after upgrading my Wordpress install from 2.X2 to 2.3 I did need to to take a couple of extra steps to get rid of array errors on the ‘write’ page. First I deactivated the plugin. Then I deleted the “unt_livepress_options” from the ‘option name’ in the ‘wp_options’ table of my database (warning: do this at your own risk). I reactivated the plugin and navigated to the Live+Press option page (I needed to refresh as I received ‘LivePress is not installed’ error) where I set my options and re-entered my journal information. I’m not sure if these steps will be necessary for everyone - I could not get Live+Press to work until I did this, however.
okay




Mmmm, you are my goddess today. Thank you for listing the changes, and in an easy to follow fashion (that’s most important and appreciated!).
Glad to be of assistance. Word has it unteins will have a new version out soon (points to comment below).
With your permission I will patch up Live+Press with your changes and my thanks.
A new, improved, actually working version of Live+Press is in the works :)
That would be fabulous! I hope you don’t mind that I played around with your code…I was having a hard time without the plugin ;-p Several people have emailed me asking for the changes, I figured a post with the changes would be the quickest way to help out.
I look forward to the next version ~ thanks for all of the work you’ve put into the plugin.
Just to let everyone know, the update is available from the Live+Press homepage at http://somuchgeek.com/code/livepress
Great news! Are there any changes other than the few I’ve listed above ~ if so I’ll need to download the new files.
Thank you again for all of the work you put into the plugin…Live+Press makes WordPress more worthwhile for me =)
Very happy to hear this! Thanks for your hard work.
[…] I’ve been working on the site and getting used to Wordpress 2.0 and seeing which plugins it will and won’t work with. Sadly the Live+Press plugin was the biggest loss, however it looks like I’ll be able to hack it back to functionality thanks to creepi.gurl’s instructions. […]
I believe that it’s working a-ok, but I’m getting a familiar (but I can’t recall how I fixed it) error on the Write Post screen here: http://www.flickr.com/photos/urbanbohemian/91831530/ - did you encounter the same thing? Is this a problem with the class-IXR file? Once again, thank you for your time put into making this work. :-)
Ignore that earlier comment. A replacement of the class-IXR.php file fixed the screen. *d’oh*
I’m glad you got it working! Perhaps I should put a reminder to replace the class-IXR.php file in my post. I too forgot to replace the file initially and it was quite frustrating until I recalled my original install issues with 1.5.2.
[…] I may be back in service with LivePress… if you’re reading this on LiveJournal, my life is just a little simpler today, thanks to How To Break LivePress. […]
My life just became infinitely better because of you.
*kisses*
I’m glad it worked for you =)
[…] The WordPress plugin that helps me to crosspost between here and my LiveJournal is now (theoretically) up and running, thanks to these instructions for modifying the plugin. […]
[…] I found a hack to fix Live+Press for WP2. If you can see this in my LiveJournal, then it worked! […]
[…] In case you need it, it’s here: http://www.creepigurl.com/2006/how-to-break-livepress/ [link] […]
[…] ::creepi.gurl.(dot).com:: » Blog Archive » How to Break Live+Press (for WP 2.0) Despite the misnomer, this is an article on how to FIX Live+Press for WordPress 2.0 (tags: wordpress blogging livejournal howto) […]
Terrific Blog you have. Peace Out.
TreeFrog
[…] [edit] In order to get Live+Press 1.5.2 to work with WP 2.0.1 several of the plugin files need *slight* modifications ~ which can be found ::here:: (or downloaded as version 1.99 on Untiens’ site). Current Mood: hopefulCurrent Music: The sounds of HALO 2 drifting in from Cro’s room… […]
Hiya, this is Alhena from Bacblog, and I’m here because I found this post through Google… I wasn’t sure if you want to be bothered with more LivePress stuff, but you seem to understand the coding better than I do, and it doesn’t look like the official site is going to be updated anytime soon…
I have WP 2.0.1 and successfully installed LP 1.99 and edited the class-IXR file like you said. Everything is working fine, except one thing: on my “write” page, the userpics are not loading (the drop-down menu is empty). I’m not getting any errors. Is this normal, or can this be fixed, and if so, how? Also, if it can be fixed, can I make the userpics appear in my WP posts as well?
I’d appreciate any help, and I’d like to say thank you for making LivePress work with WP2!
Try entering your LJ info in the options page again. From what I recall I believe my info was blanked out at one time…but I’m not sure. As for using version 1.99 the files still reference the 1.5.2 directory from what I’ve been told. You can either change the directory name or grab the modified files I used ::here::. The modified class-IXR.php is included in the folder ~ it will need to be copied to the wp-includes folder.
I tested the upgrade and modified files on my friend’s (still unused) site and everything went as expected (see here: http://hexgirl.net/?p=11).
As far as userpics appearing in WP posts ~ I haven’t looked into that but I’m sure there is a way. If I come across anything I’ll let you know =)
I hope this helps.
Uploaded the 1.5.2 version without success, until I accidentally found out that all userpics appeared in the drop-down menu just fine when I had Javascript turned on. Duh!
Thanks for your reply, and I will keep looking if I find a way to have the pics appear in my WP posts as well!
You fucking rock my socks! :):):)
I got the darned thing to work! I still am getting the not array is array values crapola I was getting in 1.5.2 and not able to modify the options, but it works!
Weee!!!
[…] I’m on a posting spree because I finally fixed Live+Press 1.99. Turns out I had done all but three of the changes outlined here. They were all three supposed to be done to a certain file, and I apparently just missed ‘em. So now I don’t get a debug screen every time I post. Huzzah! […]
[…] So yesterday, I broke my website blog. I haven’t been using this thing because I was fed up that I couldn’t upgrade my Word Press software without losing my ability to cross post to LJ. I love my LJ, and hate typing in more two places, so if I type here and it goes to LJ that just leaves my Vox blog to update. Plus the comment spam was killing me. Everything from drugs to gay sex!!! So I gave up and decided to upgrade it and sacrifice my crossposting. I totally lost every entry I’d ever written. Thank goodness the new wp has the ability to import from LJ. I downloaded my archives from LJ using LJ Archive (this is a wonderful little tool for saving your posts by the way, even if you just want to have a backup) and imported them. Yay!! posts reappeared. Still I wanted my Live+Press back so I could synch with my LJ. So tonight, I googled and found CreepiGurl.Com had a solution, and the original creator took her solution and put it on his site as well. I’m all hooked up now, all the features of LJ right here in my little dashboard. Woot!! […]
Just installed 2.0.4 and cannot get this to work? I ran through the instructions above, but when I post, my lj does not get updated. I’m not getting any errors. I tried with rich text on and off. Has anyone gottent his to work with 2.0.4?
[…] I looked around and finally decided to install Live+Press. Freshly installed it has errors. It took a bit of digging, but finally between looking at the comments on the installation post and following the directions on creepigurl’s web page I got it working, yay geekery! Current Mood: pleasedCurrent Music: King Kong Permalink […]
[…] If you need help with the install, or something isn’t working right, you will more than likely find the answer in ::this post::. […]
[…] 2.2 and the dude who made it is no longer coding it. I was about to get frustrated but found Creepgurl’s site She lists the php scripts that need to be changed in case you did any heavy rewrites but also […]
[…] to CreepiGurl for the fixes!!! no comments yet.« Chag Sameach! Leave a […]
[…] to find a copy of Live+Press that actually worked with Wordpress 2.3. I managed to find an updated hacked version of Live+Press that works with newer versions of Wordpress. So, whats gone down is this: my […]
[…] default Wordpress files. So, I started doing some research and one of the tip-offs came from the blog where I downloaded the plugin. Apparently, the author who created the hacks noted that they had […]
[…] Я брал пропатченую версию для Wordpress 2.0 и выше вот здесь. These icons link to social bookmarking sites where readers can share and discover new web […]