Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Select field for display on backend member list

8 years 8 months ago
Licenses:
JomSocial Expired

My client runs an organisation with an annual membership cycle.
As people pay, she updates MemberYear field to the current membership year.
Older members that have not renewed their membership are still allowed to access the site, so we don't disable their access.

When we go to Monitor > Members, my client wants the membership year to be visible as a column.
This is so she can see at a glance whether someone is paid up or not.

Is there any way to do this using the user interface?
If not, what PHP file can I hack?

Thanks
Brendon

8 years 8 months ago
Licenses:
8 years 8 months ago
Licenses:
JomSocial Expired

Thanks.

The references are useful, and I know what to do with them.
Could you please refer me to which file I need to override for the backend member list?

The GUI path is Components > JomSocial > Monitor > Members

Thanks
Brendon

8 years 8 months ago
Licenses:

Hi,

for that you must edit/hack this code:
/administrator/components/com_community/views/users/tmpl/default.php

overrides only for frontend.

Regards

8 years 6 months ago
Licenses:
JomSocial Expired

Hi

Thanks. I have found where to edit the file.
I want to replace the user points
<?php echo $row->_points; ?>

with the membership year
<?php echo $row->FIELD_MEMBERSHIP_YEAR; ?>

However, the user points is an "internal" field whereas membership year is a custom field.
It looks like my code above is incorrect when fetching a custom field.
Nothing appears on the page.

What do I need to change?

Thanks
Brendon

8 years 6 months ago
Licenses:

Hi,

here the code

<?php
$cuser = CFactory::getUser($row->id);
$data = $cuser->getInfo('FIELD_MEMBERSHIP_YEAR');
echo JText::_($data);
?>

FYI:
documentation.jomsocial.com/wiki/JomSocial_User_Object

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW