Notifications
Clear all

[Closed] Add userpro on Wpforo

6 Posts
3 Users
0 Likes
4,040 Views
Posts: 8
Topic starter
(@fabien)
Active Member
Joined: 6 years ago

 Hi and sorry for my english. 🙂

How do I add userpro badges to the wpforo profile ?

Like this:

For WPDiscuz example, the code is this one to display badges

////////////////////////////////////////////////////////////////////////
// User Pro Badges Integration ////////////////////////////
////////////////////////////////////////////////////////////////////////
add_filter('wpdiscuz_after_label', 'wpdiscuz_up_after_label_html', 110, 2);
function wpdiscuz_up_after_label_html($afterLabelHtml, $comment) {
if ($comment->user_id && class_exists('userpro_api')) {
$afterLabelHtml .= userpro_show_badges($comment->user_id, $inline = true);
}
return $afterLabelHtml;
}


5 Replies
Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

I'm sorry but we've not tested this plugin yet. I have no clue. I'll update this topic once I got some. The code you've provided is a wpDiscuz code not wpForo.

Posts: 8
Topic starter
(@fabien)
Active Member
Joined: 6 years ago

Okay, Userpro is a great plugin and having it on wpforo would be great!

Posts: 8
Topic starter
(@fabien)
Active Member
Joined: 6 years ago

Any news ? 

BBpress has this option :(
Posts: 8
Topic starter
(@fabien)
Active Member
Joined: 6 years ago
Page 1 / 2