WIP vchamilo plugin

Fix paths and docs
ofaj
jmontoyaa 10 years ago
parent 2f618f4743
commit 9b1eedb0f6
  1. 5
      main/admin/configure_homepage.php
  2. 6
      plugin/vchamilo/lib.php
  3. 16
      plugin/vchamilo/readme.txt

@ -141,7 +141,7 @@ if (!empty($_SESSION['user_language_choice'])) {
$languageGet = isset($_GET['language']) ? Security::remove_XSS($_GET['language']) : $lang;
// Ensuring availability of main files in the corresponding language
$homePath = api_get_path(SYS_APP_PATH).'home/';
$homePath = api_get_path(SYS_HOME_PATH);
if (api_is_multiple_url_enabled()) {
$access_url_id = api_get_current_access_url_id();
@ -223,6 +223,7 @@ if (!empty($action)) {
// Filter
$home_top = trim(stripslashes($_POST['home_top']));
// Write
if (is_writable($homep)) {
// Default
@ -473,7 +474,7 @@ if (!empty($action)) {
// If the requested action is to create a link, make some room
// for the new link in the home_menu array at the requested place
// and insert the new link there
if ($action == 'insert_link' || $action == 'insert_tabs') {
for ($i = sizeof($home_menu); $i; $i--) {
if ($i > $insert_where) {

@ -74,9 +74,9 @@ function vchamilo_hook_configuration(&$_configuration)
$_configuration['virtual'] = $data['root_web'].'/';
}
$data['SYS_ARCHIVE_PATH'] = $homePath.'/'.$data['slug'];
$data['SYS_HOME_PATH'] = $coursePath.'/'.$data['slug'];
$data['SYS_COURSE_PATH'] = $archivePath.'/'.$data['slug'];
$data['SYS_ARCHIVE_PATH'] = $archivePath.'/'.$data['slug'];
$data['SYS_HOME_PATH'] = $homePath.'/'.$data['slug'];
$data['SYS_COURSE_PATH'] = $coursePath.'/'.$data['slug'];
$VCHAMILO = $data;
}

@ -1,7 +1,7 @@
Virtual Chamilo
##############################
Author : Valery Fremaux (valery.fremaux@gmail.com)
Author : Valery Fremaux (valery.fremaux@gmail.com), Julio Montoya
Virtual chamilo is a feature that allows running several chamilo instances sharing the same
code base.
@ -10,7 +10,7 @@ Version features
##############################
This is a yet prototypal version that is not full featured in back-office tools.
At the moment, the setup of virtual clones still is a technical operation and has no
middle-office GUI. Developement is in progress to offer a sufficiant medium-level
middle-office GUI. Development is in progress to offer a sufficient medium-level
administrability of the process.
How to setup :
@ -18,13 +18,13 @@ How to setup :
You need :
1/ Install the vchamilo package into the <chamiloroot>/plugin directory
2/ Install the plugin in chamilo administration
3/ Insert the virtualisation hook into the chamilo master configuration :
1. Install the vchamilo package into the <chamiloroot>/plugin directory
2. Install the plugin in chamilo administration
3. Insert the virtualisation hook into the chamilo master configuration :
file : <chamiloroot>/app/config/configuration.php
insert the hook:
Insert the hook:
include_once $_configuration['root_sys'].'plugin/vchamilo/lib.php';
vchamilo_hook_configuration($_configuration);
@ -39,7 +39,7 @@ just before the login module section :
* Login modules settings
*/
Setup of virtual nodes :
Setup of virtual nodes:
what you need for a virtual node is :
@ -52,7 +52,7 @@ as the chamilo instance domain name.
the effective "configuration.php" information.
- an appropriate multiroot home root setup in the local chamilo instance
# Prerequisites for VCHamilo working nice
# Prerequisites for VChamilo working nice
Multiple URL access must be enabled :

Loading…
Cancel
Save