data->first_name; $useremail = $current_user->data->user_email; $greetings = json_to_array(get_option('zopimGreetings')); $message = ""; if (count($_POST) > 0) { update_option('zopimLang', $_POST["zopimLang"]); update_option('zopimPosition', $_POST["zopimPosition"]); update_option("zopimBubbleEnable", $_POST["zopimBubbleEnable"] ); update_option('zopimColor', $_POST["zopimColor"]); update_option('zopimTheme', $_POST["zopimTheme"]); update_option('zopimBubbleTitle', stripslashes($_POST["zopimBubbleTitle"])); update_option('zopimBubbleText', stripslashes($_POST["zopimBubbleText"])); update_checkbox("zopimGetVisitorInfo"); update_checkbox("zopimHideOnOffline"); update_checkbox("zopimUseGreetings"); if ( isset($_POST['zopimUseGreetings']) && $_POST['zopimUseGreetings'] != "") { $greetings->online->window = stripslashes($_POST["zopimOnlineLong"]); $greetings->online->bar = stripslashes($_POST["zopimOnlineShort"]); $greetings->away->window = stripslashes($_POST["zopimAwayLong"]); $greetings->away->bar = stripslashes($_POST["zopimAwayShort"]); $greetings->offline->window = stripslashes($_POST["zopimOfflineLong"]); $greetings->offline->bar = stripslashes($_POST["zopimOfflineShort"]); update_option('zopimGreetings', to_json($greetings)); } $message = "Changes saved!
"; } zopimme(); $accountDetails = getAccountDetails(get_option('zopimSalt')); if (get_option('zopimCode')=="zopim") { $message = '

Customizing in Demo Mode

Currently customizing in demo mode. Messages in this widget will go to Zopim staff. The chat widget will not appear on your site until you activate / link up an account.
'; $accountDetails->widget_customization_enabled = 1; $accountDetails->color_customization_enabled = 1; } else if (isset($accountDetails->error)) { $message = '

Account no longer linked!

We could not connect to your Zopim account. As a result, this customization page is running in demo mode.
Please check your password in account setup and try again.
'; } else { $message .= "Click 'Save Changes' when you're done. Happy customizing!"; } // unset($accountDetails->widget_customization_enabled); // unset($accountDetails->color_customization_enabled); ?>

Customize your widget

General Settings

Language
Use Logged in Username / Email />
Position
Hide chat bar when offline
/> This prevents visitors from sending you offline messages - force show chat button

Color & Theme Settings

Settings reflect instantly on your preview widget. Try it out!
color_customization_enabled == 1) { echo "
"; $colors = curl_get_url(ZOPIM_COLORS_LIST); $colors = explode("\n", $colors); $i=0; foreach ($colors as $color) { echo "
 
"; if (++$i%40==0) { echo "
"; } } echo "
Restore default color
"; } else { echo "
Sorry, your plan does not allow for color customization. Please upgrade to enjoy choice of color!
"; } ?>
Select A Theme
widget_customization_enabled == 1) { echo ' View the Chat Panel for changes"; } else { echo "
Sorry, your plan does not allow for theme customization. Please upgrade to enjoy choice of themes!
"; echo ''; } ?>

Help Bubble Settings

Display Help Bubble
Help Bubble Title Refresh
Help Bubble Message

Greeting Message Settings

/> Use these greeting messages
Message Shown on Chat Bar (max 26 characters)
Online maxlength="26">
Away maxlength="26">
Offline maxlength="26">
Message Shown on Chat Panel (max 140 characters)
Online
Away
Offline

$value) { if ($value != "") { $isselected = ""; if ($current == $key) { $isselected = "selected"; } $out .= ''; } } return $out; } function get_languages() { $langjson = '{"--":" - Auto Detect - ","ar":"Arabic","bn":"Bengali","bg":"Bulgarian","zh_CN":"Chinese (China)","zh_TW":"Chinese (Taiwan)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch; Flemish","et":"Estonian","fo":"Faroese","fi":"Finnish","fr":"French","ka":"Georgian","de":"German","el":"Greek","he":"Hebrew","hu":"Hungarian","is":"Icelandic","id":"Indonesian","it":"Italian","ja":"Japanese","ko":"Korean","ku":"Kurdish","lv":"Latvian","lt":"Lithuanian","mk":"Macedonian","ms":"Malay","nb":"Norwegian Bokmal","fa":"Persian","pl":"Polish","pt":"Portuguese","pt_BR":"Portuguese (Brazil)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovenian","es":"Spanish; Castilian","sv":"Swedish","th":"Thai","tr":"Turkish","uk":"Ukrainian","ur":"Urdu","vi":"Vietnamese"}'; return json_to_array($langjson); } function update_checkbox($fieldname) { if (isset($_POST["$fieldname"]) && $_POST["$fieldname"] != "") { update_option($fieldname, $_POST["$fieldname"]); } else { update_option($fieldname, "disabled"); } } ?>