suspend users

Questions about the backend functionalities: configuration, user management, course management, ...
Post Reply
cao
FormaLms User
Posts: 60
Joined: Fri Oct 12, 2018 8:32 pm
Version: forma.lms 2.0

suspend users

Post by cao » Mon Jul 08, 2019 6:25 am

I created 40 users using a cvs file.
the cvs file fields: username, firstname, lastname, email, password, suspend.
suspend is an additional field create using -->Setting-->Additional fields.
the Field name = suspend Field category = yesno
suspend is a yesno field (Boolean), yes=1 no=0 .
I can see the suspend field in the database, in core_field table.
I am trying to suspend 20 users at the same time, using the cvs file.
But, is not working. How to suspend or deactivated more than one users
using a cvs file.
Thank You

User avatar
max
FormaLms Guru
Posts: 2049
Joined: Thu Mar 01, 2012 10:41 am

Re: suspend users

Post by max » Mon Jul 08, 2019 7:33 am

Hii Cao,

additional fields are just labels, they cannot be used to perform actions. Using that field you can easily identify the 20 users that you want to suspend, and thus you can
- search for them (via advandced search)
- select them all
- suspend them all in bulk
It's still a manual activity, but at least you can perform massive actions.

If you want to automatically suspend (or add, or delete) users you normally do it by hooking your LMS to an external application, such as a HR management system. If users are suspended there, they will be suspended in the LMS. You do that either via API or via connectors.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

cao
FormaLms User
Posts: 60
Joined: Fri Oct 12, 2018 8:32 pm
Version: forma.lms 2.0

Re: suspend users

Post by cao » Mon Jul 08, 2019 7:52 am

Thank you for the info.
Now, any info on performing action or an example.
The suspend button should be able to communicate with the db and deactivated the users.
I hope that functionality is on the roadmap.
Thank

User avatar
max
FormaLms Guru
Posts: 2049
Joined: Thu Mar 01, 2012 10:41 am

Re: suspend users

Post by max » Mon Jul 08, 2019 8:01 am

Hi Cao,

the suspend button already does that....
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

cao
FormaLms User
Posts: 60
Joined: Fri Oct 12, 2018 8:32 pm
Version: forma.lms 2.0

Re: suspend users

Post by cao » Mon Jul 08, 2019 8:43 am

What is the name of the field on the db, that the suspend button write to.
I look all over the db for word like action, suspend, deactivated, activate, reactivate.
But no cigar, I found nothing except in the table core_lang_translate.

User avatar
max
FormaLms Guru
Posts: 2049
Joined: Thu Mar 01, 2012 10:41 am

Re: suspend users

Post by max » Mon Jul 08, 2019 11:21 am

Hi, sorry but I don't understand why you are looking for that. The suspend button already does what you need. I suppose the table you're referring to would be core_XXXXXX_user, anyway
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

alfa24
FormaLms Master
Posts: 434
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: suspend users

Post by alfa24 » Mon Jul 08, 2019 11:34 am

The field name you're searching for is "valid", in the core_user table.
I'm Jasmines, the One. If you need, you can contact me.

cao
FormaLms User
Posts: 60
Joined: Fri Oct 12, 2018 8:32 pm
Version: forma.lms 2.0

Re: suspend users

Post by cao » Tue Jul 09, 2019 4:27 am

Thank You, for the info
I came across the following site: http://phpcrossref.com/learning/
They are using Forma ver 1.1 maybe, they can upgrade to ver 2.2
Thank You All

cao
FormaLms User
Posts: 60
Joined: Fri Oct 12, 2018 8:32 pm
Version: forma.lms 2.0

Re: suspend users

Post by cao » Tue Jul 09, 2019 4:30 am

The new website look pretty....
I like it.

alfa24
FormaLms Master
Posts: 434
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: suspend users

Post by alfa24 » Tue Jul 09, 2019 9:00 am

You can use phpxref for your own project. Follow instructions here: http://phpxref.sourceforge.net/
I'm Jasmines, the One. If you need, you can contact me.

Post Reply