Trouble with Markup

Creating and modifying plugins.
Post Reply
jgoerzen
Regular
Posts: 5
Joined: Tue Mar 28, 2006 4:53 pm

Trouble with Markup

Post by jgoerzen »

I'm setting up Serendipity 1.0beta2 for my blog.

I have the Serendipity and the NL2BR event plugins installed. In the configuration screen for both of those, they are all enabled for all categories.

Here's the weird thing. The Serendipity markup plugin does not seem to be taking effect for blog posts, but it is being used for comments. I don't understand why this is.

In a more broad sense, how can I give more control over what markup is used for an individual post or comment? Serendipity seems to be stripping out all HTML tags from comment posts, yet I never told it to do so. Some visitors to my blog may be wanting to post snippets of, say, Python code, and would like to use <PRE>. I would also like to let users include links within their comments.

On the story side, sometimes I want to just use raw HTML and not have Serendipity do anything at all to my post. Or I may want to use <PRE> sections myself. Either way, I would want to disable the NL2BR for a particular post.

Can I do that somehow?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Here's the weird thing. The Serendipity markup plugin does not seem to be taking effect for blog posts, but it is being used for comments. I don't understand why this is.
Version 1.1 is working in entries for me, under 1.0_alpha1. I tried with an underline. Is there anything particular that's not working, or is all Serendipity markup not working in entries?
how can I give more control over what markup is used for an individual post or comment?
All markup is applied to all posts. Trying to look up markup plugins for each post would be a pretty hard performance hit.
Serendipity seems to be stripping out all HTML tags from comment posts, yet I never told it to do so. Some visitors to my blog may be wanting to post snippets of, say, Python code, and would like to use <PRE>. I would also like to let users include links within their comments.
Serendipity strips HTML for security. You wouldn't believe what people do. If you want to give them more formatting options, include preformatted text, I'd recommend the BBCode event plugin. The Serendipity plugin is pretty rudimentary.
On the story side, sometimes I want to just use raw HTML and not have Serendipity do anything at all to my post. Or I may want to use <PRE> sections myself. Either way, I would want to disable the NL2BR for a particular post.
I use raw HTML myself. The markup plugins all work, of course, but I don't use them. Since I can't disable NL2BR for particular posts, I disable it for all entries, but leave it on for comments. I figure I'm smart enough to use HTML, but my users may not be... and it's not secure.
Judebert
---
Website | Wishlist | PayPal
Post Reply