By gökhan on Saturday, 19 April 2014
Posted in General Issues
Likes 0
Views 467
Votes 0
Hi,

How can i change country code to country name on profil header
The theme file responsible to output this is located in /media/com_easysocial/apps/fields/user/address/themes/default/widgets/display.php
·
Saturday, 19 April 2014 13:11
·
0 Likes
·
0 Votes
·
0 Comments
·
There is nothing about counrty code. it prints country but why appears country code?


<?php echo $value->country;?>





<?php echo $value->state; ?><?php if( !empty( $value->state ) && !empty( $value->country ) ) { ?>, <?php } ?><?php echo $value->country;?>
·
Sunday, 20 April 2014 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Upload the attached file into /media/com_easysocial/fields/user/address/widgets/profile/ . Then, in the template file the country value should no longer be the code. To get the country code it's country_code
·
Sunday, 20 April 2014 15:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks
·
Sunday, 20 April 2014 19:31
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Sunday, 20 April 2014 22:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Gokhan,


[28-Apr-2014 17:09:07 UTC] PHP Fatal error: Class 'SocialFieldsUserAddressHelper' not found in JOOMLA/media/com_easysocial/apps/fields/user/address/widgets/profile/view.html.php on line 59


Regarding your above issue, I've added a fix on your site and now the country name should display correctly

Hope this help and have a nice day
Sam
·
Tuesday, 29 April 2014 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post