<< Back
Message for this thread
Posted by Messages text
thompson scott

Noavatar
Total post : 1
> Profile
Written on : 03/09/2009 05:42 ( more than one month )
Object : Register into Tree
Hello - this looks like a great LMS.  I am looking forward to using it for some great things.

I am having difficulty figuring out how to have someone enter a subscription code during user registration that puts them into the Tree Hierarchy.  I see several steps that I assume I need to do - 1) created a text field, 2) made it manditory in a node, 3) in configuration set it up that the code needs to be manually entered, and 4) selected the field I created.  However, I don't see where to add something to the node for it to reference.  Can someone help?

Summary - want to give subadministrators ability to enroll group of people in a node.  Want self-registration where you enter a code when creating your account that puts you into that node.

Thanks,

Scott
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 03/09/2009 15:36 ( more than one month )
Object : Re: Register into Tree

Hi,
here you can see a screencast that explain what you want to do.. 

unfortunately this is not an official one so it is available only in italian; if you don't understand some strings or steps feel free to ask.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
sharma mohit

Noavatar
Total post : 8
> Profile
Written on : 20/10/2009 13:35 ( more than one month )
Object : Re: Register into Tree
Writted by: Derks Giovanni


Hi,
here you can see a screencast that explain what you want to do.. 

unfortunately this is not an official one so it is available only in italian; if you don't understand some strings or steps feel free to ask.

bye,
Giovanni. 


Hi,

Wondering, is it possible to have default course for any user. Say a user has just registered and a default course get assigned to him, without enter any registration code?

Please advise.

Regards
Vijay
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 21/10/2009 09:42 ( more than one month )
Object : Re: Register into Tree
hello,
no this is not possible. the only thing you can do is to create a registration code for the course and then enable the users to subscribe to courses using the code(s) they have.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
sharma mohit

Noavatar
Total post : 8
> Profile
Written on : 26/10/2009 13:52 ( more than one month )
Object : Re: Register into Tree
Hi,

Thanks for reply, I am facing one more problem, that is if I have created a Tree Structure like following

DP School
             |->Class 6A
             |->Class 6B

And then I give user (John - Public Administrator) acces to Class 6A and nothing else, when John logs in his account and try to create new user, he sees "Hidden Node" in Tree and when he clicks on "Hidden Node" then he is able to see Class 6A.

I want to know if there is any way where Class 6A can be directly displayed without giving him access to "DP School" & without clicking on "Hidden Node". Will be great if we can "Hidden node" actually.

Please advise.

Regards
Vijay
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 30/10/2009 10:14 ( more than one month )
Object : Re: Register into Tree

Hello,
not this is not possible as it would compromise the tree structure..

 Anyway.. DP School isn't the root folder, right?

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 02/03/2010 18:35 ( more than one month )
Object : Re: Register into Tree
Writted by: Derks Giovanni


Hi,
here you can see a screencast that explain what you want to do.. 
 


Thanks Giovanni.

I learnt a lesson.

There is few bugs i encountered.

Bug 1: During user registration, after i choose a language, it will trigger the form submit although i have not completed the registration.




Bug 2: The system will trigger an email to my mailbox. Inside that mail. It contains 'rn'. How can i remove them?




Bug 3: I choose Chinese language, so the above email shall be in Chinese also. How can i achieve that?

Bug 4: I choose "Chinese" language as my language. But, the system still store "English" language. Can that be fixed?

From LiangEH
Message modified by : liangeh on : 02/03/2010 18:49
 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 11/03/2010 13:19 ( more than one month )
Object : Re: Register into Tree
Hi All,

I experience another way of registration. This time, I choose language first and then choose Register link. This way the Register into Tree cannot work!






See the screenshot below, I am able to receive the email in Chinese. This is good. See my earlier post for the bug.




I suspect the Node's custom field cannot function, is due the system can only recognize the value of "China" not its translation. If i don't switch language and do registration, things work with some bugs mentioned in earlier post.




Note: Can i remove the personal images of the forum? Quite a long list for me. Will that affect my Post which used the personal images?

LiangEH
Message modified by : liangeh on : 11/03/2010 13:22
 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 11/03/2010 17:45 ( more than one month )
Object : Re: Register into Tree
For the "rn" appears in the registration email. I went into the language, choose "LMS" platform, "Register" Module, look for _REG_MAIL_TEXT and remove the "rn" or "\r\n" wordings.

From LiangEH
Message modified by : liangeh on : 13/03/2010 20:19
 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 13/03/2010 20:12 ( more than one month )
Object : Re: Register into Tree
Hi All,

I thought of translation of China causing the problem, so I went in and set the field value to single value without any translation, ie. China , Register into Tree still cannot work!

So, once you choose the language into Other Language than default language and do Register, the register into Tree will fail.

Please help to fix this problem.

The LMS i want to deploy, users are largely from China, they sure want to choose the chinese language and do registration. So, register into tree will fail, then my catalog is pointing to the tree's node will fail also.

from LiangEH
Message modified by : liangeh on : 13/03/2010 20:14
 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 13/03/2010 20:46 ( more than one month )
Object : Re: Register into Tree
There is a translation error like below:

 &lt;&lt; 返回


Go to language setting, Global Admin platform, standard module, look for _BACK.
 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 14/03/2010 08:58 ( more than one month )
Object : Re: Register into Tree

If multilanguage is implemented, register into tree using Custom Field and Node will NOT WORK.

When english (default language) is used, the html is:
<select class="dropdown"
id="register_tree_code"
name="register[register_tree_code]" >
<option value="3">China</option>
<option value="5">Malaysia</option>
</select>

When Chinese (other than default language) is used, the html is:
<select class="dropdown"
id="register_tree_code"
name="register[register_tree_code]" >
<option value="4">China</option>
<option value="6">Malaysia</option>
</select>

3,5 can work; 4,6 cannot work. Node can only accept 3 and 5 custom field values to make Register to tree to work.

I have made a fix as below.

1. Edit doceboCore/lib/lib.usermanager.php, around line 1795

// Changed by liangeh for fixing Register into three failed if use multilanguages
    // $field->getAllSon() becomes $field->getAllCommonSon()

    $out .= Form::getDropdown( $field->getTranslation().' '.$mand_sym,
           'register_tree_code',
           'register[register_tree_code]',
           $field->getAllCommonSon(),
           ( isset($_POST['register']['register_tree_code']) ? $_POST['register']['register_tree_code'] : '' )
          )

2. Edit doceboCore/modules/field/class.dropdown.php, after getAllSon function, around line 1216, add this new function.

//created by liangeh for fixing Register into three failed if use multilanguages
 function getAllCommonSon() {

  $lang    =& DoceboLanguage::createInstance('field');

  $sons = array();
  //find available common son
  $re_field = mysql_query("
  SELECT id_common_son, translation
  FROM ".$this->_getElementTable()."
  WHERE idField = '".$this->id_common."' AND lang_code = '".getLanguage()."'
  ORDER BY sequence");
  if(!$re_field) return $sons;
  while(list($id_commonson, $elem) = mysql_fetch_row($re_field)) {

   $sons[$id_commonson] = $elem;
  }
  return $sons;
 }

I am not sure whether the alteration will have any side effect to the system. I will closely monitor it.

From LiangEH

Message modified by : liangeh on : 14/03/2010 09:02
 
<< Back