By Mist on Tuesday, 03 June 2014
Posted in Technical Issues
Replies 7
Likes 0
Views 888
Votes 0
Hi guys, how to output city and state in EasySocial profile ?

The code below outputs only the state, city is not displayed

 
<?php if( $this->template->get( 'profile_address' , true ) ){ ?>
<?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderB' , array( 'ADDRESS' , $user ) ); ?>
<?php } ?>


Thanks !
Hello Mist,

I am sorry for the late reply.

You can put this attached file in your site. Please do a backup on your site before override this file.

Please be advise.
Thanks.
·
Tuesday, 03 June 2014 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the help with this.

Where should i copy the above file ? In what folder location ?
·
Tuesday, 03 June 2014 20:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry about that, Yasser should be a little clearer on this, perhaps he missed the path. You need to upload it into /media/com_easysocial/apps/fields/user/address/themes/default/widgets/
·
Tuesday, 03 June 2014 23:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect, everything works now. Both, the city & the state gets displayed.

I assume this file will be overwritten when we update easysocial. Is there any way i can set-up a template override in my joomla template folder ?

thanks !
·
Wednesday, 04 June 2014 02:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that's correct
·
Wednesday, 04 June 2014 12:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Personally I say it's best to wait until the state field comes out for the country field (ES 1.3). This way it can work better with geolocations and such and prevent you from having to deal with mods.
·
Wednesday, 04 June 2014 17:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

Thanks for your thought.
·
Wednesday, 04 June 2014 17:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post