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.

Profile Type field in About details

8 years 2 months ago
Licenses:
JomSocial Active

Hello,

I have multiprofiles activated and I want to show Profile Type in About tab in Community. I can't find the way. How can I do it?

Thanks

8 years 2 months ago
Licenses:

Hi,

here the steps:
1. copy /components/com_community/templates/jomsocial/layouts/profile.about.php into /templates/[your front end template]/html/com_community/layouts/profile.about.php

2. edit it, at line 16. put this new code

include_once JPATH_ROOT.'/components/com_community/libraries/core.php';

$cuser = CFactory::getUser($profile['id']);

$multiprofile = JTable::getInstance( 'MultiProfile' , 'CTable' );
$multiprofile->load( $cuser->getProfileType() );
?>
<ul class="joms-list__row joms-push">
    <li>
        <?php echo '<h4 class="joms-text--light"><span>'.JText::_('COM_COMMUNITY_PROFILE_TYPE').'</span></h4>'; ?>
    </li>
     <li>
        <?php echo '<span>'.$multiprofile->name.'</span>'; ?>
    </li>
</ul>
<?php

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