How to Integrate a Custom Module with Frontend User in CMS Made Simple?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Ariel19
New Member
New Member
Posts: 1
Joined: Thu Jun 05, 2025 3:09 am

How to Integrate a Custom Module with Frontend User in CMS Made Simple?

Post by Ariel19 »

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!
Ariel Brwon Retro Bowl
User avatar
airelibre
Dev Team Member
Dev Team Member
Posts: 99
Joined: Tue Dec 01, 2009 3:42 pm
Location: Alsace // France

Re: How to Integrate a Custom Module with Frontend User in CMS Made Simple?

Post by airelibre »

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 :

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();
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!
Post Reply

Return to “Modules/Add-Ons”