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.

Custom Field Displayed on "All Members" page

10 years 9 months ago
Licenses:
JomSocial Expired

ISSUE SUMMARY:
Hello,

I was wondering how simple it was to pull a custom field to display on the "All Members" page. Basically, some members are in charge of different groups and I want their specific title displayed above their name on this page. Keep in mind not everyone has the same title, so, therefore I would need the code to pull the information from that users ID.

Thanks!

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

10 years 9 months ago
Licenses:

Hi,

you need to make override for:
/components/com_community/templates/jomsocial/layouts/people.browse.php

and use jomsocial user objects for pull custom field. here the doc:
documentation.jomsocial.com/wiki/JomSocial_User_Object
documentation.jomsocial.com/wiki/Customizing_Template

if you dont know how to do it. please elaborate more what field that you want to display it. and please provide me FTP access detail by editing your first post at this topic. put it at site info form (private).
I will do it for you.

Regards

10 years 9 months ago
Licenses:
JomSocial Expired

Hey Albertus,

Thanks for your response, I'm needing the field FIELD_POSITION to be displayed above the name of the member. I've provided FTP access information to my original post.

My 2nd question on the same topic is, could this be done as a template override. I've been wanting my changes to still apply even when I update JomSocial when a new version is released.

Thanks

10 years 9 months ago
Licenses:

Hi
here the template override that I put at:
/templates/purity_iii/html/com_community/layouts/people.browse.php line 98

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

this changes will be stayed at jomsocial upgrade process for next release.

Regards

10 years 9 months ago
Licenses:
JomSocial Expired

Hello Albertus,

I really appreciate you taking care of this for me. My last question is regarding the template override, lets say for example in the next version of Jomsocial the people.browser.php gets updated perhaps a bug gets fixed. What happens to the people.browser.php fie in the template override folder? Does the bug fix still get applied even though their is an override?
Thanks again,

Jordan

10 years 9 months ago
Licenses:

Hi,

template override will not touching by update process. any bug fixes will not applied to override files.
That thing that must be accepted if you make changes/customization.

Regards

10 years 9 months ago
Licenses:
JomSocial Expired

Hello,

So, the original file that has the bug fix will still be applied regardless if their is an override?

Thanks,

Jordan

10 years 9 months ago
Licenses:

Hi,

yes. original files will still applied. because that original files is part of jomsocial core files.
to revert back the changes. you can delete/rename that override files.

Regards

10 years 9 months ago
Licenses:
JomSocial Expired

Perfect thanks again!

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