Livejournal update plugin

Creating and modifying plugins.
Post Reply
Ripper^^
Regular
Posts: 50
Joined: Mon Aug 15, 2005 7:49 am
Location: Gainesville, Florida, USA
Contact:

Livejournal update plugin

Post 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.
Ripper^^
Administrator, TheRipper.com
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post 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)
=Don=
Ripper^^
Regular
Posts: 50
Joined: Mon Aug 15, 2005 7:49 am
Location: Gainesville, Florida, USA
Contact:

Post 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.
Ripper^^
Administrator, TheRipper.com
Post Reply