Plugin Directory

Changeset 715542


Ignore:
Timestamp:
05/20/2013 10:29:24 AM (13 years ago)
Author:
Aekeron
Message:

1.1 release - to work with WP 3.5.1 and BP 1.7.2

Location:
bp-group-livechat/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bp-group-livechat/trunk/history.txt

    r364620 r715542  
     1Version 1.1 ( May 20th 2013 )
     2--------------------------------------------------------------
     3
     4- Updated to work with WP 3.5.1 and BP 1.7.2.
     5
    16Version 1.0 ( March 25th 2011 )
    27--------------------------------------------------------------
  • bp-group-livechat/trunk/includes/bp-group-livechat-db-functions.php

    r364601 r715542  
    4545    }
    4646}
    47 add_action( 'init', 'bp_group_livechat_who_is_online' );
     47add_action( 'wp_ajax_bp_livechat_heartbeat', 'bp_group_livechat_who_is_online' );
    4848
    4949function bp_group_livechat_new_message() {
     
    7070    }
    7171}
    72 add_action( 'init', 'bp_group_livechat_new_message' );
     72add_action( 'wp_ajax_bp_livechat_new_message', 'bp_group_livechat_new_message' );
    7373
    7474function bp_group_livechat_load_messages() {
     
    100100    }
    101101}
    102 add_action( 'init', 'bp_group_livechat_load_messages' );
     102add_action( 'wp_ajax_bp_livechat_load_messages', 'bp_group_livechat_load_messages' );
    103103?>
  • bp-group-livechat/trunk/includes/bp-group-livechat-display.php

    r364601 r715542  
    1515
    1616function 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) {
    1818        jQuery('#livechat-users-online').html(data);
    1919    });
     
    2222function bpGroupLivechatsubmitNewMessage(){
    2323    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() {
    2525        jQuery('#bp_group_livechat_textbox').val('');
    2626        bpGroupLivechatLoadMessages();
     
    2929
    3030function 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) {
    3232        jQuery('#bp-livechat-chat-container').html(data);
    3333    });
  • bp-group-livechat/trunk/loader.php

    r364620 r715542  
    22/*
    33Plugin Name: BuddyPress Group Live Chat
    4 Plugin URI: http://namoo.co.uk
     4Plugin URI: http://linktart.co.uk
    55Description: Ajax live chat for groups
    6 Version: 1.0
    7 Revision Date: Mar 25, 2011
    8 Requires at least: WordPress 3.1.0, BuddyPress 1.2.8
    9 Tested up to: WordPress 3.1.0 / BuddyPress 1.2.8
     6Version: 1.1
     7Revision Date: May 20, 2013
     8Requires at least: WordPress 3.5.1, BuddyPress 1.7.2
     9Tested up to: WordPress 3.5.1 / BuddyPress 1.7.2
    1010License: AGPL
    1111Author: David Cartwright
    12 Author URI: http://namoo.co.uk
    13 Site Wide Only: true
     12Author URI: http://linktart.co.uk
     13Network: true
    1414*/
    1515
  • bp-group-livechat/trunk/readme.txt

    r364636 r715542  
    22Contributors: aekeron
    33Tags: buddypress, ajax, chat, groups
    4 Requires at least: WordPress 3.1.0, BuddyPress 1.2.8
    5 Tested up to: WordPress 3.1.0 / BuddyPress 1.2.8
    6 Stable tag: 1.0
     4Requires at least: WordPress 3.5.1, BuddyPress 1.7.2
     5Tested up to: WordPress 3.5.1 / BuddyPress 1.7.2
     6Stable tag: 1.1
    77
    88Basic live chat within groups.
Note: See TracChangeset for help on using the changeset viewer.