By Chris on Tuesday, 08 March 2016
Posted in Technical Issues
Replies 7
Likes 0
Views 726
Votes 0
Hi guys,

i'm trying to show the output of a custom field into one of the template overrides i've created (templates/my-template/html/com_easysocial/stream/default.php)

what i want to do is to show the custom filed with unique key: "TEXTAREA" above the status field, so when i add
<?php echo $user->getFieldValue( 'TEXTAREA' ); ?> above <?php if (!empty($story)) { echo $story->html(); } ?> or anywhere in that file, on front-end i get just white screen. Any idea what might be the problem?

Also, is it possible to make the custom field editable by the user directly on front-end? I have text-area which is something like user's biography, so i want the user to be able to edit the field right away, without clicking on "Edit Profile".

Thanks
Hi Chris,

I am really sorry for the delay of this reply.

I believe the reason why you get a white screen is because the variable $user is not being declared since you put the code inside the stream item, rather than the profile page. You might want to try to put the code inside your /components/com_easysocial/themes/wireframe/profile/default.header.php and see how it goes.
·
Tuesday, 08 March 2016 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect, that did the trick, i'm seeing the output of the file.

Is it possible to make this field editable by the user on front-end, without clicking on "Edit profile"?
·
Tuesday, 08 March 2016 20:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Chris,

Unfortunately it is not possible to do so currently in EasySocial.
·
Wednesday, 09 March 2016 11:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, thank you for your reply, i've set up the front end to look like it's textarea field, and i've set up to pull the info from the custom field and it looks great.

Now i need to edit the code for the default textarea custom field (i want to put a script which show how many characters are left for the info in that textarea), i've done the script it's working properly on front-end on the status field, and i want to put it also in the edit profile area, so can you please let me know where can i find the code for the textarea field used by the custom fields?

thanks!
·
Thursday, 10 March 2016 08:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Chris,

You might want to take a look at /media/com_easysocial/apps/fields/user/textarea/themes/default/content.php
·
Thursday, 10 March 2016 12:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Excellent, just what i was looking for, thank you!
·
Friday, 11 March 2016 05:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Chris,

You are most welcome. Glad to hear that your issue has been resolved now.
·
Friday, 11 March 2016 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post