mallchin.com

mallchin.com header graphic
Home arrow Misc. Code arrow Joomla! arrow Joomla! - Latest Comments module
Joomla! - Latest Comments module PDF Print E-mail
Wednesday, 29 March 2006

I've fixed a small bug in the Latest Comments module by Nils Feberwee and thought it might be useful to post a fix.

We need to strip the slashes from the title, comment and name fields before printing them to the page. We can do this using a PHP function, stripslashes().

Edit modules/mod_latestcomments.php lines 46-48, add stripslashes() around the variables like so:

  1. stripslashes($row->title)
  2. stripslashes($row->comment)
  3. stripslashes($row->name)
 

Or download modified file here.


Quote this article on your site

  Be first to comment this article
RSS comments

Only registered users can write comments.
Please login or register.

 

  Tag it:blogmarksco.mmentsDeliciousdiggDiigo