Changeset 1305603
- Timestamp:
- 12/10/2015 07:25:58 PM (10 years ago)
- Location:
- chatroll-live-chat/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (4 diffs)
-
wp-chatroll.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chatroll-live-chat/trunk/readme.txt
r1247904 r1305603 2 2 Contributors: chatroll 3 3 Donate link: http://chatroll.com 4 Tags: chatroll, live, widget, chat, facebook, twitter, sidebar, shoutbox4 Tags: chatroll, live, chat, buddypress, facebook, twitter, sidebar, shoutbox, widget 5 5 Requires at least: 2.8 6 Tested up to: 4. 37 Stable tag: 2. 1.36 Tested up to: 4.4 7 Stable tag: 2.2.0 8 8 9 Chatroll is a great way to reach, engage and grow your site's social media following. Add Chatroll social chat to your WordPress sidebar, posts, and pages.9 Chatroll is a great way to reach, engage and grow your site's audience. Add Chatroll chat to your WordPress and BuddyPress sidebar, posts, and pages. 10 10 11 11 == Description == 12 12 13 Chatroll is a great way to reach, engage and grow your site's social media following. Add Chatroll social chat to your WordPress sidebar, posts, and pages.13 Chatroll is a great way to reach, engage and grow your site's audience. Add Chatroll chat to your WordPress and BuddyPress sidebar, posts, and pages. 14 14 15 15 **Plugin Highlights:** 16 16 17 *** Social Chat***17 ***Chatroll Chat*** 18 18 19 * True real-time social interaction for WordPress 20 * Reach, engage and grow your social media following 21 * Facebook and Twitter support 19 * Fast, easy-to-use live chat for WordPress and BuddyPress 20 * Add live chat to your pages, posts or sidebar 21 * Supports WordPress and BuddyPress profiles and avatars 22 * Supports social networks including Facebook and Twitter 23 * Powered by Chatroll, the most reliable and powerful live chat plugin for WordPress and BuddyPress 22 24 23 25 ***Simple Design*** … … 29 31 ***Flexible Customization*** 30 32 31 * Customize colors and sizeto match the look of your site32 * Single Sign-On (SSO) for seamless integration with WordPress a vatars33 * Customize colors, size and CSS to match the look of your site 34 * Single Sign-On (SSO) for seamless integration with WordPress and BuddyPress avatars 33 35 34 36 ***Powerful Moderation*** … … 44 46 ***Hosted, Cloud Solution*** 45 47 46 * Hosted on Chatroll's servers for maximumperformance48 * Hosted on Chatroll's servers for rock-solid performance 47 49 * On-demand scaling - Supports over 500+ simultaneous users in chat 48 49 ***Free***50 51 * Free version is limited to 10 simultaneous users52 * Upgrade for additional capacity and support53 50 54 51 **Tags** 55 52 56 chat, live chat, chatroll, sidebar, Facebook, Twitter, admin, WordPress chat, WordPress plugin, WordPress live chat, WordPress live chat plugin, chat box, online chat, chat online, chat plugin, chat software, chat widget, chat system, moderated chat, private chat, css, custom css, customize css, analytics, white label, message history, scalable chat, video streaming, live video, live streaming, streaming, webcast, webcasting, livecast, commenting system, live event chat, engagement, engage, real time engagement, real time chat, live chat, live chat software, live chat services, live chatting, live help, live support, live web chat, livechat, php live chat, guest login, online chat, online support, support chat, single chat, single chat free, free chat, chatbox, commenting, commenting system, contact plugin, contact us, customer support, free chat, IM Chat, shoutbox, social, social chat, support software, website chat, widget53 chat, live chat, chatroll, sidebar, Facebook, Twitter, admin, WordPress chat, WordPress plugin, WordPress live chat, WordPress live chat plugin, BuddyPress chat plugin, BuddyPress live chat plugin, chat box, online chat, chat online, chat plugin, chat software, chat widget, chat system, moderated chat, private chat, css, custom css, customize css, analytics, white label, message history, scalable chat, video streaming, live video, live streaming, streaming, webcast, webcasting, livecast, commenting system, live event chat, engagement, engage, real time engagement, real time chat, live chat, live chat software, live chat services, live chatting, live help, live support, live web chat, livechat, php live chat, guest login, online chat, online support, support chat, single chat, single chat free, free chat, chatbox, commenting, commenting system, contact plugin, contact us, customer support, free chat, IM Chat, shoutbox, social, social chat, support software, website chat, widget 57 54 58 55 == Installation == … … 111 108 == Changelog == 112 109 110 = 2.2.0 = 111 * Improved BuddyPress avatar support 112 * Tested on WordPress 4.4 113 113 114 = 2.1.3 = 114 115 * Enable HTTPS/SSL by default -
chatroll-live-chat/trunk/wp-chatroll.php
r1247904 r1305603 261 261 } 262 262 if (empty($attr['upic'])) { 263 // Set the picture using 'get_avatar' (available in WordPress 2.5 and up) 264 // This ONLY takes effect when the Single Sign-On (SSO) check box is turned on via the Chatroll's Settings page! 265 if (function_exists('get_avatar')) { 263 // Get the avatar URL to populate the Chatroll 'upic' parameter. 264 // BuddyPress and different versions of WordPress use different methods. 265 $avatar_url = ''; 266 if (function_exists('bp_core_fetch_avatar')) { 267 // BuddyPress: Use bp_core_fetch_avatar ONLY if the current user has an avatar. 268 // Otherwise, fallback to WordPress avatar functions (e.g. Gravatar) 269 $avatar_url = bp_core_fetch_avatar( array( 270 'html' => false, 271 'no_grav' => true, 272 'item_id' => $current_user->ID, 273 'type' => 'thumb', 274 'width' => 96, 275 'height' => 96 ) ); 276 } else if (function_exists('get_avatar_url')) { 277 // WordPress >= 4.2.0: Set the avatar URL using get_avatar_url 278 $avatar_url = get_avatar_url($current_user->ID, 96); 279 } else if (function_exists('get_avatar')) { 280 // (WordPress < 4.2.0) Set the avatar URL using get_avatar_url 281 // Set the picture using 'get_avatar' (available in WordPress 2.5 and up) 266 282 // 38px image size 267 $av tr = get_avatar($current_user->ID, 38);268 $av tr_src = preg_replace("/.*src='([^']*)'.*/", "$1", $avtr);269 if (strlen($av tr_src) > 0) {270 if ($av tr_src[0] == '/') {271 // Turn local image URIs into fullURLs.283 $avatar = get_avatar($current_user->ID, 96); 284 $avatar_url = preg_replace("/.*src='([^']*)'.*/", "$1", $avatar); 285 if (strlen($avatar_url) > 0) { 286 if ($avatar_url[0] == '/') { 287 // Turn relative image URIs into absolute image URLs. 272 288 $url = get_bloginfo('url'); 273 289 $domain = preg_replace("/^(http[s]?:\/\/[^\/]+).*/", "$1", $url); 274 $av tr_src = $domain . $avtr_src;275 } 290 $avatar_url = $domain . $avatar_url; 291 } 276 292 // The gravatar image URL is extracted from an image tag and ampersands (&) are escaped to & 277 // Chatroll uses the URL to download the image, as opposed to using it directly for an html img tag.278 293 // Thus we need to un-escape the specialchars. (e.g. & -> &) 279 $a ttr['upic'] = htmlspecialchars_decode($avtr_src);294 $avatar_url = htmlspecialchars_decode($avatar_url); 280 295 } 281 296 } 297 298 /* 299 print "<pre>Avatar URL: "; 300 print_r($avatar_url); 301 print "</pre>"; 302 */ 303 304 // Set the 'upic' parameter: 305 // Chatroll uses the URL to download the avatar, so this must be an absolute, publicly accessible URL. 306 $attr['upic'] = $avatar_url; 282 307 } 283 308 if (empty($attr['ulink'])) {
Note: See TracChangeset
for help on using the changeset viewer.