By Robert on Thursday, 02 October 2014
Posted in General Issues
Replies 11
Likes 0
Views 621
Votes 0
Hi guys, I was wondering if you can help me get this code working again. It has stopped working after upgrading to es 1.3.x. what this code does is to display the users city and state. in the user's profile header. I also tried it in the stream next to the username but that didn't work.

<?php if ($user->getFieldValue('ADDRESS1')) { ?>
<?php echo $user->getFieldValue('ADDRESS1')->value->city; ?> <?php echo $user->getFieldValue('ADDRESS1')->value->state; ?>
<?php } ?>


I thank you for your help
Hi,

This code should still be valid. You will have to check if your unique key for the address field is indeed "ADDRESS1".
·
Thursday, 02 October 2014 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason, the Unique key is still the same but it's not work. I am using wanderers template
·
Thursday, 02 October 2014 18:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I just tested this on your site and it seems to be working properly.

1. Can you please advise which file contains the piece of code that you've pasted above?
2. Please advise on the FTP access because I can't seem to log in.
·
Friday, 03 October 2014 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason, the file is located in template/wanderers/html/com_easysocial/comment/item.php

After Upgrade, I replace the address field and rename the key to address1 but that didn't work.

Ftp info is submitted.

Thanks
Robert
·
Friday, 03 October 2014 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

The FTP that you've provided and the site access that you've provided seems to be 2 different site?
·
Friday, 03 October 2014 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
That is for the site i provided
·
Friday, 03 October 2014 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
thew ftp details belong to the site listed in the details, please let me know if you need any other infos.
·
Saturday, 04 October 2014 08:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I actually tried to debug through the FTP and it seems like it is not reflecting any changes on your main site. It seems like the FTP account provided is not pointing to the site that you've provided.

But I've tried to install extplorer through your site's backend and manually debug from there, and tested the codes as well, it is actually working properly.
·
Saturday, 04 October 2014 11:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason and thanks for helping me out with this. Did you remove the code that you tested because I am still unable to see the city and state from the comment in user stream..I only noticed the age but not the city and state..
·
Saturday, 04 October 2014 21:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Disregard, it works. Somehow all of my users city and state data have been removed after the upgrade. I had to add my city and state again for it to show. is there a way to get those data back?
·
Sunday, 05 October 2014 00:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Robert,

I did not remove the codes. If you have modified the code in the core EasySocial files or Wanderers template, upgrading them will cause your changes to get wiped.

As for city and state data, upgrading does not delete data. I've checked through some of your users and their data are still intact.
·
Wednesday, 08 October 2014 10:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post