=== User to Me ===
Contributors: afproject
Tags: live chat, chat widget, customer support, help desk, contact
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 3.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A live chat widget for WordPress that's incredibly simple to set up: add an agent, pick your colors, done. No external service required.

== Description ==

User to Me adds a simple, self-hosted live chat widget to your WordPress site — no external service, no monthly fee to a third party, no complex setup. Conversations are stored in your own database.

It's designed to be the easiest live chat plugin to get running: install it, add a support agent with a couple of clicks, and the chat widget is already live on your site. Every setting — colors, position, logo, texts — is a plain, self-explanatory admin screen. No code, no configuration files, no learning curve.

**Main features**

* Floating chat widget with a 2-step flow: visitor enters name/email, then chats in real time with an available agent.
* Multiple support agents, managed as a custom post type, each with their own photo, working hours and lunch break.
* Automatic online/offline status based on each agent's working hours, with a manual override (always online / always offline).
* Admin dashboard to view and reply to active conversations, with new-message notifications and unread badges.
* Conversation archive, with daily automatic archiving of old conversations.
* Image sharing inside the chat (clients and agents can send pictures).
* Appearance customization: primary color, widget position (left/right), panel size, custom font, custom logo/icon, custom title and welcome message — all from a dedicated admin screen, no code required.
* Multilingual-ready: full translation support (.pot file included), with a privacy policy link that adapts to the current site language (Polylang-compatible).
* Privacy-friendly: visitors must accept your Privacy Policy before starting a chat.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/user-to-me` directory, or install the plugin directly through the WordPress plugins screen.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Go to "Chat" in the WordPress admin menu, then "Agenti" to add at least one support agent with their working hours.
4. Go to "Chat" → "Personalizzazione" to set colors, position, logo and texts for your widget.
5. The chat widget will automatically appear on your site's frontend.

== Frequently Asked Questions ==

= Do I need an external service or account to use this plugin? =

No. All conversations are stored in your own WordPress database — there is no third-party service involved.

= Can I have more than one support agent? =

Yes. Each agent is managed as a custom post type with its own photo and working hours; the widget shows whichever agent is currently online.

= Can I change the colors and position of the chat widget? =

Yes, from "Chat" → "Personalizzazione" in the admin menu: colors, position, panel size, font, logo and texts are all configurable without touching any code.

= Is the plugin translation-ready? =

Yes, all strings are translatable and a .pot template is included in the `/languages` folder.

== Screenshots ==

1. Frontend chat widget (closed and open state).
2. Admin conversations dashboard.
3. Agent working-hours settings.
4. Appearance customization screen.

== Changelog ==

= 3.1.3 =
* Removed the Author URI plugin header, since it was identical to the Plugin URI (WordPress.org requires the two to differ or only one to be set).

= 3.1.2 =
* Plugin Check follow-up: added missing AJAX nonce check on the new-conversations poll, switched the privacy-consent string to real escaping (wp_kses_post) instead of a suppression comment, and rewrote several multi-line SQL queries as single-line statements so static analysis correctly recognizes them as already covered.

= 3.1.1 =
* Plugin Check follow-up pass: fixed remaining escaping issues, corrected a missing translators comment, and completed direct-database-query annotations for the custom table queries.

= 3.1.0 =
* Full Plugin Check compliance pass: prefixed all global functions, added direct-access guards, escaped/sanitized all remaining input and output, replaced timezone-unsafe date() calls with date_i18n()/gmdate().
* Bundled Font Awesome locally instead of loading it from a CDN.
* Removed the manual load_plugin_textdomain() call (translations are auto-loaded by WordPress.org since WP 4.6).
* Bumped "Tested up to" to 7.0.

= 3.0.1 =
* Custom CSS field on the appearance screen, with a reference list of the widget's CSS selectors.
* Fixed send button alignment on the frontend chat widget.
* Hardened nonce verification and input sanitization/escaping across admin actions (security review pass).

= 3.0.0 =
* Renamed plugin to "User to Me".
* Added appearance customization screen (colors, position, size, font, logo, texts).
* Full i18n/translation support.

== Upgrade Notice ==

= 3.0.0 =
This version renames the plugin's text domain. If you have custom translation files for an earlier version, they will need to be reinstalled under the new "user-to-me" text domain.
