Releases: sinanisler/snn-client-comments
Release list
Release v0.10
Release v0.8
Release v0.8
Changes in this release:
Database (PHP)
SNN_CC_DB_VERSION bumped 1.2 → 1.3
CREATE TABLE now includes pos_x_rel, pos_y_rel, elem_path columns
snn_cc_upgrade_database() runs ALTER TABLE to add the 3 columns on existing installs automatically
Save/Get handlers (PHP)
snn_cc_save_comment() reads pos_x_rel, pos_y_rel, elem_path from POST and stores them
Both snn_cc_get_comments() and snn_cc_get_all_comments() SELECT the new columns so JS receives them
Click capture (JS)
On click, the clicked element's offset + dimensions are used to compute relX / relY as a % within that element
getSelectorPath() builds a CSS selector for the clicked element (ID → class chain → nth-of-type, 4 levels deep)
showAddCommentPopup() now receives relX, relY, elemPath and stores them in the popup's data
Save/Reply (JS)
saveComment() signature changed to include relX, relY, elemPath and sends them as pos_x_rel, pos_y_rel, elem_path
Reply button inherits the parent comment's relative position data
Marker rendering (JS)
displayMarkers() checks for elem_path + pos_x_rel + pos_y_rel; if present, calls resolvePosition() to recompute the absolute pixel position based on the element's current offset — so on any screen width the marker sits on the correct spot in the centered content
Legacy comments without the new fields fall back to raw pos_x / pos_y
Full Changelog: v0.7...v0.8
Release v0.7
Release v0.7
Changes in this release:
- Bump version to 0.7 (3650e86)
- Add checked icon for comments reviewed by users, The All Site Comments panel now shows the ✅ icon with a title="Checked by [Name]" tooltip in the meta row, exactly matching the sidebar behavior. (21e45a8)
Full Changelog: v0.6...v0.7
Release v0.6
Release v0.6
Changes in this release:
New AJAX endpoint snn_cc_check_comment (logged-in users only, guests excluded):
Toggle behavior: clicking Check marks it as checked with your user ID + timestamp. Clicking the ✅ again (by the same user) unchecks it.
Anyone can check any comment — intentional, so a developer can check a client's request after fixing it.
Frontend — popup behavior:
Not checked: a subtle ☑ Check button appears in the comment action row.
Checked: the button is replaced instantly with a green ✅ badge. Hovering shows a tooltip: "Checked by [Name] · 2h ago" — no page reload needed.
Frontend — page markers:
Checked comments get a green ring (box-shadow) around their circle marker on the page, plus a small green ✓ dot in the bottom-right corner.
Frontend — sidebar & All Comments panel:
Checked comments show a ✅ icon with a title="Checked by [Name]" tooltip in the sidebar item meta row.
Full Changelog: v0.5...v0.6
Release v0.5
Release v0.5
Changes in this release:
What was added
Admin bar menu — a new 🌐 All Comments item appears under the "CC" menu alongside the existing "+ Add Comment" and "☰ View Comments" items.
Guest floating buttons — a 3rd 🌐 button is added for guest users who don't have an admin bar.
All-site slide-in panel (right side) — clicking "🌐 All Comments" opens a 350 px panel that:
Fetches comments from every page on the site via a new AJAX action (snn_cc_get_all_comments)
Groups comments by page (human-readable page name derived from the URL path), with a current badge on the page you're already on
Each comment item shows avatar, user name, truncated text, timestamp, and reply count
Click-to-navigate behavior:
Comment is on the current page → panel closes, page scrolls to the marker, and the comment popup opens immediately
Comment is on a different page → browser navigates to {page_url}?snn_view_comment={id} (guests also carry their token)
Full Changelog: v0.4...v0.5
Release v0.4
Release v0.4
Changes in this release:
- Bump version to 0.4 (666ee80)
- release (734ee53)
- FIX: Update admin bar button titles for clarity and consistency Icons missing Fixes #2 (1e16ded)
- Update README.md (166063e)
- Update README.md (0240682)
- Add "Delete All Data" functionality with admin notice (5177e9a)
- ++ (e4e3277)
- Update README.md (e669fae)
- read (f39c3b5)
- Update README.md (29a92e1)
- Update README.md (5434660)
Full Changelog: v0.3...v0.4
Release v0.3
Release v0.3
Changes in this release:
- Bump version to 0.3 (a09a4d1)
- release (afd9708)
- . (2f3ae7c)
- Add post_id column to comments table and update related functions for improved comment retrieval (65c39f0)
- ✅ See comment markers - All users see markers from logged-in users AND guests ✅ See sidebar comments - All users see all comments in the sidebar list ✅ Open and read comments - Any user can click any marker or sidebar item to read the full comment and replies ✅ Reply to anyone - Users can reply to any comment from any user ✅ Edit/Delete own only - Users can only edit/delete their own comments (ownership is verified via user_id or guest_token) (1db77d3)
- Logged-in admin adds a comment → Guest client can see it, read it, and reply to it Guest client adds a comment → Logged-in admin can see it, read it, and reply to it Guest A adds a comment → Guest B (with same shared link) can see it and read it (but cannot edit/delete it) (d6c277e)
- ++ (2a53646)
- ++ (6a18ad2)
- . (ef93d2b)
- fix (44bcded)
- ++ (2ee7a96)
- Remove guest token from URL for consistent page identification in AJAX requests (9f4bebd)
- Add guest commenting share link functionality and regenerate token option (87e41a7)
- Logged-in users: See the admin bar with the Comments menu (existing functionality) Guest users with valid token: See two floating circular buttons at the bottom-left corner: 📍 Add Comment button: Enters click mode to place comments 📋 View Comments button: Opens the sidebar to view all comments Both button types control the same features seamlessly (c9c3e50)
- Line 81 - Removed from default options in snn_cc_create_tables() Line 111 - Removed from registered settings in snn_cc_register_settings() Line 132 - Removed from save logic in snn_cc_settings_page() Line 144 - Removed variable assignment in snn_cc_settings_page() Lines 172-179 - Settings UI now only shows "Show in frontend" checkbox (removed the admin checkbox) Line 258 - Removed from snn_cc_add_admin_bar_button() function Line 420 - Removed from snn_cc_enqueue_scripts() function Code Status The plugin is now properly configured as a frontend-only commenting system: (9f182c1)
- Enable Guest Commenting Setting - Added a new checkbox in the admin settings panel (Settings → Client Comments) that allows you to enable/disable guest commenting functionality. (507bd11)
- readme (e0aee9a)
Full Changelog: v0.2...v0.3
Release v0.2
Release v0.2
Changes in this release:
- Bump version to 0.2 (3c7296d)
- Add GitHub Auto-Update functionality and release workflow (66f22ea)
- Fixes the Error: Before: The entire function ran on wp_footer, trying to enqueue jQuery too late, causing "jQuery is not defined" After: jQuery is enqueued early on wp_enqueue_scripts, then our custom code runs in wp_footer after jQuery is loaded (554ce3e)
- What This Fixes: Frontend now works: jQuery is properly enqueued, and all scripts load correctly on the frontend Admin bar buttons don't show on dashboard: Buttons only appear when viewing frontend pages Better positioning: Sidebar adjusts correctly whether admin bar is present or not Cleaner code: Removed unnecessary admin-related code since plugin is frontend-only (55c9a98)
- Features Implemented: Core Functionality: Visual commenting system - Click anywhere on a page to add comments Admin bar buttons - "Add Comment" and "Comments" buttons in the WordPress admin bar Marker system with user initials, numbers, or icons 300px toggleable sidebar on the left showing all page comments Threaded replies - Multi-user collaboration on each comment Popup interface - Read and reply to comments without opening sidebar Admin Settings Page: Located under Settings > Client Comments: (b73c395)
- . (12d84b4)
Full Changelog: https://github.com/sinanisler/snn-client-comments/commits/v0.2