I love Free Software!

Pages

Funny Quotes to Think

When you say "I wrote a program that crashed Windows", people just stare at You blankly and say "Hey, I got those with the system, for free"

-Torvalds, Linus(1995-03-08)-

Wednesday, October 7, 2009

QOTD plugin in Squirrelmail

Squirrelmail qotd plugin is not showing any quotes nowadays. Please find the fix explained below.


How qotd plugin works ?
QOTD plugin retrieves random quotes from qotd.org site. Then it will be formatted using explode and str_replace functions.
for more about these functions can be found here.

What happened to qotd plugins now?

qotd.org site has modified the random quotes output. Due to this plugin is unable to find the pattern and the result will be a blank text.

How to fix this ?

After digging in to the code, I was able to fix this issue with small changes. 
 


Go to plugins directory (/usr/share/squirrelmail/plugins/qotd_login)
Edit functions.php using favorite editor
Under parse quote out of web page
replace `font size="-1"` with `strong`


This will fix your problem, cheers !!


No comments:

Post a Comment