By Ashley Rosenthal on Thursday, 12 December 2013
Posted in General Issues
Replies 12
Likes 0
Views 569
Votes 0
Hi, I was wondering if there was a way to customize what information is posted and seen on ones profile. For example, we would like to have one's college and current profession be shown on the main user profile right next to the avatar and recent activities taken off.
Hello Ashley,

It's currently not possible to configure this out of the box but you can customize this in the theme file /components/com_easysocial/themes/wireframe/profile/default.header.php
·
Thursday, 12 December 2013 11:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

I just attempted to insert additional profile information into the default header on the users profile page. I inserted a piece of code at line 197 on the default.header.php file.

This is the code I used:

<a href= data-profile-about-fields-item data-element="<?php echo $field->element; ?>" data-id="<?php echo $field->id; ?>" data-fieldname="<?php echo SOCIAL_FIELDS_PREFIX . $field->id; ?>">
<?php echo $field->output; ?>
</a>

I also tried it with this code:

<div> data-profile-about-fields-item data-element="<?php echo $field->element; ?>" data-id="<?php echo $field->id; ?>" data-fieldname="<?php echo SOCIAL_FIELDS_PREFIX . $field->id; ?>">
<?php echo $field->output; ?>
</div>

Neither of them made any difference on the profile page. Could you advise me on this please? Thank you!!
·
Friday, 27 December 2013 12:12
·
0 Likes
·
0 Votes
·
0 Comments
·
I tried to insert the code into my response... it is not appearing properly. Take a look at the attached image file to see the code I used

<a href= data-profile-about-fields-item data-element="<?php echo $field->element; ?>" data-id="<?php echo $field->id; ?>" data-fieldname="<?php echo SOCIAL_FIELDS_PREFIX . $field->id; ?>">
<?php echo $field->output; ?>
</a>
I also tried this code:

<div> data-profile-about-fields-item data-element="<?php echo $field->element; ?>" data-id="<?php echo $field->id; ?>" data-fieldname="<?php echo SOCIAL_FIELDS_PREFIX . $field->id; ?>">
<?php echo $field->output; ?>
</div>
·
Friday, 27 December 2013 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry but I have no idea what you are trying to achieve here.
·
Friday, 27 December 2013 23:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I am trying to get information like someone's education and current job to be on the front of their profile.
·
Saturday, 28 December 2013 01:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashley,

To output a user's custom field value, you would need to add the following code (Example)


<?php echo $user->getFieldValue( 'GENDER' ); ?>


The "GENDER" value here needs to be updated with the respective unique key which can be retrieved when you are editing the custom fields of a profile. For instance, take a look at the screen shot here, http://screencast.com/t/OS0AZVMncWb3
·
Saturday, 28 December 2013 15:01
·
0 Likes
·
0 Votes
·
0 Comments
·
This is exactly what I'm looking for! Is it safe to assume there is also a setFieldValue() function that can be called? I didn't see it in the documentation but I may have missed it...

Thanks!
·
Saturday, 08 February 2014 00:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, we don't have a "setter" yet currently
·
Saturday, 08 February 2014 01:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the quick feedback! So my issue is I am currently using JomSocial and I have a custom plugin that writes data to a user's profile in the custom fields I have added. I have to replace that if I'm going to complete my replacement of JomSocial with EasySocial. Do you have any thoughts on how I can write / update the database fields in the user's profile other than just using mysql calls?
·
Saturday, 08 February 2014 02:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Hm, the best way right now is to do it via a php + mysql script as we don't have that method available but perhaps we could try to add this in 1.2 since it would be an easier method for 3rd party to easily set values.
·
Saturday, 08 February 2014 02:16
·
0 Likes
·
0 Votes
·
0 Comments
·
...would also use a setFieldValue() if available in 1.2...
·
Saturday, 08 February 2014 06:08
·
0 Likes
·
0 Votes
·
0 Comments
·
This is added into our issue tracker
·
Saturday, 08 February 2014 13:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post