Plugin Directory

Changeset 1667181


Ignore:
Timestamp:
05/30/2017 03:42:21 PM (9 years ago)
Author:
chatroll
Message:

Add support for WordPress Social Login plugin

Location:
chatroll-live-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chatroll-live-chat/trunk/readme.txt

    r1553941 r1667181  
    55Requires at least: 2.8
    66Tested up to: 4.7
    7 Stable tag: 2.3.2
     7Stable tag: 2.3.3
    88
    99Add live chat to your WordPress or BuddyPress sidebar, posts and pages. Chatroll can be fully customized to match your site's design.
     
    1515**Plugin Highlights:**
    1616
    17 ***Easy to Install and Use***
     17***Easy to Use***
    1818
    1919* Persistent, real-time chat for your WordPress pages, posts or sidebar
    20 * One-line embed code install
    21 * Single Sign-On (SSO) for seamless WordPress and BuddyPress profile integration
     20* Instantly add live chat to posts and pages using the 'chatroll' shortcode
     21* Seamless integration with WordPress and BuddyPress profiles
     22* Supports many popular WordPress avatar plugins
    2223* Supports additional logins: Facebook, Twitter, Guest (anonymous)
    2324
    24 ***Simple Design***
     25***Beautiful Design***
    2526
    2627* Clean, clutter-free user interface
    27 * Install on posts and pages using the 'chatroll' shortcode
    28 * Install on your sidebar using the Chatroll widget
    2928* Customize colors, size and CSS to match your site's design
    3029* Available in 11 languages
    3130
    32 ***Moderation Toolbox***
     31***Powerful Moderation Tools***
    3332
    3433* Moderation tools include: one-click message deletion, profanity filters, user banning and IP blocking
     
    4140
    4241* Works on ALL browsers and devices, including mobile and desktop
    43 * HTML5 compatible - no Java or Flash necessary
     42* HTML5 compatible - no Java or Flash necessary, no software to install
    4443
    45 ***Cloud Solution***
     44***Cloud Based***
    4645
    4746* All traffic hosted on Chatroll's servers for rock-solid performance
    4847* On-demand scaling - Supports unlimited users in chat
    49 * Automatic version updates - no manual updates required
     48* Automatic updates - get all of Chatroll's latest features and fixes automatically
    5049
    5150
     
    104103
    105104== Changelog ==
     105
     106= 2.3.3 =
     107* Add support for WordPress Social Login plugin
    106108
    107109= 2.3.2 =
  • chatroll-live-chat/trunk/wp-chatroll.php

    r1553941 r1667181  
    44 * Plugin URI: https://chatroll.com
    55 * Description: Chatroll lets you easily add live chat to your WordPress sidebar, posts and pages. Chatroll can be fully customized to match your site's design. Supports WordPress profiles and optional Facebook and Twitter login. To get started, go to Chatroll.com to create a chat and follow the WordPress embed instructions.
    6  * Version: 2.3.2
     6 * Version: 2.3.3
    77 * Author: Chatroll
    88 * Author URI: https://chatroll.com
     
    1111
    1212/* 
    13     Copyright 2010-2016  Chatroll / Jonathan McGee  (email : support@chatroll.com)
     13    Copyright 2010-2017  Chatroll / Jonathan McGee  (email : support@chatroll.com)
    1414
    1515    This program is free software; you can redistribute it and/or modify
     
    246246        if (empty($attr['upic'])) {
    247247            // Get the avatar URL to populate the Chatroll 'upic' parameter.
    248             // The method to retrieve the avatar URL depends on which version of WordPress or BuddyPress is used,
    249             // and which plugins are active.
     248            // The method to retrieve the avatar URL depends on which plugins are active.
    250249            // To request support for additional plugins, please contact support@chatroll.com.
    251250            $avatar_url = '';
    252             if (function_exists('get_wp_user_avatar_src')) {
    253                 // WP User Avatar plugin is active
     251
     252            // WP User Avatar
     253            if ($avatar_url == '' && function_exists('get_wp_user_avatar_src')) {
    254254                $avatar_url = get_wp_user_avatar_src($current_user->ID, 96);
    255             } else if (function_exists('um_get_avatar_uri')) {
    256                 // Ultimate Member plugin is active
     255            }
     256
     257            // WordPress Social Login
     258            if ($avatar_url == '' && function_exists('wsl_get_user_custom_avatar')) {
     259                $avatar_url = wsl_get_user_custom_avatar($current_user->ID);
     260            }
     261
     262            // Ultimate Member
     263            if ($avatar_url == '' && function_exists('um_get_avatar_uri')) {
    257264                if ( um_profile('profile_photo') ) {
    258265                    $avatar_url = um_get_avatar_uri( um_profile('profile_photo'), 96 );
     
    260267                    $avatar_url = um_get_default_avatar_uri();
    261268                }
    262             } else if (function_exists('bp_core_fetch_avatar')) {
    263                 // BuddyPress plugin is active
     269            }
     270
     271            // BuddyPress
     272            if ($avatar_url == '' && function_exists('bp_core_fetch_avatar')) {
    264273                $avatar_url = bp_core_fetch_avatar(array(
    265274                    'html' => false,
     
    269278                    'width' => 96,
    270279                    'height' => 96));
    271             } else if (function_exists('get_avatar_url')) {
    272                 // WordPress >= 4.2.0: Set the avatar URL using get_avatar_url
     280            }
     281
     282            // WordPress >= 4.2.0
     283            if ($avatar_url == '' && function_exists('get_avatar_url')) {
    273284                $avatar_url = get_avatar_url($current_user->ID, 96);
    274             } else if (function_exists('get_avatar')) {
    275                 // (WordPress < 4.2.0) Set the avatar URL using get_avatar_url
     285            }
     286
     287            // WordPress < 4.2.0
     288            if ($avatar_url == '' && function_exists('get_avatar')) {
    276289                // Set the picture using 'get_avatar' (available in WordPress 2.5 and up)
    277290                $avatar = get_avatar($current_user->ID, 96);
     
    293306            /*
    294307            print "<pre>";
    295             print "get_wp_user_avatar_src exists: ";
    296             print_r(function_exists('get_wp_user_avatar_src'));
    297             if (function_exists('get_wp_user_avatar_src')) {
    298                 print "\nget_wp_user_avatar_src: ";
    299                 print_r(get_wp_user_avatar_src($current_user->ID, 96));
    300             }
    301308            print "\nAvatar URL: ";
    302309            print_r($avatar_url);
Note: See TracChangeset for help on using the changeset viewer.