E-Learning Course Development Using Moodle 2.0, Moodle Month – Festive Fun

Moodle is the leading Open Source E- learning management system. Moodle is a free, open-source PHP web application for producing modular internet-based courses that support a modern social constructionist pedagogy. Using Moodle, teachers and professors can easily construct richly textured web-based courses. A course can consist of a number of lessons, with each lesson including…

Displaying Global Configuration Settings Values in Joomla Website

To get and display the configurations settings values in any Joomla website, Joomla’s JFactory object is used. Using JFactory, we can load configurations values and use them anywhere in our Joomla templates like this: $config =&JFactory::getConfig(); $website_name = $config->getValue(‘config.sitename’); $MetaDesc = $config->getValue(‘config.MetaDesc’); $MetaKeys = $config->getValue(‘config.MetaKeys’); Hope that helps. Cheers.

PHP Function to Clean Data before using in JavaScript or FBJS

Single quotes, double quotes, slashes and all kinds of other junk data will break your application code, especially the js and FBJS dialog boxes for sharing and components if the data is not cleaned properly. Following PHP function will clean your data for such garbage. function cleanData($data) { $cleaned = preg_replace(“/[^A-Za-z0-9\s\.\-\/+\!;\n\t\r]/”,””, $data); $cleaned = preg_replace(“/\s+/”,”…