no text styling in Random Quote plugin

Creating and modifying plugins.
Post Reply
Paul Czege
Posts: 3
Joined: Tue Jul 17, 2007 1:34 am

no text styling in Random Quote plugin

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: no text styling in Random Quote plugin

Post by garvinhicking »

Hi!

Could you show us the page where this is happening? Did you enable BBCode for 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/
Paul Czege
Posts: 3
Joined: Tue Jul 17, 2007 1:34 am

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Paul Czege
Posts: 3
Joined: Tue Jul 17, 2007 1:34 am

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