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.

Multiprofile

6 years 9 months ago
  • Brian's Avatar
    Topic Author
  • Brian
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi,

I was wondering if you could help me with one small line of code. I had it at one time, but had to reinstall it and for the life of me can't figure it out.
It's probably very simple, but I want to place the user's profiletype below the users name on their profile page. RIght now, I have it as the code below, but it is displaying the id# instead of the name of the profile type. I also attached a photo of what it looks like. Thank you for your help!


$multiprofile->load($user->getProfileType());

Attachments:
6 years 9 months ago
Licenses:

Hi, Brian.

Thank you for contacting us.
Please, use this code:

            <?php 
            $cuser = CFactory::getUser($profile->id);
            $multiprofile = JTable::getInstance( 'MultiProfile' , 'CTable' );
				$multiprofile->load( $cuser->getProfileType() );
				echo $multiprofile->name;
             ?>


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
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