<< Back
Message for this thread
Posted by Messages text
Smith Thomas

Avatar
Total post : 43
> Profile
Written on : 01/02/2011 00:20 ( more than one month )
Object : Change LMS template depending on parked domain
Hi All

I would like some help... I am trying to get different templates to work under different domains.

I have two domains that I want to work on one docebo installation with different looks.

Main domain is www.ebsi-citt.net and it works normally as its the standard template.

I have added under public_html/template_ifcfit and in www.ifcfitinitiative.org it shows the correct header (I have to do the rest of the design layout I know :)

I have also added the following sql to tell which template is working with which domain :
INSERT INTO `core_setting` (`param_name`, `param_value`, `value_type`, `max_size`, `pack`, `regroup`, `sequence`, `param_load`, `hide_in_modify`, `extra_info`) VALUES ('template_domain', 'ebsi-citt.net,standard\r\ifcfitinitiative.org,ifcfit', 'textarea', 65535, 'main', 0, 18, 1, 0, '');

What I need now is to know how to name the public_html/doceboLMS/templates/TEMPLATENAME or what more code I need to add so it will switch to standard template for ebsi-citt.net and to ifcfit on the www.ifcfitinitiative.org domain which is parked on www.ebsi-citt.net

Any assistance is greatly appreciated.

PLEASE NOTE I AM WORKING ON DOCEBO 3.6 and DO NOT YET WANT TO UPGRADE TO 4x for operational reasons.

Thanks

Thomas Smith
ts@ebsi.ie
+353-87-6783785
Message modified by : ebsi on : 01/02/2011 00:21
Thomas Smith
Operations Director
eBSI Export Academy International Trade Course
http://www.ebsi.ie
Docebo 3.6 and Joomla integrated
One login, user details synchronisation, display docebo forums in Joomla
 
Smith Thomas

Avatar
Total post : 43
> Profile
Written on : 13/03/2011 02:04 ( more than one month )
Object : Re: Change LMS template depending on parked domain
Thanks to Fabio Pirovano and Alberto Pastorelli I implemented a patch that allows me to use templates and multiple domains in docebo!

You can see it in action here

Original main domain www.ebsi-citt.net

parked domain www.ifcfitinitiative.org

Thanks Alberto!

The way to implement this is by installing the attached patch which was provided to me by Fabio and Alberto onto a docebo 3.604 installation and setting up template associations in database.

It works great the only challenge now is that when I try to access SCORM units from the parkeed domain I get a load from xml error.  This is exactly because I need to patch the routine which handles accessing SCORM LOs because it still uses the website url as set in administrator - configuration - elearning - main options - website URL with final / = http://www.ebsi-citt.net/doceboLms/   when I change the url to the parked domain it works perfectly but the original domain of http://www.ebsi-citt.net/ doesnt :)
 
I need urgently a patch to whatever routine which handles the loading of the xml for the SCORM so that it will take into account which domain we are logged into or I need a mod rewrite which fixes the broken link for the domain.

Alberto and Fabio can you help?

I know this is for docebo 3.604 but please I really need help to finally have a proper templating system in place.

The curent patch is at www.ebsi-citt.net/tmpl.zip if anyone needs it.

Regards

Thomas
Thomas Smith
Operations Director
eBSI Export Academy International Trade Course
http://www.ebsi.ie
Docebo 3.6 and Joomla integrated
One login, user details synchronisation, display docebo forums in Joomla
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 14/03/2011 18:57 ( more than one month )
Object : Re: Change LMS template depending on parked domain
Hello,
you can try to open  the scorm_frameset.php located in doceboLms/modules/scorm and around at line 100 try to change this line:

$lms_base_url = preg_replace("/http[s]*:\/\/([A-Za-z0-9_:.]+)\//", 'http' . ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '' )."://".$_SERVER['HTTP_HOST']."/",$GLOBALS['lms']['url']);

with:

$lms_base_url = 'http' . ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '' ).'://'.$_SERVER['HTTP_HOST']
      .( strlen(dirname($_SERVER['SCRIPT_NAME'])) != 1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ).'/'; 

this is how it works in 4.0 and may solve your problem.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Contreras Rodrigo

Avatar
Total post : 25
> Profile
Written on : 05/09/2011 04:00 ( more than one month )
Object : Re: Change LMS template depending on parked domain
Hello, this seems great! Is there any patch for version 4?

Regards,

Rodrigo Contreras 
 
Thompson Madeleine

Noavatar
Total post : 11
> Profile
Written on : 17/10/2011 18:25 ( more than one month )
Object : Re: Change LMS template depending on parked domain
I need change LMS template depending domian, I understand that this has already been implemented for version 4, which I set up it? or i should use the zip  sent by smith to implement it?

Regards,
Madeleine
 
<< Back