Possible bug with smarty-parsing plugin w/ Serendipity 1.0b2

Found a bug? Tell us!!
Post Reply
dragon47
Regular
Posts: 7
Joined: Thu Mar 30, 2006 11:16 pm
Location: Baton Rouge, LA
Contact:

Possible bug with smarty-parsing plugin w/ Serendipity 1.0b2

Post by dragon47 »

I want to use the event plugin for smarty parsing in an entry (Markup: Smarty Parsing). I haven't used it before and I'm using Serendipity v1.0b2.

When I load the plugin, without even putting any smarty code in an entry, I get the following fatal error from Serendipity on trying to go to the blog's home page (I assume the other pages, too):
Fatal error: Smarty error: [in smartymarkupplugin:-626539658 line 12]: syntax error: unrecognized tag: font-family:arial,sans-serif;font-size:12px;color:#000000;padding:0px 1px 5px 0px;white-space:nowrap;font-weight:bold; (Smarty_Compiler.class.php, line 436) in /www/htdocs/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1088
If I delete the Markup: Smarty Parsing plugin, the blog works just fine.

Any thoughts on what I might be doing wrong, or whether it really is a bug?

I've tried it in two different blogs with the same result.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Possible bug with smarty-parsing plugin w/ Serendipity 1

Post by garvinhicking »

Hi!

Smarty uses "{" and "}" for its markup. That means, if you want to use Smarty Markup in your entries, you are not allowed to use "{" and "}" in your entries, but need to replace it with "{ldelim}" or "{rdelim}"!

Best 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/
dragon47
Regular
Posts: 7
Joined: Thu Mar 30, 2006 11:16 pm
Location: Baton Rouge, LA
Contact:

Post by dragon47 »

Thanks, Garvin.

I bet that's the problem. I'm sure I've got some embedded CSS in the entries -- now to find it!
dragon47
Regular
Posts: 7
Joined: Thu Mar 30, 2006 11:16 pm
Location: Baton Rouge, LA
Contact:

Post by dragon47 »

That was it!

Thanks, Garvin.
Post Reply