Plugin Directory

Changeset 2249006


Ignore:
Timestamp:
02/23/2020 05:53:52 PM (6 years ago)
Author:
proxymis
Message:

Warning bug fixed

Location:
html5-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • html5-chat/trunk/index.php

    r2157523 r2249006  
    44Plugin URI: https://html5-chat.com/
    55Description: Plugin to integrate HTML5 chat to you WP blog, including avatar and username auto login.
    6 Version: 1.04
     6Version: 1.02
    77Author: Proxymis
    88Author URI: contact@proxymis.com
     
    1515    private static $registerAccountUrl = 'https://html5-chat.com/ajax.php';
    1616    private static $noticeName = 'html5chat-notice';
    17 
    1817    private static $domain;
    1918    private $countShortcode = 0;
     
    5150        $wp_login_url = wp_login_url();
    5251
    53         $params = array ('a'=>'createAccountWP', 'username'=>$username, 'email' => $email, 'isAdmin' => $isAdmin, 'url'=>$domain,
    54             'wp_register_url'=>$wp_register_url, 'wp_login_url'=>$wp_login_url);
     52        $params = array (
     53                'a'                 =>'createAccountWP',
     54                'username'          =>$username,
     55                'email'             =>$email,
     56                'isAdmin'           =>$isAdmin,
     57                'url'               =>$domain,
     58                'wp_register_url'   =>$wp_register_url,
     59                'wp_login_url'      =>$wp_login_url);
    5560        $query = http_build_query ($params);
    5661        $contextData = array (
     
    7075        $jsonString = get_transient( self::$noticeName);
    7176        $json = json_decode($jsonString);
    72         echo "<div id='message' class='updated notice is-dismissible'>{$json->message}</div>";
     77        if ($json && $json->message) {
     78            echo "<div id='message' class='updated notice is-dismissible'>{$json->message}</div>";
     79        }
    7380        delete_transient( self::$noticeName );
    7481    }
     
    8087    function setEvents() {
    8188        add_action('admin_init', array($this, 'adminInit'));
    82 
    8389        add_action('admin_menu', array($this, 'setMenu'));
    8490        add_shortcode('HTML5CHAT', array($this, 'doShortcode'));
    85 
    8691        add_filter('the_content', 'do_shortcode');
    87         add_filter("mce_external_plugins", array($this, 'enqueuePluginScripts'));
    88         add_filter("mce_buttons", array($this, 'registerButtonEditor'));
     92        add_filter('mce_external_plugins', array($this, 'enqueuePluginScripts'));
     93        add_filter('mce_buttons', array($this, 'registerButtonEditor'));
    8994    }
    9095
     
    139144        }
    140145        $src.="&width=$width&height=$height&isAdmin=$isAdmin&email=$email&cache=$cache&role=$role";
    141         return  $src;
     146        $password = $currentUser->user_login;
     147        $hash = crypt($src, $password);
     148        return  $src."&h=$hash";
    142149    }
    143150
     
    208215    function setMenu() {
    209216        $parent = array(
    210             'page_title' => 'HTML5 chat setting',
    211             'menu_title' => 'HTML5-CHAT',
    212             'capability' => 'manage_options',
    213             'menu_slug' => 'html5-chat',
    214             'function' => array($this, 'getPageAdmin'),
    215             'icon_url' => $this->getIconMenu()
     217            'page_title'    => 'HTML5 chat setting',
     218            'menu_title'    => 'HTML5-CHAT',
     219            'capability'    => 'manage_options',
     220            'menu_slug'     => 'html5-chat',
     221            'function'      => array($this, 'getPageAdmin'),
     222            'icon_url'      => $this->getIconMenu()
    216223        );
    217224
    218225        $adminPanelTitle = 'Configure chat';
    219226        $this->adminPanel = array(
    220             'parent_slug' => $parent['menu_slug'],
    221             'page_title' => $adminPanelTitle,
    222             'menu_title' => $adminPanelTitle,
    223             'capability' => $parent['capability'],
    224             'menu_slug' => $parent['menu_slug'],
    225             'function' => array($this, 'getPageAdmin')
     227            'parent_slug'   => $parent['menu_slug'],
     228            'page_title'    => $adminPanelTitle,
     229            'menu_title'    => $adminPanelTitle,
     230            'capability'    => $parent['capability'],
     231            'menu_slug'     => $parent['menu_slug'],
     232            'function'      => array($this, 'getPageAdmin')
    226233        );
    227234
    228235        $codeTitle = 'Insert chat';
    229236        $this->code = array(
    230             'parent_slug' => $parent['menu_slug'],
    231             'page_title' => $codeTitle,
    232             'menu_title' => $codeTitle,
    233             'capability' => $parent['capability'],
    234             'menu_slug' => $parent['menu_slug'].'code',
    235             'function' => array($this, 'getPageShortcode')
     237            'parent_slug'   => $parent['menu_slug'],
     238            'page_title'    => $codeTitle,
     239            'menu_title'    => $codeTitle,
     240            'capability'    => $parent['capability'],
     241            'menu_slug'     => $parent['menu_slug'].'code',
     242            'function'      => array($this, 'getPageShortcode')
    236243        );
    237244
  • html5-chat/trunk/readme.txt

    r2157523 r2249006  
    11=== HTML5 chat ===
    22Contributors: yarekc
    3 Tags: chat, tchat, webcam
     3Tags: chat, tchat, webcam, videochat, visiochat
    44Requires at least: 4.5
    5 Tested up to: 5.2.2
    6 Stable tag: 1.04
     5Tested up to: 5.3.2
     6Stable tag: 1.06
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9  
    10 Html5 chat is a WP plugin to quickly add webrtc video chat to your blog. No server requirements. Setup with 1 click.
    11  
     9
     10Html5 chat is a WP plugin to quickly add video chat to your blog.
     11
    1212== Description ==
    13  
    14 Html5 chat plugin is quick plugin to help you to embed html-chat.com webrtc video chat into your wordpress blog.
    15 Activate the plugin in 1 click: you will automatically create a free account and receive the admin password to your email.
    16 Then, just insert [HTML5CHAT width=100% height=640px] shortcode into your page (or post) and you have a webrtc multi user audio and video chat inside your blog.
    17 Perfect for dating, social, radio websites...
    18 [You can test html5 chat here](https://html5-chat.com/chat)
    1913
    20 Works with buddyPress
    21 * guest or registered users
    22 * import roles from WP (administrator = admin, author = moderator, dj = contributor, subscriber = user)
    23 * video/audio chat made with webrtc, no flash
    24 * many modes such as chat by tab, by window, panels
    25 * many private modes: private, semi private, whispear, exclusive private, call1to1
    26 * many other customized roles features
    27 * chat moderations : admin, moderator, djs
    28 * emojis, gifs, avatars, youtube and file uploading
    29 * full css customizations and many predefined modes
    30 * responsive: works on any tablets and phone with webrtc
    31 * full history search
    32 * javascript callabcks and REST API
     14Html5 chat plugin is quick plugin to help you to embed html-chat.com video chat into your wordpress blog.
     15Activate the plugin: you will automatically receive the password to your email.
     16Just insert the short code into your page or your post and you have an audio and video chat into your blog.
     17
    3318
    3419== Installation ==
    35  
     20
    3621* activate the plugin
    3722* insert the [HTML5CHAT width=100% height=640px] short code into your page or post
     
    6146 
    6247Feel free to contact us at contact@proxymis.com for further help
    63 
    64 == Changelog ==
    65 
    66 = 1.04 =
    67 * Full screen bug fix
    68 
    69 = 1.03 =
    70 * Better BuddyPress integration
    71 * automatic roles: administrator = admin, author = moderator, dj = contributor
Note: See TracChangeset for help on using the changeset viewer.