JotComponents || Web programming and optimization of Joomla sites - Items filtered by date: August 2012

Kunena is very popular forum component for Joomla CMS. It has many fuctions and adjustments but possibility to add custom fields for new topics is still not a part of standard solution. Such request for adding this feature is high rated on Kunena site. One of possible solution how to do it in existing version of  Joomla 2.5 / Kunena 1.7 is described below.

Published in Blog

For final packaging of Joomla components using Ant build tool was necessary to implement simple PHP function allowing to check and insert when not present dummy index.html files into installation file directories.

Old approach (PHP4 like) requires to code entire recursive search for finding missing index.html under the given root path. With PHP5 SPL iterators it is possible to do it with short code as shows this test snippet which scans all subdirectories and prints subdirectory paths not containing any index.html file.

Published in Blog
We have 47 guests and no members online
Copyright © 2015 JotComponents
We have 47 guests and no members online
Copyright © 2017 JotComponents