User profile fields: Multi select menu custom user profile field
We are happy to publish multi-select menu as a custom user profile field for Moodle.
How it could be useful:
This new custom profile field type could be used in many cases like:
1. You have to differentiate users into groups and one user could be part of multiple groups
2. You want to take inputs from user at the time of registration or you manually want to fill some information for users like education, certificates they have done.
3. There could be various other cases like this,
Installation Instructions:
1. Unzip the directory and copy inside your-moodle /user /profile /field (at the end the folder structure should look like your-moodle/user/profile/field/multiselect)
2. Log into Site as Admin user and go to site-administration -> Notification to perform installation.
3. After successful installation, you would find a new custom profile field type inside site administration -> user -> accounts -> user profile fields
4. Enjoy this new feature.
Thanks for a great plugin. I am interested in using it but we have moodle 2.2 version; would it work with it?
Thanks
You must solve all the plugin requirements before proceeding to install this Moodle version!
I corrected them by checking $this->field.
Before line 18 and line 21 I added: if ($this->field)
I really like this plugin and we are going to use it in our moodle as soon it will be ready.
select c.id , c.fullname from {course} AS c where c.id != 1
this error data column is missing in query return values
why this error appear?
select c.id , c.fullname from {course} AS c where c.id != 1
this error data column is missing in query return values
why this error appear?
any help here???
Use of class name as constructor is deprecated
line 119 of /user/profile/lib.php: call to debugging()
line 14 of /user/profile/field/multiselect/field.class.php: call to profile_field_base->profile_field_base()
line 571 of /user/profile/lib.php: call to profile_field_multiselect->profile_field_multiselect()
line 646 of /user/profile/lib.php: call to profile_get_user_fields_with_data()
line 238 of /user/editadvanced_form.php: call to profile_definition_after_data()
line 961 of /lib/formslib.php: call to user_editadvanced_form->definition_after_data()
line 357 of /user/editadvanced.php: call to moodleform->display()
I have replaced
function profile_field_multiselect($fieldid=0, $userid=0) {
//first call parent constructor
$this->profile_field_base($fieldid, $userid);
this code with the below code
public function __construct($fieldid = 0, $userid = 0, $fielddata = null) {
//first call parent constructor
parent::__construct($fieldid, $userid, $fielddata);
in /user/profile/field/multiselect/field.class.php
Hope this helps.
Thanks and regards,
Sandipa
I assume it defines a field and I can use it in any section that allows html, right?
For example: I define the field "Preferred name" and in some activity I want to use the field as: "Hello solve the following task"
But in the documentation you cannot find instructions to use the defined field
Can you help me