By Sabih on Saturday, 12 September 2015
Posted in Technical Issues
Replies 5
Likes 0
Views 556
Votes 0
I am so afraid of creating forum threads by now.

I wanted to modify the search results and have profile informations inside these. This worked with the 'HEADLINE' on this way:

echo $user->getFieldValue('HEADLINE')
- WORKS

This worked like a charm. But when I try to take the discuss signature, it stays blank and gives no result.

echo $user->getFieldValue('DISCUSS_SIGNATURE')
DOES NOT WORK

I thought that maybe the difference is, that the EasyDiscuss signature is an app compared to the headline, but I have no clue, why calling this function does not work the same way.
Hey Sabih,

I am really sorry for the delay of this reply as it is a weekend for us here. What is the error that you are getting with that line of code? Try renaming to a different variable instead,


require_once(JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php');

$discussProfile = DiscussHelper::getTable('Profile');
$discussProfile->load(JFactory::getUser()->id);
echo $discussProfile->signature;
·
Sunday, 13 September 2015 13:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sabih,

I am really sorry for the delay of this reply as it is a weekend for us here. Hm, EasyDiscuss is a little different and it shouldn't retrieve the signature from EasySocial because the signature is stored in EasyDiscuss and not EasySocial.

In your case, you could do something like this,


require_once(JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php');

$user = DiscussHelper::getTable('Profile');
$user->load(JFactory::getUser()->id);
echo $user->signature;
·
Sunday, 13 September 2015 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

more than once I am impressed by the speed of responding, but unfortunately this one gives me an error message. Strange thing is, that the error message goes to another point of the file.

I am trying to insert this into

/domain/components/com_easysocial/themes/wireframe/users/default.list.php in line 130
/domain/components/com_easysocial/themes/wireframe/advancedsearch/user/default.results.item.php in line 50

I regret not having learned more PHP in the past. I was so happy that it worked with headline but this does not yet. Hopefully there is just a typo? If not I will have to go with headline. I am afraid because the line of support and customization is very thin in this topic...
·
Sunday, 13 September 2015 01:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much for this. Problems should be getting fewer now because I am finally done with building and went live.
·
Tuesday, 15 September 2015 05:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are welcome and glad to hear your issue now resolved
Sam
·
Tuesday, 15 September 2015 10:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post