Plugin Directory

Changeset 1020546


Ignore:
Timestamp:
11/05/2014 10:12:05 PM (11 years ago)
Author:
elevio
Message:

Adding in user role

Location:
elevio/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • elevio/trunk/elevio.php

    r1011918 r1020546  
    22/*
    33Plugin Name: Elevio
    4 Plugin URI: https://elevio.com/integrations/wordpress/
    5 Description: Display your whole knowledge base and chat in a single tab on every page of your site.
     4Plugin URI: https://elev.io/
     5Description: A better way for your users to access the help they need.
    66Author: Elevio
    77Author URI: https://elev.io
    8 Version: 3.0.2
     8Version: 3.1.0
    99*/
    1010
  • elevio/trunk/plugin_files/helpers/TrackingCodeHelper.class.php

    r1011916 r1020546  
    1414            if (is_user_logged_in()) {
    1515                $user_info = wp_get_current_user();
     16                $roles = [];
     17                if ($user_info instanceof WP_User) {
     18                    $roles = $user->roles;
     19                }
    1620                $user = "
     21
    1722_elev.user = {
    1823    first_name: '" . $user_info->user_firstname . "',
    1924    last_name: '" . $user_info->user_lastname . "',
    2025    email: '" . $user_info->user_email . "',
    21     user_hash: '" . hash_hmac("sha256", $user->email, $secret_id) . "'
     26    user_hash: '" . hash_hmac("sha256", $user->email, $secret_id) . "',
     27    groups: '".implode(',', $roles)."'
    2228};
    2329";
  • elevio/trunk/readme.txt

    r1011904 r1020546  
    11=== Elevio ===
    22Contributors: Elevio
    3 Tags: zendesk, desk.com, uservoice, zopim, olark, snapengage, livechat, knowledge base, live chat, support
    4 Stable tag: 3.0.0
     3Tags: zendesk, desk.com, uservoice, zopim, olark, snapengage, livechat, knowledge base, live chat, support, intercom, statuspage
     4Stable tag: 3.1.0
    55Requires at least: 2.8
    66Tested up to: 4.0.0
    77
    8 Elevio for Wordpress plugin that integrates with your knowledge base and chat client.
     8Elevio for Wordpress plugin that integrates with your existing knowledge base, chat client, support system and more
    99
    1010== Description ==
     
    32321. Install the elevio plugin
    33332. Activate the plugin through the 'Plugins' menu in WordPress
    34 3. Click the 'Elevio' menu on the left.
    35 4. Follow the installation instructions instructions.
     343. Click the 'Elevio' menu item on the left.
     354. Follow the installation instructions.
    3636
    3737== Screenshots ==
     
    4646== Changelog ==
    4747
     48= 3.1.0 =
     49* Added in user role
     50
    4851= 3.0.0 =
    4952* Moved to using the new 3.0 version of elev.io
Note: See TracChangeset for help on using the changeset viewer.