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.

Adding fields to the Member Directory listings

7 years 9 months ago
  • Edward's Avatar
    Topic Author
  • Edward
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Licenses:
JomSocial Active

ISSUE SUMMARY:
We would like to add City & State to the listings in the Member Directory.
Is there a way to add fields? I've looked and could not find it.

STEPS TO REPLICATE:
1 Log in as a user
2 Select Member Directory
3 See the list of Members containing their avatar, name, and a couple other things.
4
5
RESULT
Normal member listing
EXPECTED RESULT
We would like to add a couple of additional fields to each listing.
BROWSER
Any

7 years 9 months ago
Licenses:

Hi,

you can do it by using template overrides, so the changes will not disappear at upgrade process.
documentation.jomsocial.com/wiki/Customizing_Template

1st it would be great if you using jomsocial latest version: 4.2.4, because many bug fixes there.

to adding some fields:
/components/com_community/templates/jomsocial/layouts/people.browse.php
copy to
/templates/yoo_monday/html/com_community/layouts/people.browse.php

and put this code at line 101

<?php
    // custom field FIELD_POSITION
    $cuser = CFactory::getUser($row->user->id);
    echo $cuser->getInfo('FIELD_CODE_FROM_OTHER_FIELD');
?>

ref:
documentation.jomsocial.com/wiki/JomSocial_User_Object

Regards

The following user(s) said Thank You: Edward
7 years 8 months ago
  • Edward's Avatar
    Topic Author
  • Edward
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Licenses:
JomSocial Active

That got me in the right direction...thanks!

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