Notifications
Clear all

userpro and comments integration

7 Posts
4 Users
0 Likes
3,852 Views
(@dorian)
New Member
Joined: 8 years ago
Posts: 1
Topic starter  

first: congrats by plugin, is excellent.

to login social option list 4 more plugins to comment, why not add userpro?

my questions is because if why integrate to others functions to userpro and to login not.

the other thing, the 4 social plugins have conflicicting functions with your plugin 🙂

thanks


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4176
 

Hi Dorian,

maybe I didn't follow you but, wpDiscuz already integrated with UserPro. Please navigate to wpDiscuz Settings > Integration Tab > UserPro subTab and use the integration code as it's explained.


   
ReplyQuote
 Low
(@wpmobi)
Member Customer
Joined: 8 years ago
Posts: 8
 

Hi,

Could you guide us how to integrate User Pro Social Login in the 'Wpdiscuz comments box'?

Thanks.

 


   
ReplyQuote
(@varos)
Estimable Member
Joined: 8 years ago
Posts: 141
 

Hi Low,

You can use one of these action hooks to insert UsersPro social login buttons:
comment_form_top
comment_form_before


   
ReplyQuote
 Low
(@wpmobi)
Member Customer
Joined: 8 years ago
Posts: 8
 

Could you kindly guide me where to insert the hook?

and what is the exact php code to insert please?

Thanks.


   
ReplyQuote
 Low
(@wpmobi)
Member Customer
Joined: 8 years ago
Posts: 8
 
socialloginforwpdisquz

There are 4 Social Login options, but the User Pro Social Login Option was not included.

The integration of User Pro was only showing badges of profiles and linking to userpro profile as seem.

"

////////////////////////////////////////////////////////////////////////
// User Pro Profile URL Integration ////////////////////////////////////
////////////////////////////////////////////////////////////////////////
add_filter('wpdiscuz_profile_url', 'wpdiscuz_up_profile_url', 10, 2);
function wpdiscuz_up_profile_url($profile_url, $user) {
    if ($user && class_exists('userpro_api')) {
        global $userpro; $profile_url = $userpro->permalink($user->ID);        
    }
    return $profile_url;
}

////////////////////////////////////////////////////////////////////////
// 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;
}"

Could you kindly add the ability to show userpro social login like login box as seem here  http://userproplugin.com/userpro/ 
for shortcode  [userpro template=login] or <?php echo do_shortcode('[userpro template=login]'); ?>

Thanks.

 


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4176
 

Hi Low,

thank you very much for this code, we'll add this in next wpDiscuz release.


   
ReplyQuote
Share:
Scroll to top