Page 1 of 1

no text styling in Random Quote plugin

Posted: Tue Jul 17, 2007 1:40 am
by Paul Czege
Hi,

I've tried BBCode and html to do italics within a quote, but when the quote shows up in my sidebar it displays the codes, not italicized text.

Thanks,

Paul

Re: no text styling in Random Quote plugin

Posted: Tue Jul 17, 2007 11:02 am
by garvinhicking
Hi!

Could you show us the page where this is happening? Did you enable BBCode for comments?

Regards,
Garvin

Posted: Tue Jul 17, 2007 10:23 pm
by Paul Czege
Hi Garvin,

Both Markup: BBCode and Markup: Serendipity event plugins are set to "yes" for Entry Body, Extended Body, Comment, and HTML Nugget.

See exposed BBCode appearing in quotes in the right sidebar of my site here: http://paulczege.nfshost.com/

Would actually prefer to use html, rather than BBCode for text styling in quotes if possible.

Thanks,

Paul

Posted: Tue Jul 17, 2007 10:54 pm
by garvinhicking
Hi!

Aaaah, now I understand. Sorry, I somehow did not get the reference that you were talking about the Random Quotes plugin!

If you'd like to beable to pass raw HTML to the quotes, I suggest you editthe file 'serendipity_plugin_randomquotes.php' and search for this:

Code: Select all

$quotes_array[$i]['quote']  = htmlspecialchars(trim($exp[0]));
replace that with:

Code: Select all

$quotes_array[$i]['quote']  = trim($exp[0]);
I could also add a configuration option to the plugin tomorrow, if the above is too complicated for you.

Bestregards,
Garvin

Posted: Tue Jul 17, 2007 11:29 pm
by Paul Czege
Hi Garvin,

I'm sorry I wasn't more specific that it was the Random Quotes plugin.

I've made the change to serendipity_plugin_randomquotes.php. It's working beautifully now.

Thank you,

Paul