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 display

10 years 7 months ago
  • Akos's Avatar
    Topic Author
  • Akos
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

ISSUE SUMMARY:
Hi there,

we use different profiles, but if you see a profile page, no change. How can we display the type of profile in the mini header?

Thanks so much!!

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

10 years 7 months ago
Licenses:
10 years 7 months ago
  • Akos's Avatar
    Topic Author
  • Akos
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi, thanks so much, it works perfectly on people browse view.

But if I put this code into layouts/profile/focus.php it does not work at all. What am I doing wrong?

Please help :-)

10 years 6 months ago
Licenses:

Hi

here the code

$mainframe = JFactory::getApplication();
$jinput = $mainframe->input;
$my = CFactory::getUser();
$userid = $jinput->get('userid', $my->id, 'INT');
 
$cuser = CFactory::getUser($userid);
$multiprofile = JTable::getInstance( 'MultiProfile' , 'CTable' );
$multiprofile->load( $cuser->getProfileType() );
echo $multiprofile->name;

Regards

10 years 6 months ago
  • Akos's Avatar
    Topic Author
  • Akos
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

Thanks, but how can I put it into focus.php?

I have copied like these:
<div class="joms-focus__info--desktop">
<?php echo JHTML::_('string.truncate', $this->escape(strip_tags($profileFields)), 140); ?>
<br>

$mainframe = JFactory::getApplication();
$jinput = $mainframe->input;
$my = CFactory::getUser();
$userid = $jinput->get('userid', $my->id, 'INT');

$cuser = CFactory::getUser($userid);
$multiprofile = JTable::getInstance( 'MultiProfile' , 'CTable' );
$multiprofile->load( $cuser->getProfileType() );
echo $multiprofile->name;

</div>
But only codes in header :-((

Thanks so much for your help!!

10 years 6 months ago
Licenses:

Hi,

please edit your first post at this topic. and provide me FTP access detail at site info form.
and what exactly position do you want to put profile type (give me screenshot)

I will do it for you, so this topic not getting longer anymore.

Regards

The following user(s) said Thank You: Akos
10 years 6 months ago
  • Akos's Avatar
    Topic Author
  • Akos
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

I think its done :-)

Thanks!

10 years 6 months ago
Licenses:

Hi,

please check it. you need to put php code between this

<?php
put your php code here
?>

and if you dont want the changes disappear at upgrade process, you need to using override method:
copy people.browse.php from /components/com_community/templates/jomsocial/layouts/ to /templates/[your frontend template]/html/com_community/layouts/

and focus.php form /components/com_community/templates/jomsocial/layouts/profile/ to /templates/[your frontend template]/html/com_community/layouts/profile/

Regards

10 years 6 months ago
  • Akos's Avatar
    Topic Author
  • Akos
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

Thanks so-so much!! You are great, man!!

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