=== Altius Workspace ===
Contributors: altiuscentral
Tags: team workspace, chat, members, community, intranet
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The team workspace your business owns: channels, chatrooms, messaging, files, a knowledge base, and events, on your own WordPress site.

== Description ==

Most teams run their daily communication on the free tier of a big-name chat tool, and discover the catch too late: the history disappears, the meters start running, and the knowledge your team wrote down lives on somebody else's server.

Altius Workspace takes the opposite view. Your team's conversations and files are an asset, and assets belong on your own site, in your own database, where nothing expires and nobody's AI reads your data.

**Talking together**

* **Chatrooms** with permanent history: channel-wide or private invite-only rooms, live links, who's-in-the-room presence, and file sharing (images, documents, MP3, MP4 played inline, up to 50MB). Amber indicators show rooms with new activity.
* **Direct messages** with CC, live links, quick emoji replies, voice notes recorded in the browser, and up to four attachments per message (200MB combined).
* A **desktop reading pane** on wide screens, and optional Slack-style desktop notifications per device.
* A **Q&A forum** where answers are marked and stay findable: chat for the flow, forum for the knowledge.

**Channels scope everything**

Each channel (team, cohort, or client) is a private world: its resources, discussions, events, and chat are visible only to its members. People see only their own channels.

**Files, events, and the rest**

* Resource libraries for images, video, audio, and documents up to 500MB per file, with chunked uploads that work on modest hosting and video streamed in the page.
* An events calendar with month and day views, one-click RSVP, multi-day and recurring events, and checkbox-selected email invitations.
* A curated weblinks library, a member directory, welcome emails with templates and a full send log, and a searchable in-product help system with getting-started tips.
* Rename any section to match how your business talks; every person arranges their own sidebar and dashboard.

**Roles without wp-admin**

Administrators, Altius Editors (staff who never need the WordPress dashboard), and Members, with per-person permissions for uploads, channel creation, and plugin-file (zip) uploads.

**What Pro will add**

Google Drive storage, full member-to-member messaging with safeguards, custom branding, event reminders, closed-browser push notifications, senior-editor admin tools, and connection to the wider Altius ecosystem. The free version is complete and stays that way.

== Installation ==

1. Install through Plugins → Add New Plugin (search "Altius Workspace"), or upload the zip via Upload Plugin. Activate.
2. Activation creates the Workspace pages automatically (Member Login, Member Dashboard, libraries, Chatrooms, Messages, Events, and the rest). Nothing is added to your menus; link the Member Login page wherever suits your site.
3. **Match your site's template:** the Workspace pages render through your theme, so open Pages, use Quick Edit on each Workspace page, and set its Template to the one your normal pages use (for example your theme's default or Elementor Full Width). This aligns headers, footers, widths, and fonts with the rest of your site.
4. Create your channels, add your people, and send the welcome emails. The in-product Help & Tips page covers the rest.

For reliable email delivery (welcome and notification emails), configure an SMTP plugin. Voice notes and desktop notifications require your site to run on HTTPS.

== Frequently Asked Questions ==

= Why don't the Workspace pages match my website? =

Set each Workspace page's Template to the one your site's other pages use (Pages → Quick Edit → Template). Two minutes for all of them, and everything falls into line.

= Do members need access to the WordPress dashboard? =

No. Members and Altius Editors do everything from the front end. Only administrators use wp-admin.

= Does chat history really never expire? =

Never. It's stored in your own database, and keeping it is the point of the product.

= Is my data shared with anyone? =

No. Everything lives on your server. Nothing is mined, sold, shared with, or used to train AI.

= What happens if I delete the plugin? =

Settings, permissions, and the email log are removed. Your content, pages, files, discussions, chat history, and events, is deliberately left in place; remove it by hand if you want it gone.

= A video shows a player that won't start. =

Encode as MP4 (H.264). iPhone footage recorded in High Efficiency (HEVC) often won't play in browsers; set the camera to Most Compatible or export as H.264.

== Screenshots ==

1. The sidebar Workspace: every section one click away, arranged your way.
2. A chatroom with permanent history, presence, and inline file sharing.
3. The events calendar with RSVP and multi-day events.
4. Direct messages with the desktop reading pane.
5. A resource library with in-page video streaming.
6. The searchable Help & Tips guide.

== Changelog ==

= 1.1.2 =
* Completed a full audit of every request input: all superglobal reads are unslashed and sanitized with type-appropriate functions (including multi-dimensional and $_FILES reads), attachment tokens and filenames sanitized at every read, and uploaded chunk files verified with is_uploaded_file() before processing. Password fields are intentionally passed unmodified to WordPress's password functions, with inline documentation.

= 1.1.1 =
* All front-end and admin JavaScript now loads through properly enqueued files; no inline script tags remain.
* Hardened input handling: nonces sanitized before verification, validated values stored in their sanitized form, and server variables sanitized before use.

= 1.1.0 =
* One-time migration from earlier private Altius builds: activating this plugin on a site with legacy data renames post types, metas, options, page shortcodes, log tables, and the protected-storage folder in place. Nothing is deleted; content, members, files, chat history, and events carry over intact.

= 1.0.4 =
* The member directory is now a renameable section label ("Directory" by default) used consistently by the sidebar and the dashboard card, which previously disagreed.
* Friendlier default names: the forum is "Discussions" and events are "Calendar" out of the box. Rename any of them in Section Labels.

= 1.0.3 =
* Reinstalling after a delete now adopts the existing Workspace pages instead of creating duplicates, and tidies unedited duplicate copies into the trash.

= 1.0.0 =
* First public release: channels, chatrooms with permanent history and file sharing, direct messages with voice notes and attachments, resource libraries to 500MB, Q&A forum, events with RSVP and invitations, weblinks, directory, welcome emails with send log, desktop notifications, sidebar and classic views, per-person permissions, and the searchable help system.
