Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi Tribal,
    Please explain, what kind of integration you’re talking about?
    Do you only mean diecting the link of comment author name to UserPro profile page?

    Thread Starter Tribal Wolves

    (@tribal-wolves)

    Yes, i want users be able to click on comments author and get redirected to UserPro profile page. Also to show UserPro badges under “Member” or “Author” title, i know that i need to use this code – <?php echo userpro_show_badges( $comment->user_id, $inline=true ); ?> , but i don’t know where to put it.

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi Tribal,
    We’ll add this feature in next wpDiscuz version, we’ll release in next week.

    Thread Starter Tribal Wolves

    (@tribal-wolves)

    Ok, thanks for you support. Gonna wait for the update.

    Has this been updated yet?

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi elijah117,
    We’re going to release a new wpDiscuz version with UserPro integration and other new features in a few hours. Please wait…

    How exciting! Thanks!

    Plugin Author gVectors Team

    (@gvectors-team)

    It’s released, please update…

    2.1.0 Changelog

    * Users can edit their comments (time-frame can be limited by admin)
    * Email notification options with radio selector instead of checkboxes
    * Subscription activation via additional “Confirm Subscription” email
    * Thumb-up and thumb-down voting icons
    * Integration with UserPro – Comment author profile picture
    * Integration with UserPro – Comment author name is linked to profile page
    * Integration with UserPro – User badges under comment author avatar
    * Integration with Postmatic for subscriptions and commenting by email
    * Persian (fa_IR) language, thanks to Vahid (VSG24)
    * Russian (ru_RU) language, thanks to OlafKS
    * Close pop-up messages by clicking outside of message-box
    * Scroll-down to comment are on clicking comments/replies link
    * Filter hooks on email fields
    * Filter hooks on comment form fields
    * Image source URL to image conversion in comment content

    Hi,

    How can you show user badges? And also, the profile pic is linked to User profile, but the name is not.

    Plugin Author gVectors Team

    (@gvectors-team)

    Ok, put this script in current active theme’s functions.php :

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

    Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘UserPro integration?’ is closed to new replies.