Skip to content

Commit

Permalink
version 2.4.1
Browse files Browse the repository at this point in the history
@desc: Updated readme.txt to mention pusher service used in our application
  • Loading branch information
Rajul.Mondal authored and Rajul.Mondal committed Jul 8, 2018
1 parent c2f4975 commit 11ceb62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Contributors: rajulmondal5
Donate link: https://profiles.wordpress.org/rajulmondal5
Tags: users, online, active, live, pusher, chat, login
Requires at least: 2.4.0
Tested up to: 2.4.0
Stable tag: 2.4.0
Requires at least: 2.4.1
Tested up to: 2.4.1
Stable tag: 2.4.1
Requires PHP: 5.2.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -61,7 +61,7 @@ Yes, there is limit in pusher. 100 connections, 200,000 messages, and unlimited
[sa_online_users]

= Download =
[2.4.0](https://github.com/razzul/stay-alive/releases) latest version of **stay-alive**
[2.4.1](https://github.com/razzul/stay-alive/releases) latest version of **stay-alive**

= How to use it =
*Update pusher details and callback function from admin [plugin page](http://localhost/wordpress-talk/wp-admin/options-general.php?page=stay-alive-admin)* There are 2 ways to use it :
Expand All @@ -81,6 +81,11 @@ We have used Pusher as a 3rd party socket service provider for free.

== Changelog ==

= 2.4.0 =
* 08-07-2018
* Updated readme.txt to mention pusher service used in our application
* https://github.com/razzul/stay-alive/releases

= 2.4.0 =
* 06-07-2018
* Added widget feature-option
Expand Down
4 changes: 2 additions & 2 deletions stay-alive.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Stay Alive
Plugin URI: https://github.com/razzul/stayalive
description: Stay Alive: wordpress plugin to check logged in user's status
Version: 2.4.0
Version: 2.4.1
Author: razzul
Author URI: https://github.com/razzul
License: MIT
Expand Down Expand Up @@ -95,7 +95,7 @@ public function stay_alive_checker()
$event_name = 'stay-alive-event';
$stay_alive_trigger = !empty($options['stay_alive_trigger']) ? $options['stay_alive_trigger'] : 'test_stay_alive';
wp_enqueue_script('pusher', '//js.pusher.com/4.1/pusher.min.js', array(), '4.1.0', true);
wp_register_script('stay_aliv_js', plugins_url( 'assets/js/stay-alive.js', __FILE__ ), array(), '2.4.0', true );
wp_register_script('stay_aliv_js', plugins_url( 'assets/js/stay-alive.js', __FILE__ ), array(), '2.4.1', true );
wp_localize_script('stay_aliv_js', 'config', array('current_user_id' => $current_user_id, 'channel_name' => $channel_name,'event_name' => $event_name, 'credentials' => $options, 'auth_url' => site_url() .'/wp-admin/admin-ajax.php?action=stay_alive_auth'));
wp_enqueue_script('stay_aliv_js');
}
Expand Down

0 comments on commit 11ceb62

Please sign in to comment.