HTML in Comments not working

Creating and modifying plugins.
Post Reply
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

HTML in Comments not working

Post by MySchizoBuddy »

just installed the html in comments plugins and placed it right on top of the event list, but still my comments have all tags stripped away.

anyone tried that plugin
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: HTML in Comments not working

Post by garvinhicking »

I tried that plugin, yes. :)

Tell us which plugins you have exactly in your event list, and in which order they are.

Did you make a new comment and see how it gets shown? And you are talking of the serendipity_event_unstrip_tags plugin, right?

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/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

Image
Image
Jeremy
Posts: 1
Joined: Fri Aug 26, 2005 1:17 am
Location: Louisiana
Contact:

Post by Jeremy »

How did you do the tabs at the top of you page?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I just posted on your blog, MySchizoBuddy. The HTML is properly converted there, see!

Remember that it converts <strong>STRONG</strong> to exactly that HTML. Without the plugin only "STRONG" without HTLM-tags would be shown.

It does NOT allow HTML in comments! That is plain wicked to allow, we will never support this as it makes XSS as easy as possible.

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/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

yeah but I cannot create any paragraphs in it. Its all just one big block.
perhaps u can allow selected html like a <a href> tag, <p> and <br>
I want users to be able to post clickable links, u can make all links in comment deafult to rel="nofollow"

also <strong>Strong</strong>
should make the text bold right. whats the point of just html tags if they don't do anything. there has to be some way to atleast make paragraphs in it.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

No, ahref and stuff can all be swampified with javascript. There is no real secure way.

Use BBCode for that, this is basically what you want! :)

Don't breaks suffice instead of paragraphs? One could create a plugin that wraps a single line with "<p>...</p>" instead of just adding <br /> to it, but IMHO it is not really often required to have paragraphs in short comments...

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/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

ok let me try BBcode.
I want this cause one user complained about no paragrapgs or anyway to make a new line. and plus i want it too

NL2BR should work in comments
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Sure, nl2br works in comments if enabled. It does it for me, at least :)

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/
Post Reply