HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Change members list to display Join Date, Last Active date or any combination of those.

to start, you need two fields in the config table in the database, so use this sql:


INSERT INTO `ocp_config` (`the_name`, `human_name`, `c_set`, `config_value`, `the_type`, `eval`, `the_page`, `section`, `explanation`, `shared_hosting_restricted`, `c_data`) VALUES
('use_joindate', 'USE_JOINDATE', 1, '0', 'tick', 'return ''1'';', 'FEATURE', 'MEMBERS', 'CONFIG_OPTION_use_joindate', 0, ''),
('use_lastondate', 'USE_LASTONDATE', 1, '0', 'tick', 'return ''1'';', 'FEATURE', 'MEMBERS', 'CONFIG_OPTION_use_lastondate', 0, '')

This will add options into Adminzone->Setup->Configuration->Feature Options->Members.   It will look like the below image, and this is how you turn on and off each one to show:

Next, from lang/EN/config.ini, add the following lines at the bottom:


USE_JOINDATE=Join Date in Members List
CONFIG_OPTION_use_joindate=If selected, members Join Date is seen in the members list.
USE_LASTONDATE=Last Online Date in Members List
CONFIG_OPTION_use_lastondate=If selected members Last Online date is seen in the members list.

If you are using english, then go into /lang/EN/ofc.ini   search for 'JOIN_DATE' and below it add:



Note:  It is possible that for whatever reason, OCP might not pick up this language change if you put it in the lang_custom directory.  Another user had an issue and where last_active wasn't being picked up, he removed the file from lang_custom file and put it in lang/EN instead and it fixed the issue

And this is the new site/pages/modules_custom/members.php:

» Download: members.php (14 Kb, 207 downloads so far)

And here are some examples showing neither being shown, one or the other, and both.   

There are no pages beneath this page

There are no posts yet

CEDI change-log Post