By Roman Lipatov on Monday, 07 June 2021
Posted in Technical Issues
Likes 0
Views 631
Votes 0
Hello!
How to get links and avatars to user profiles in 3rd party extensions?
Hi there,

You can try to load EasyDiscuss user library.


require_once(JPATH_ROOT . '/administrator/components/com_easydiscuss/includes/easydiscuss.php');

$user = ED::user();

$permalink = $user->getLink();
$avatar = $user->getAvatar();


Hope this helps.
Thanks.
·
Tuesday, 08 June 2021 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there some plugin or module which displays link to profile, avatar, forum statistic from another users?
I mean, something like toolbar for 3rd party extension user page:

·
Tuesday, 08 June 2021 14:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Unfortunately, there is no such module. However, we do have EasyDiscuss profile page. Check out the attached screenshot.


require_once(JPATH_ROOT . '/administrator/components/com_easydiscuss/includes/easydiscuss.php');

$userid = 1; // Pass the user id.
$user = ED::user($userid);

$permalink = $user->getLink();
$avatar = $user->getAvatar();
$totalTopicPosted = $user->getNumTopicPosted();
$totalReplies = $user->getTotalReplies();


/administrator/components/com_easydiscuss/includes/themes/helpers/user.php search for function header()
/administrator/components/com_easydiscuss/includes/themes/helpers/user.php search for function pm()
/components/com_easydiscuss/themes/wireframe/html/user.pm.php
/components/com_easydiscuss/themes/wireframe/helpers/user/header.php search for $displayStatistics

Hope this helps.
Thanks.
·
Tuesday, 08 June 2021 15:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Not sure I got it.
Can you show me real example, how to display Send PM button and Notification icon on 3rd party user profile page?
Thanks.
·
Tuesday, 08 June 2021 17:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry but unfortunately, we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in https://stackideas.com/support

Having said that, if you require us to perform the customization for you, you can always request a quote from us at https://crm.stackideas.com and select "Customizations" or submit a request at https://stackideas.com/customization-works. Our salesperson would gladly send you a quote for the customization that you have requested.

Thanks.
·
Tuesday, 08 June 2021 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually, you have toolbar module.
It solves this problem.

·
Tuesday, 08 June 2021 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Tuesday, 08 June 2021 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post