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.

Below name of member, can we add some field?

10 years 5 months ago
Licenses:
JomSocial Expired Socialize Expired

Hello guys,
I have a menu called "Girls" where i have a list of all my members. Is it possible to get age & description below their name?
Thanks,
Anais

Attachments:
10 years 5 months ago
Licenses:

Hi, Anais.

Yes, it's possible. You'll need to edit this file:

ROOT/components/com_community/templates/default/people.browse.php

Look for this line: <div class="cIndex-Content"> (around line 190).

You'll find there this code:

<h3 class="cIndex-Name cResetH">
<a href="<?php echo $row->profileLink; ?>"><?php echo $row->user->getDisplayName(); ?></a>
</h3>

It displays user name. So just add new divs below it.

You can add every field you have in Customize Profile like this;
<?php 
echo $row->user->getInfo('MY_FIELD_CODE');
?>

MY_FIELD_CODE - this is your field code (not title). You'll find field code in Customize Profile in Field Code column.

Be aware that if your field contains predefined data like country or gender it will display language constant instead of translation.


- 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
10 years 5 months ago
Licenses:
JomSocial Expired Socialize Expired

Hello,
I did what you told me and input this code but still not appearing :( Can you please help me?

Thanks
<?php
$fieldaboutme = $row->user->getInfo('FIELD_ABOUTME');
echo JText::_($fieldaboutme)

10 years 5 months ago
Licenses:

HI, Anais.

It's because you have override file in your current template html folder:

ROOT/templates/shape5_vertex/html/com_community

so you need to edit file there (I already did it).

Also I corrected my code above.


- 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
10 years 5 months ago
Licenses:
JomSocial Expired Socialize Expired

Sorry but there is still an issue, it put an XXX below any girl, not the field i wanted :(
And the number of friends appear whereas i desactivate this option :(

Attachments:
10 years 5 months ago
Licenses:

Hi, Anais.

Then just edit this file: ROOT/templates/shape5_vertex/html/com_community/people.browse.php and remove "xxxx" where you added it.

To remove number of friends look for this: COM_COMMUNITY_FRIENDS_COUNT_MANY and remove whole container:

<div>
<i class="com-icon-groups"></i>
<span><?php echo JText::sprintf( (CStringHelper::isPlural($row->friendsCount)) ? 'COM_COMMUNITY_FRIENDS_COUNT_MANY' : 'COM_COMMUNITY_FRIENDS_COUNT', $row->friendsCount);?></span>
</div>


- 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
10 years 5 months ago
Licenses:
JomSocial Expired Socialize Expired

How can i remove XXX below each member aliasname please because it appeared since you changed something? :(

10 years 5 months ago
Licenses:
JomSocial Expired Socialize Expired

Sorry i didnt see your mail :)

10 years 5 months ago
Licenses:
JomSocial Expired Socialize Expired

Re!
My modules in JS Side front page all disappear and they are noted as published (sheet Les Girls). Is it because of your changes? It is annoying :(
Anais

10 years 5 months ago
Licenses:

Hi, Anais.

No, changes in that file doesn't influence any module positions it simply doesn't contain any.
Please open new thread for your issue so I'll take a look.


- 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