NL2BR Customization

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

NL2BR Customization

Post by DortoH »

I'd like to know if there is a way to disable NL2BR on the Entry Body section, but leave it enabled on the Extended Body section?
Rod
Jabrwock
Regular
Posts: 34
Joined: Fri Feb 24, 2006 5:42 pm
Location: Saskatoon, Saskatchewan, Canada
Contact:

Post by Jabrwock »

which version of the Markup: NL2BR plugin are you using?

I've got 1.2, and it's got a seperate behavior setting for entry vs. extended, so you should be able to disable one while leaving it set for the other.
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

I have 1.2 as well, but I do not see this option.

Under "Extended properties for entries" I see one checkbox to disable NL2BR and it affects the whole entry.

Perhaps there is another plugin I require?
Rod
Jabrwock
Regular
Posts: 34
Joined: Fri Feb 24, 2006 5:42 pm
Location: Saskatoon, Saskatchewan, Canada
Contact:

Post by Jabrwock »

What version of serendipity are you using? (0.9.1 for me)

Here's the event plugins I've got installed:

-Markup: Serendipity
-Markup: NL2BR
-Spam Protector
-Spartacus
-User Profiles
-User Self-Registration
-Forgot Password
-Links to next/previous entry
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Yeah I am on 0.9.1 as well and have the following installed

Markup: Serendipity
Markup: NL2BR
Spam Protector
Announce Entries
Layout: Printer Friendly
Statistics
Extended Properties for Entries
Link to Next/Previous Entry
Spartacus
Polls
Static Pages
Rod
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Maybe I am only on 0.9.0, so says the admin login page.


UPDATE:

Indeed I am on 0.9.0. I will upgrade to 0.9.1 and report back!

Thanks
Rod
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Well I upgraded to 0.9.1 and still no dice.
Rod
Jabrwock
Regular
Posts: 34
Joined: Fri Feb 24, 2006 5:42 pm
Location: Saskatoon, Saskatchewan, Canada
Contact:

Post by Jabrwock »

I was having some wacky issues when I installed the "static pages" plug-in (it kept trying to download php pages instead of view them...). Maybe try disabling it and see if that affects anything?
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Thanks for the suggestion but that didn't work. I actually have two blogs running S9Y and neither of them allow this. The second does not have the static pages plugin installed but still no go.
Rod
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You can configure the nl2br plugin if it shall apply markup to body or extended body.

But you can disable nl2br completely only per-entry, and not seperately disable it.

Thus, you could configure it to only always apply nl2br to the extended entry and never be applied to the body.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Well I removed the NL2BR plugin and reinstalled it and now it works!

Perfect.
Rod
Post Reply