Living Islands Volunteer Hours
Volunteers log hours against your projects and fix their own entries; admins get per-user and per-project reports with CSV export.
Not scanned yet
WordPress plugin
Install in
Living Islands Volunteer Hours is a deliberately plain, standalone plugin for organizations that need volunteers to log the hours they work.
For administrators (Living Islands Volunteer Hours menu in wp-admin):
- Maintain the project list separately — just project names; deactivate a project to hide it from the form without losing history
- See, filter, correct, and export every entry
- Two checkboxes per entry: Reviewed/Approved and Paid. Hours can only be marked paid after they have been reviewed; un-reviewing clears the paid flag. Volunteers see the status of each entry, and paid entries are locked against volunteer changes
- Run reports for any date range: hours per user and hours per project, each with one-click CSV export (opens directly in Excel)
For volunteers (via the [livh_volunteer_hours] shortcode on any page):
- Must be logged in to the WordPress site to register hours
- Enter the date worked, number of hours, a description, and check one or more of the organization’s current projects
- See their own registered hours per month with a total, and edit or delete entries to fix mistakes
- Download their monthly sheet as CSV, or print it (the browser print dialog saves it as PDF)
No page builders, no styling frameworks, no external services. Three custom database tables, standard WordPress security (nonces, capability checks, prepared statements), and CSV output with Excel formula-injection protection.
Written by Joobi from the project's own listing. See the source page
30 Nov 2026
Version 1.1.24 released. Not scanned yet.
1.1.24
- Fixed: LIVH_Data::add_project() returned the wrong id. Cache invalidation runs an update_option() whose own query replaced $wpdb->insert_id before it was read.
- Fixed: CSV downloads no longer emit a “headers already sent” warning when output has already started.
- Fixed: the main stylesheet was never loaded. The enqueue still pointed at the pre-rename filename assets/vh.css, which is not part of the distributed plugin, so every plugin screen rendered unstyled. It now loads assets/livh.css, whose selectors match the markup.
1.1.23
- Sanitized every request value at the point it is read, rather than relying on later validation: project names on add/rename, and the month, date-range and status filters on the admin and export screens.
- Replaced all blanket phpcs:ignore comments with specific sniff names and a written justification, so each suppression states what is being suppressed and why.
1.1.19
- Renamed the plugin to “Living Islands Volunteer Hours” and the slug to living-islands-volunteer-hours.
- All functions, classes, constants, options, database tables, shortcodes, menu slugs and AJAX actions now use the “livh_” prefix. Existing data is migrated automatically on upgrade; no hours are lost.
- The shortcode is now [livh_volunteer_hours]. Update any page still using the old shortcode.
- Moved inline JavaScript and CSS into enqueued files; removed all inline event handlers.
- Sanitized nonce values before wp_verify_nonce(), and sanitized $_SERVER values used to build redirect URLs.
- Removed development files, WordPress.org directory assets and bundled translations from the distributed package.
1.1.18
- Chore: Add 1.1.18 changelog entry to README.md noting documentation bump in readme.txt.
- Docs: No functional changes; this is a metadata/documentation update.
- Docs: Updated readme files with the plugin homepage (https://wordpress.org/plugins/living-islands-volunteer-hours/) and repository (https://github.com/dkguru/WP-Volunteer-Hours).
1.1.17
- Fixed: Broken CSV exports and stale report caches
- Exports: Unify nonce naming behind VH_Export::nonce_action()/nonce_field(), used by both URL builders and verifiers. The per-action nonces added in 1.1.15 were generated with different names than the handlers checked, so My Hours CSV returned 500 and the All Entries and report CSV exports returned 403.
- Exports: Replace the two stale check_admin_referer( ‘vh_export_admin’ ) calls.
- Caching: Invalidate on entry save, status change and bulk restore; these paths never cleared report caches, so totals could stay stale for an hour on sites with a persistent object cache.
- Caching: Version the plugin’s own cache keys instead of calling wp_cache_flush(), which wiped core and every other plugin’s cache on each project write.
- Caching: Drop wp_cache_delete() calls keyed on md5(‘|’), which never matched a real key.
- Cleanup: Remove duplicate $sql build and placeholder markers in get_entries().
1.1.16
- Fixed: the volunteer “Download CSV” button and the admin All Entries / report CSV exports failed with a security error. The per-action nonces introduced in 1.1.15 were generated with different names than the handlers verified; both now derive their names from one shared helper.
- Fixed: registering, editing or restoring hours did not clear cached reports, so on sites with a persistent object cache (Redis/Memcached) totals could stay stale for up to an hour.
- Changed: cache invalidation no longer calls wp_cache_flush(), which wiped the entire site’s object cache including core and other plugins. The plugin now versions its own cache keys.
- Removed leftover placeholder code in the entry query.
1.1.15
- Security: added PHPCS ignore for test fallback unlink() and ensured wp_delete_file() is used where available; implemented per-action nonces across admin and front-end forms and export URLs/handlers to harden CSRF protections.
- Security/standards: replaced direct fopen/fgetcsv restore path with WP_Filesystem reading; added input unslashing and explicit isset checks for admin POST handling.
- Performance: converted remaining interpolated SQL to use explicit table variables and $wpdb->prepare() where appropriate; added caching (wp_cache_get/wp_cache_set) for expensive reads and implemented cache invalidation on write paths.
- Internal: refactored export URL builder to emit per-action nonces and updated export handlers; normalized table references to explicit $wpdb->prefix variables.
- I18n: fixed translators comments and used ordered placeholders for sprintf() translation strings.
- Tests: updated PHPUnit tests to avoid direct file system calls and to use explicit table variables where needed.
- Packaging: updated volunteer-hours.zip distribution and bumped versions.
1.1.11
- Doc: updates to includes/class-vh-admin.php documented. Changes include:
- Refactor: restore logic moved into restore_backup_from_file() helper for clearer separation of parsing and DB operations.
- Feature: added “Preserve original numeric IDs” option (requires Replace) to the Restore form.
- Safety: restore now returns per-row error details surfaced to the admin notice after completion.
- Robustness: when preserving IDs, AUTO_INCREMENT for affected tables is adjusted to avoid future collisions.
1.1.10
- Added: Backup and Restore functionality. Admins can download a full CSV backup (projects + entries) and restore it via the Reports screen. Restore supports an option to replace existing data and to preserve original numeric IDs (use with caution).
- Improved: Restore reports per-row errors to the admin notice on completion and adjusts table AUTO_INCREMENT when preserving IDs.
1.1.9
- Added: unpaid CSV now includes Entry ID and User Email columns.
- Tests: add PHPUnit test scaffold and an unpaid-export test (requires WordPress test environment).
1.1.8
- Changed: unpaid hours CSV format changed to a flat, one-row-per-entry layout with a User column. Rows are grouped implicitly by sorting (user name asc) and then by date asc.
1.1.7
- Fixed: redirects built from the current URL could duplicate the site path when WordPress is installed in a subdirectory (e.g. example.com/vh/). Post-submit redirects now build the URL from HTTP_HOST + REQUEST_URI to avoid generating /vh/vh/?vh_msg=… URLs.
- Added: an “Export unpaid hours (CSV)” button on the Reports screen. The export now produces a flat one-row-per-entry CSV with a User column, sorted by user and then by date (ascending).
- Refactor: export URL building consolidated into a helper to reduce duplication.
1.1.6
- Added: a dismissible message on the Volunteer Hours admin screens inviting support for Living Islands, linking to https://donorbox.org/linp
Closing it hides the message for three months, per administrator. The URL can be changed with the ‘vh_donation_url’ filter.
1.1.4
- Fixed: on sites with a timezone behind UTC (e.g. US timezones), the month-end date was computed in the previous month,
producing an impossible date range. All Entries, My Hours, and CSV exports showed no records even though entries were saved correctly.
1.1.3
- Fixed: a failed database insert was reported as “Hours registered”. Database errors during save are now shown to the user with the exact error text.
- Added a Plugin status panel on the Reports screen: table existence and row counts, schema version, and a safe Repair/rebuild button.
- Missing tables are now recreated automatically on the next page load, even if the version option is current.
1.1.2
- Fixed: the All Entries screen (and My Hours) showed no records on MariaDB servers with the default ONLY_FULL_GROUP_BY sql_mode. The entry query no longer uses GROUP BY.
- Database errors on the All Entries screen are now shown as an admin notice instead of failing silently.
1.1.1
- Fixed: registering hours redirected to the homepage instead of back to the form page, making it appear the entry was not saved and hiding validation messages. Submissions now return to the same page with a confirmation or error message.
1.1.0
- Added Reviewed/Approved and Paid checkboxes per entry on the All Entries screen (paid requires review first).
- Status shown to volunteers, included in printable sheet and all CSV exports, with a status filter for admins.
- Volunteer edits send an entry back for review; paid entries are locked for volunteers.
1.0.0
- Initial release.
30 Nov 2026Listed on Joobi from WordPress.org.
Follow this listing's changes (Atom feed)