By Mark H on Friday, 09 May 2014
Posted in Technical Issues
Replies 23
Likes 0
Views 1K
Votes 0
Hi,

I have set "Show Age In Profile" to "Yes", but the full Date of Birth is being shown to registered users.
Hi,

To set the privacy, go to Edit Profile and set the privacy by the birthday field instead.

The "Show Age In Profile" settings only states if the age should be displayed, it doesn't decide if the birthdate should be displayed or not.
·
Friday, 09 May 2014 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah ok, thanks.

Can I set the birthday privacy to be hidden by default for all users?
·
Friday, 09 May 2014 19:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Also, you might want to update this the tooltip next to that field Jason, as it is quite misleading.
·
Friday, 09 May 2014 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Currently not possible because all the fields share a common privacy rule.

This is rectified in the upcoming 1.3.
·
Friday, 09 May 2014 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm happy to hide both. I'd rather users choose if they want to show their age and birthday, but make them both hidden by default.
·
Friday, 09 May 2014 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Again this is not achievable currently because ALL THE FIELDS share a common privacy rule.

Which means if you set birthday to be hidden by default, all the other fields (address, name, username, etc) will be hidden.
·
Friday, 09 May 2014 19:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I see. Is this what you are referring to being rectified - the ability to choose individual privacy rules for fields?
·
Friday, 09 May 2014 19:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

the ability to choose individual privacy rules for fields?


Yes, you are right. In ES 1.3, admin will be able to set the privacy rules for each fields

Hope this help and have a nice day
Sam
·
Friday, 09 May 2014 19:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Tremendously, thank you so much Jason. I've set the field not to display at all for now.
·
Friday, 09 May 2014 19:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Mark
·
Saturday, 10 May 2014 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Guys...
Am I missing something here... when I turn on "Show Age In Profile", and look at a user's profile, I never see the age of the user. I was expecting to see, for example "08/12/1969 (44)" or something similar.
Dave
·
Friday, 06 June 2014 01:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Dave,

Hmm I tested this locally and it is working as expected.

Could you provide me your site's access so that I can check on this? I suspect there might be some old files/data lingering around that causes some conflict.
·
Friday, 06 June 2014 11:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason.
I've added the details to the site access tab below.
Dave
·
Friday, 06 June 2014 13:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Ahh it seems like you are using the theme Frosty.

The team has decided to remove the display of Age for the theme of Frosty in order for the profile header to look more compact and clean.

If you like to add this back, try adding this code at /components/com_easysocial/themes/frosty/profile/default.header.php after line 72


<?php if( $this->template->get( 'profile_age' , true ) ){ ?>
<li class="mt-5 teaser-about">
<div class="fd-small">
<?php echo $this->render( 'fields' , 'user' , 'profile' , 'profileHeaderA' , array( 'BIRTHDAY' , $user ) ); ?>
</div>
</li>
<?php } ?>


If this works then you might want to do a template override on the file /components/com_easysocial/themes/frosty/profile/default.header.php to ensure that your customization will retain on future EasySocial updates.
·
Friday, 06 June 2014 13:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason...
Made a copy of the file, and placed it in /templates/purity_iii/html/com_easysocial/themes/frosty/profile with the changes you suggested, but their not being reflected on the site - can you confirm I've put it in the right area.

Also, when viewing a user's full profile, is there anyway the age can be displayed in the output of the filed "BIRTHDAY". I see from the file default.about.php that the code seems to just iterate through the fields.

Dave
·
Friday, 06 June 2014 14:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason.
Disregard the first part of the last reply... realised I have to just create the path /templates/purity_iii/html/com_easysocial/profile to get it to work.
However, still interested to know if I can make the age appear when viewing the full profile info
·
Friday, 06 June 2014 15:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It is not directly possible currently but I can apply this hack for you if you like.

(Unfortunately while checking this, I found a bug where template override for Fields is not working properly, so if you like I will have to patch the field template override on your site as well)
·
Friday, 06 June 2014 16:02
·
0 Likes
·
0 Votes
·
0 Comments
·
That would be great if you could do that Jason... cheers!
·
Friday, 06 June 2014 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Done and it should display the age right beside birthdate now, subject to the same Show Age In Profile settings. (Don't worry about patching this part because this will be included in the next release)

I've also patched the template override for fields so in any case you would like to override the birthday part on the More info page, just create a file at /templates/purity_iii/html/com_easysocial/apps/fields/user/birthday/display_content.php and refer to the file at /media/com_easysocial/apps/fields/user/birthday/themes/default/display_content.php.
·
Friday, 06 June 2014 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Jason for all your help.
Have a good evening.
Dave
·
Friday, 06 June 2014 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Just a thought on the subject of this, maybe for a future release of ES...
It would be good to allow the user to hide their date of birth (just as they do now), but still have the ability, if they choose, to show their age.
I'll leave that one with you guys!
Cheers
Dave
·
Friday, 06 June 2014 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Ah good idea. Let me see if I can quickly add this in 1.2.16.
·
Friday, 06 June 2014 17:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

After inspecting, unfortunately I will not be able to add this in 1.2 (due to limited data structure).

The data structure is getting a facelift on 1.3, and with that only I am able to incorporate this feature so I will only be adding this on 1.3.
·
Friday, 06 June 2014 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post