iw_moodle - v1.0
Author: Albert Pérez Monfort
Zikula Version: Zikula 1.0.0
Category: Utility
API Compliancy:
Yes
pnRender Compliancy:
Yes
Description:
This module integrates the Moodle into PostNuke.
System Requirements:
PostNuke 0.8 Moodle 1.8.x
Support Information:
Installation of the iw_moodle module
This module is part of Intraweb project (http://phobos.xtec.cat/intraweb)
To run this module you should have the iw_main module installed.
Files structure
This module needs the iw_main module installed, so you must to install it if you don't have it. The iw_main module contains the general libraries and functions used in Intraweb modules.
You have to copy the file index_iw.php into the Moodle main directory. This file makes possible the single sing on.
Module installation
Locate the files of the modules iw_main and iw_moodle in the modules directory, install and active them following the usual methods used in PostNuke modules.
Remember that the following permissions are necessary:
group iw_main:: :: read
group coursesblock:: :: read
to make possible users access to the module.
PostNuke configuration
iw_moodle requests the Moodle tables, so it is necessary to configure the access to the Moodle database. You have to modify the file config/config.php and add the code written below:
// ----------------------------------------------------------------------
// The following define the access to Moodle database
// ----------------------------------------------------------------------
$PNConfig['DBInfo']['moodle']['dbtype'] = 'mysql'; // sample value
$PNConfig['DBInfo']['moodle']['dbhost'] = 'localhost'; // sample value
$PNConfig['DBInfo']['moodle']['dbuname'] = 'cm9vdA==';
$PNConfig['DBInfo']['moodle']['dbpass'] = '';
$PNConfig['DBInfo']['moodle']['dbname'] = 'moodle'; // sample value
$PNConfig['DBInfo']['moodle']['encoded'] = 1;
$PNConfig['DBInfo']['moodle']['pconnect'] = 0;
In the example there is the configuration that I'm using in my laptop for a local server.
After this you have to access to the module options through the administration page and fill all the fields in the form. All the fields are important, so you have to fill all of them.
Courses block activation
The method that users will use to access to Moodle is through the courses block, so you have to activate and locate it in your PostNuke website.
This block contains the links to the Moodle courses where the users can access and some information about them. The permission:
Group coursesblock:: :: read
is needed.
If this permission is used for unregistered users it is assumed that they will access to Moodle as guests.
Moodle configuration
Moodle needs to connect with PostNuke users table to get information about Moodle potential users. To do this possible proceed as it is explained below:
Supported Languages:
Change Log: