By Sky Host on Thursday, 29 January 2015
Posted in Technical Issues
Likes 0
Views 814
Votes 0
Hi SI team,

How do I show relationship status on the Profile under name? I used

echo $user->getFieldData('RELATIONSHIP');

but it works only for text fields and not drop down fields like Relationship Status.

please help
Hi,

I am sorry for the delayed reply.
Here I have attached to you 2 files, please download it and put it here:
.../components/com_easysocial/themes/wireframe/profile/default.header.php
.../media/com_easysocial/apps/fields/user/address/themes/default/widgets/display.php

I am really sorry for the inconvenience caused. By the way, this is a customization and it will get override if you update EasySocial to the latest. Please backup these modified files before updating EasySocial to the latest.

Hope this work.
·
Friday, 30 January 2015 02:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sky,

I am sorry for the late reply. Can you try download this file and put it in your site here: .../components/com_easysocial/themes/wireframe/profile/default.header.php

Please give this a try and see if this suits your needs.
Thanks.
·
Thursday, 29 January 2015 16:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much Mohdyasseribz.. that does the trick but for the address, it shows only State and country but it does not show City. How do I show just City and Country? thanks you so much for your patience
·
Thursday, 29 January 2015 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sky,

Here I have attached to you a file, please download it and put it here: .../components/com_easysocial/themes/wireframe/profile/default.header.php

Hope this helps.
·
Thursday, 29 January 2015 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
And one more problem. When I use

<?php $test = json_decode($user->getFieldData('RELATIONSHIP'));
echo $test->type; ?>

It shows "relationship" and not "In a Relationship". I checked the language file and it is there

PLG_FIELDS_RELATIONSHIP_RELATIONSHIP="In a relationship"
·
Thursday, 29 January 2015 18:17
·
0 Likes
·
0 Votes
·
0 Comments
·
it worked like a charm. thank you so much mohd yasser..
·
Saturday, 31 January 2015 14:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issues are resolved now
·
Sunday, 01 February 2015 14:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post