brettbrewer.com

Programming + Design

Home arrow News arrow Joomla Module/Extension Fixes arrow Joomla VFM File Repository Component Bug Fixes
Joomla VFM File Repository Component Bug Fixes PDF Print E-mail
Written by Administrator   
Thursday, 26 July 2007

I've been testing out a few download managers on my site and so far my favorite is the VFM File Repository component. It's got some nice AJAX functionality, but lacks a functional category feature, so all downloads simply display in a list. When editing the descriptions via AJAX, I discovered some issues with quotes not being properly unescaped. To fix this, simply open the "components/com_vfm/vfm.php" file. On about line 191 you will see the following code:

 $result = $vfm->setAttribute(array( 'description' => $_REQUEST['contents'] ));

 Simply replace it with 

 $result = $vfm->setAttribute(array( 'description' => stripslashes($_REQUEST['contents']) ));

This will fix the escaping problem and allow you to embed quotes and html with attributes into your descriptions. You can do the same thing for the title field by making a similar edit to line 179 of the source file. 

Last Updated ( Thursday, 26 July 2007 )
 
< Prev

Search


Brett highly recommends...

Get Your War On: The Definitive Account of the War On Terror 2001-2008

My favorite comic is getting ready to be relased as a single volume. You can preorder now. If you hate the war and love to laugh, do yourself a favor and order this. You can also read all the GYWO comics online for free here.

BBS The Documentary

This is by far the most comprehensive and entertaining documentary I have ever seen regarding the early BBS system. If you're serious about knowing your internet history, or you just want some extra geek-cred, this is your new favorite documentary.

The Nada Chair "BackUp"

The best alternative I have found to overpriced ergonomic office chairs, especially for very low pain around the sacral joint. Works better than my Aeron chair ever did. Also, it comes in navy blue and black, in case you're not into the whole pregnant woman aesthetic (pictured).It's really not meant for sitting on the floor, it's really better for seats that offer poor back support, and works great at sporting events to make sitting in bleachers much more comfortable.

Antec Quiet PC Case

At just under $120 including a 500 Watt power supply, this "quiet pc" case has worked great for me for over 2 years. In fact I now own two great Antec cases/PSUs. For the money, it's hard to beat this combination.

Valid XHTML 1.0 Transitional

© 2008 www.brettbrewer.com

Spam bots check out this page.

Joomla! is Free Software released under the GNU/GPL License.