Page 1 of 1

Livejournal update plugin

Posted: Fri Dec 07, 2007 12:51 am
by Ripper^^
I was having an annoying problem using both the livejournal update plugin and the nl2br plugin. livejournal automatically converts new lines to breaks so my entries which looked like:

text here

next text here


on my s9y blog were looking like:

text here


next text here


and the extra space was annoying the hell out of me.

I don't know if anybody else was having this problem with their live journal updates using this plugin combo but i fixed it by adding this line

$event = "<lj-raw>" . $event . "</lj-raw>";

in serendipity_event_ljupdate.php at this spot

//Make LJ Entries not doublespaced
$event = str_replace("\n", "", $event);
$event = "<lj-raw>" . $event . "</lj-raw>";


hope this helps somebody.

Posted: Fri Dec 07, 2007 2:56 am
by Don Chambers
I've never used it, but I think it is great that you took the time to share your solution with the s9y community!!! 8)

Posted: Fri Dec 07, 2007 7:21 am
by Ripper^^
Thanks!

This forum has helped me out a number of times in sorting out problems I've had with my site and I just wanted to try and help out in return.