Changeset 1667181
- Timestamp:
- 05/30/2017 03:42:21 PM (9 years ago)
- Location:
- chatroll-live-chat/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (4 diffs)
-
wp-chatroll.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chatroll-live-chat/trunk/readme.txt
r1553941 r1667181 5 5 Requires at least: 2.8 6 6 Tested up to: 4.7 7 Stable tag: 2.3. 27 Stable tag: 2.3.3 8 8 9 9 Add live chat to your WordPress or BuddyPress sidebar, posts and pages. Chatroll can be fully customized to match your site's design. … … 15 15 **Plugin Highlights:** 16 16 17 ***Easy to Install andUse***17 ***Easy to Use*** 18 18 19 19 * 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 22 23 * Supports additional logins: Facebook, Twitter, Guest (anonymous) 23 24 24 *** SimpleDesign***25 ***Beautiful Design*** 25 26 26 27 * Clean, clutter-free user interface 27 * Install on posts and pages using the 'chatroll' shortcode28 * Install on your sidebar using the Chatroll widget29 28 * Customize colors, size and CSS to match your site's design 30 29 * Available in 11 languages 31 30 32 *** Moderation Toolbox***31 ***Powerful Moderation Tools*** 33 32 34 33 * Moderation tools include: one-click message deletion, profanity filters, user banning and IP blocking … … 41 40 42 41 * 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 44 43 45 ***Cloud Solution***44 ***Cloud Based*** 46 45 47 46 * All traffic hosted on Chatroll's servers for rock-solid performance 48 47 * On-demand scaling - Supports unlimited users in chat 49 * Automatic version updates - no manual updates required48 * Automatic updates - get all of Chatroll's latest features and fixes automatically 50 49 51 50 … … 104 103 105 104 == Changelog == 105 106 = 2.3.3 = 107 * Add support for WordPress Social Login plugin 106 108 107 109 = 2.3.2 = -
chatroll-live-chat/trunk/wp-chatroll.php
r1553941 r1667181 4 4 * Plugin URI: https://chatroll.com 5 5 * 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. 26 * Version: 2.3.3 7 7 * Author: Chatroll 8 8 * Author URI: https://chatroll.com … … 11 11 12 12 /* 13 Copyright 2010-201 6Chatroll / Jonathan McGee (email : support@chatroll.com)13 Copyright 2010-2017 Chatroll / Jonathan McGee (email : support@chatroll.com) 14 14 15 15 This program is free software; you can redistribute it and/or modify … … 246 246 if (empty($attr['upic'])) { 247 247 // 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. 250 249 // To request support for additional plugins, please contact support@chatroll.com. 251 250 $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')) { 254 254 $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')) { 257 264 if ( um_profile('profile_photo') ) { 258 265 $avatar_url = um_get_avatar_uri( um_profile('profile_photo'), 96 ); … … 260 267 $avatar_url = um_get_default_avatar_uri(); 261 268 } 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')) { 264 273 $avatar_url = bp_core_fetch_avatar(array( 265 274 'html' => false, … … 269 278 'width' => 96, 270 279 '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')) { 273 284 $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')) { 276 289 // Set the picture using 'get_avatar' (available in WordPress 2.5 and up) 277 290 $avatar = get_avatar($current_user->ID, 96); … … 293 306 /* 294 307 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 }301 308 print "\nAvatar URL: "; 302 309 print_r($avatar_url);
Note: See TracChangeset
for help on using the changeset viewer.