post-page

LiveJournal autoupdate script for WordPress (all versions)

31
responses
by
 
on
January 23rd, 2004
in
WordPress Hack

[EDIT] In its present incarnation, it WILL NOT work with WordPress 1.5

This script allows every post that you publish on your WordPress blog to also be reflected (or added) to your LiveJournal blog automatically. This script only emulates publishing to your LJ blog, you cannot edit LiveJournal entries once they are published (through the WP admin page). If there is enough interest, I could come up with edit functionality as well as others such as moods and music. Here is a link to the hack instructions.
The items sent to LiveJournal are your post title, your post content and the date and time of your post. Enjoy.
Please post bugs to http://weblogtoolscollection.com/

heading
heading
31
Responses

 

Comments

  1. Bob Chaney says:

    Having followed all the instructions …thrice! I keep receiving this error message:

    Fatal error: Call to undefined function: ljautoupdate() in C:\swamp\www\wordpress\wp-admin\post.php on line 126

    Doesn’t seem to be finding my-hack.php …any ideas?

    Thanks

  2. Mark says:

    Did you enable it from your admin panel?

  3. Chirag says:

    Also, I see that the number of carriage returns increases on posting to LJ. If I have one blank line in the WP entry, it becomes three in the LJ entry.

    Initially I was okay with it but, now find it very irritating. LJ entries look really odd if they just have 3 single lines seperated with alternate new lines.

  4. Jon says:

    I hope that I’m not the only one who is experiencing this problem with livejournal. I can get to friends’ journals just fine, since I have them all in my bookmarks. But I can’t log into my account from my computer. Everytime I go to livejournal.com, the page freezes, and i get the end program window. Please help

  5. matthew says:

    I’m still getting the Fatal error: Call to undefined function: convert_bbcode() in /home/thegodma/public_html/my-hacks.php on line 9 error message, and I’ve downloaded and replaced the class-xmlrpc.php twice now. Any clues?

  6. Mark says:

    Look for and remove the lines below from the code:
    $content = convert_bbcode($content);
    $content = convert_gmcode($content);
    $content = convert_smilies($content);
    $content = convert_chars($content, ‘html’);
    //$content = apply_filters(‘the_content’, $content);

  7. Bertha says:

    Thanks so much for this hack–exactly what I wanted! I especially like the checkbox feature that lets you disable/enable it for an individual post. You da man!

  8. Carthik says:

    This is a bug report for the lj autoupdate script.

    For some reason, when I posted at wordpress, my Lj got updated alright, except for this thing with the Quotes, both single and double, which were preceeded by ///

    For example, my LJ had
    “We will not depend on others,” declared Raj Shecker, 21, an engineering student. “It’s just an Indian feeling.”

    instead of
    “We will not depend on others,” declared Raj Shecker, 21, an engineering student. “It’s just an Indian feeling.”

    THis is the post in question.

    Thanks for the great script!!

    I am gonna keep that “buggy” LJ post that way so you get to see it, and once you have seen it, I will edit the LJ post to remove the offending ///-s.

  9. Mark says:

    Should be fixed now. Re-download the instructions. Thanks for providing positive feedback!

  10. Carthik says:

    It does not work still, even though I changed my-hacks.php and post.php with the latest that I got from your site.
    In addition to the old problem, I now get an error message, after I click on “publish”, which says…

    Couldn’t process request: No data received from server.
    Warning: Cannot modify header information – headers already sent by (output started at /home/carthik/www/www/my-hacks.php:34) in /home/carthik/www/www/wp-admin/post.php on line 158

  11. Carthik says:

    Hi,
    There seems to be no end in sight to me bugging you with these bug reports!
    There seems to be a problem with encodings. For example, I posted an entry with an accented”e”, as in resume, and then when I tried to edit the entry, Livejournal gave me an error message saying the entry can’t be edited because the encoding was not supported.
    This page was linked to in the error message. You might more info on that page.

    Also, I see that the number of carriage returns increases on posting to LJ. If I have one blank line in the WP entry, it becomes three in the LJ entry.

    I can live with all this, and I really, really hope these bug reports dont bug you 🙂

    Have a great day.

  12. Qbproger says:

    Tried this hack, but i keep getting errors. first is said that the function convert_friends() could not be found. So i deleted that line of code, now i’m getting a different error.

    Warning: Cannot modify header information – headers already sent by (output started at /home/qbproger/public_html/blog/my-hacks.php:51) in /home/qbproger/public_html/blog/wp-admin/post.php on line 160

    I editted the files as you said to, please get back to me. Thanks.
    Joe.
    Wordpress 1.0.1

  13. Mark says:

    I am sorry Joe. I left that extra function in there by mistake. I have taken it out for you. If you are getting the errors your mention above, make sure there are no blank lines in the place where you removed the code. Hope that helps.

  14. wuji says:

    First off, GREAT PLUGIN!. The plugin works great and I did modify it a bit to not crosspost private entries, however I’m having some difficulties when I try to post with a client such as wbloggar. Any suggestions on that? I’ll try to look into myself to see if I can come up with anything. GREAT WORK! 🙂

  15. Michelle says:

    Hmm… I’m getting the same problem :/ I DL’d the instructions last night so I’m not sure what to do. I login and it gives me that error 🙂

  16. Mark says:

    Make sure there are no spaces or empty lines at the end of my-hacks.php after the ?> tag.

  17. Michelle says:

    Oh thank you! It works great 😀 Love this hack!

  18. Mark says:

    Welcome! 🙂 Spread the joy!

  19. Ron says:

    The original B2-LiveJournal Integration hack is now YABBOB. http://yabbob.arboc.net/devblog/

    Some of the code might be useful. I’m a YABBOB user, but it’s not under active development anymore, and I’m interested in switching to WordPress if this hack gets more functional (edit/delete).

  20. Bryan says:

    I’m using WP 1.2 epsilon RC1 and receive the following error:

    Fatal error: Call to undefined function: convert_bbcode() in /homepages/35/d101663902/htdocs/netcynic.com/my-hacks.php on line 10

    It seems to treat all the conversion functions as undefined. Any help would be greatly appreaciated.

  21. Mark says:

    For WordPress 1.2, just remove the line with convert_bbcode() on it.

  22. Bryan says:

    Thanks Mark.

    I commented out the convert_bbcode line and had to comment out the convert_gmcode line also due to the same error. Unfortunately I am still getting an error:

    Fatal error: Cannot instantiate non-existent class: xmlrpc_client in /homepages/35/d101663902/htdocs/netcynic.com/my-hacks.php on line 29

    So I am missing something. Thanks again for the help!

  23. Bryan says:

    Thank you! That’s really awesome, Mark.

  24. Desserae says:

    hi im trying to get this to work myself
    i get this error
    Fatal error: Call to undefined function: ljautoupdate() in /home/pierced/public_html/bad-doll/wp-admin/post.php on line 130

    what should i do now??

  25. Mark says:

    Have you enabled my-hacks.php through your admin? (under options->Misc.)

  26. AdamW says:

    Is this supposed to work for WP 1.5? I keep getting:

    Fatal error: Cannot instantiate non-existent class: xmlrpc_client in /var/www/html/my-hacks.php on line 20

    Yes, I downloaded the updated class-xmlrpc.php file and put it in wp-plugins. (And ran dos2unix over it, since I run Linux and it was full of ^M originally). Still no joy. Any idea? Thanks!

  27. Tony says:

    Any update on getting this to work with v1.5?



Trackbacks/Pingbacks

  1. […] ing both to be maintained from one simple interface. I’ve switched to using it over LaughingLizards autoupdate script […]

Obviously Powered by WordPress. © 2003-2013

css.php