In JomSocial previous versions, the "About me" information was shown in a module on the sidebar, like this:
Hi, David.
Old "About me" module was deprecated. So the only way will be to create new module like that.
If you have php skills you can create it on your own... or hire a developer to do it for you:
www.jomsocial.com/jomsocial-developers
I was spectating that answer, so I created a module to achieve that, on the view, I borrowed the code from the userinfo.php file:
<?php defined('_JEXEC') or die; ?>
<div><?php echo $about; ?></div>
<dl class="dl-horizontal">
<dt><?php echo JText::_('COM_COMMUNITY_MEMBER_SINCE'); ?></dt>
<dd><?php echo JHTML::_('date', $registerDate, JText::_('DATE_FORMAT_LC2')); ?></dd>
<dt><?php echo JText::_('COM_COMMUNITY_LAST_LOGIN'); ?></dt>
<dd><?php echo $lastLogin; ?></dd>
<?php if ($multiprofile->name && $config->get('profile_multiprofile')) { ?>
<dt><?php echo JText::_('COM_COMMUNITY_PROFILE_TYPE'); ?></dt>
<dd><?php echo $multiprofile->name; ?></dd>
<?php } ?>
</dl>
Hi, David.
Your solution will not work this way.
$about loads a lot of other variables that contain data from database.
So you may create a direct sql query to acquire those data.
There is a way to display any profile field value but in component content:
www.jomsocial.com/forum/profile-universa...dd-some-field#109680
But still this will not work in module as module needs to load current profile info...
Let me think about it a while... now during holidays our support is limited... but after 7th January I'll provide you with solution for this.
I mark your thread as Pending Support so I could see it on my TODO list ;)
Hi, David.
I'm back from holidays... but this will take a bit time so I ask your patience ;)
I'll update this thread when have a solution
HI, David.
Just a little question - you want similar features as "about me" module from which version?
Hi, David.
Ok, but "About me" contain or may contain a lot of fields 10 or even more. Should they be displayed all? Or just few of them (admin will set which one)? Or shows only few on beginning and the rest after click?
Hi, David.
OK, I've done some research. This box (it wasn't a module) was available in version < 2.6.
Then in next versions it was moved to link under profile cover.
The same code is called but along with whole header. And due changes in our API it can't be called again in profile.index.php
Also make a module for it have less sense as it will only display any content on profile pages (as it contain strictly profile related data [profile ID]).
It still could be done abut in rather "dirty" way - by fetching data directly from database and displayed in a box. So are you still interested in that? As we fetch data directly we could choose if all fields will be displayed or only selected ones. But there will be no sophisticated (or any) administration panel or settings for it). Just a box in profile view.
Hello, Michal! Thanks for the help!
As the solution you propose, I can code it by myself. But the site will be retrieving from the database the same information twice! Once for the link under profile cover and one more for my module. As JomSocial already is retrieving that data and store it on $about, there's no way to use that and save a query?
If that's the only solution and can't retrieve the data under $about, don't worry, I will code it by myself and mark the problem as fixed :)
Hi, David.
If you use $about then you'll get notice that variable is undefined. Our API was changed in this point so this doesn't work anymore.
So I'm afraid that only direct query is only possible solution at the moment.