Changeset 715542
- Timestamp:
- 05/20/2013 10:29:24 AM (13 years ago)
- Location:
- bp-group-livechat/trunk
- Files:
-
- 5 edited
-
history.txt (modified) (1 diff)
-
includes/bp-group-livechat-db-functions.php (modified) (3 diffs)
-
includes/bp-group-livechat-display.php (modified) (3 diffs)
-
loader.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bp-group-livechat/trunk/history.txt
r364620 r715542 1 Version 1.1 ( May 20th 2013 ) 2 -------------------------------------------------------------- 3 4 - Updated to work with WP 3.5.1 and BP 1.7.2. 5 1 6 Version 1.0 ( March 25th 2011 ) 2 7 -------------------------------------------------------------- -
bp-group-livechat/trunk/includes/bp-group-livechat-db-functions.php
r364601 r715542 45 45 } 46 46 } 47 add_action( ' init', 'bp_group_livechat_who_is_online' );47 add_action( 'wp_ajax_bp_livechat_heartbeat', 'bp_group_livechat_who_is_online' ); 48 48 49 49 function bp_group_livechat_new_message() { … … 70 70 } 71 71 } 72 add_action( ' init', 'bp_group_livechat_new_message' );72 add_action( 'wp_ajax_bp_livechat_new_message', 'bp_group_livechat_new_message' ); 73 73 74 74 function bp_group_livechat_load_messages() { … … 100 100 } 101 101 } 102 add_action( ' init', 'bp_group_livechat_load_messages' );102 add_action( 'wp_ajax_bp_livechat_load_messages', 'bp_group_livechat_load_messages' ); 103 103 ?> -
bp-group-livechat/trunk/includes/bp-group-livechat-display.php
r364601 r715542 15 15 16 16 function bpGroupLivechatHeartbeat(i) { 17 jQuery.post( "<?php echo $bp->loggedin_user->domain . $bp->current_component . '/' . $bp->current_action; ?>", { _ajax_nonce: "<?php echo wp_create_nonce( 'groups_livechat_heartbeat_' . $bp->groups->current_group->id ); ?>", bp_group_livechat_online_query: "1", bp_group_livechat_group_id: "<?php echo $bp->groups->current_group->id; ?>"}, function(data) {17 jQuery.post(ajaxurl, { _ajax_nonce: "<?php echo wp_create_nonce( 'groups_livechat_heartbeat_' . $bp->groups->current_group->id ); ?>", bp_group_livechat_online_query: "1", bp_group_livechat_group_id: "<?php echo $bp->groups->current_group->id; ?>", action: 'bp_livechat_heartbeat' }, function(data) { 18 18 jQuery('#livechat-users-online').html(data); 19 19 }); … … 22 22 function bpGroupLivechatsubmitNewMessage(){ 23 23 var message_content = jQuery('#bp_group_livechat_textbox').val(); 24 jQuery.post( "<?php echo $bp->loggedin_user->domain . $bp->current_component . '/' . $bp->current_action; ?>", { _ajax_nonce: "<?php echo wp_create_nonce( 'groups_livechat_new_message_' . $bp->groups->current_group->id ); ?>", bp_group_livechat_new_message: "1", bp_group_livechat_group_id: "<?php echo $bp->groups->current_group->id; ?>", bp_group_livechat_textbox: message_content}, function() {24 jQuery.post(ajaxurl, { _ajax_nonce: "<?php echo wp_create_nonce( 'groups_livechat_new_message_' . $bp->groups->current_group->id ); ?>", bp_group_livechat_new_message: "1", bp_group_livechat_group_id: "<?php echo $bp->groups->current_group->id; ?>", bp_group_livechat_textbox: message_content, action: 'bp_livechat_new_message' }, function() { 25 25 jQuery('#bp_group_livechat_textbox').val(''); 26 26 bpGroupLivechatLoadMessages(); … … 29 29 30 30 function bpGroupLivechatLoadMessages() { 31 jQuery.post( "<?php echo $bp->loggedin_user->domain . $bp->current_component . '/' . $bp->current_action; ?>", { _ajax_nonce: "<?php echo wp_create_nonce( 'groups_livechat_load_messages_' . $bp->groups->current_group->id ); ?>", bp_group_livechat_load_messages: "1", bp_group_livechat_group_id: "<?php echo $bp->groups->current_group->id; ?>"}, function(data) {31 jQuery.post(ajaxurl, { _ajax_nonce: "<?php echo wp_create_nonce( 'groups_livechat_load_messages_' . $bp->groups->current_group->id ); ?>", bp_group_livechat_load_messages: "1", bp_group_livechat_group_id: "<?php echo $bp->groups->current_group->id; ?>", action: 'bp_livechat_load_messages' }, function(data) { 32 32 jQuery('#bp-livechat-chat-container').html(data); 33 33 }); -
bp-group-livechat/trunk/loader.php
r364620 r715542 2 2 /* 3 3 Plugin Name: BuddyPress Group Live Chat 4 Plugin URI: http:// namoo.co.uk4 Plugin URI: http://linktart.co.uk 5 5 Description: Ajax live chat for groups 6 Version: 1. 07 Revision Date: Ma r 25, 20118 Requires at least: WordPress 3. 1.0, BuddyPress 1.2.89 Tested up to: WordPress 3. 1.0 / BuddyPress 1.2.86 Version: 1.1 7 Revision Date: May 20, 2013 8 Requires at least: WordPress 3.5.1, BuddyPress 1.7.2 9 Tested up to: WordPress 3.5.1 / BuddyPress 1.7.2 10 10 License: AGPL 11 11 Author: David Cartwright 12 Author URI: http:// namoo.co.uk13 Site Wide Only: true12 Author URI: http://linktart.co.uk 13 Network: true 14 14 */ 15 15 -
bp-group-livechat/trunk/readme.txt
r364636 r715542 2 2 Contributors: aekeron 3 3 Tags: buddypress, ajax, chat, groups 4 Requires at least: WordPress 3. 1.0, BuddyPress 1.2.85 Tested up to: WordPress 3. 1.0 / BuddyPress 1.2.86 Stable tag: 1. 04 Requires at least: WordPress 3.5.1, BuddyPress 1.7.2 5 Tested up to: WordPress 3.5.1 / BuddyPress 1.7.2 6 Stable tag: 1.1 7 7 8 8 Basic live chat within groups.
Note: See TracChangeset
for help on using the changeset viewer.