Hi everyone,
I am developing a custom module in CMS Made Simple (latest version) and would like to integrate it with the Frontend User system, specifically to display data for each user individually when they log in.
Can anyone share a tutorial or specific example on how to do this?
Thanks a lot!
How to Integrate a Custom Module with Frontend User in CMS Made Simple?
Re: How to Integrate a Custom Module with Frontend User in CMS Made Simple?
Hello,
As FrontEndUsers is no longer maintained, you should now use MAMS (Members Access Made Simple) to achieve this.
In a module, you can use several MAMS methods to check if a user is logged in, the groups he/she belongs to, ...
Example :
Check the class MAMSManipulator in modules/MAMS/lib/class.MAMSManipulator.php to get all the methods available, and use it directly with the MAMS module instance ($mams on the upper code).
Have fun!
As FrontEndUsers is no longer maintained, you should now use MAMS (Members Access Made Simple) to achieve this.
In a module, you can use several MAMS methods to check if a user is logged in, the groups he/she belongs to, ...
Example :
Code: Select all
// Get the module
$mams = \cms_utils::get_module('MAMS');
// Check is a user is logged in and get the user ID
$userId = $mams->LoggedInId();
// Get the groups
$groups = $mams->GetMemberGroups();
Have fun!