SurveyGram Changelog
This changelog documents the updates and improvements made to SurveyGram, a flexible survey system by Page Telegram Volunteer Services.
Version 2.16 - August 2025
- Fixed CSV export in
export.php
to include the timestamp
field as a column, resolving the issue where it displayed as "N/A".
- Simplified form rendering in
survey.php
to ensure options
, text
, and comments
question types render correctly, with fallback choices for options
questions.
- Verified CSS to prevent form elements from being hidden.
Version 2.15 - August 2025
- Fixed rendering issue in
survey.php
by adding support for "options"
question type, rendering a <select>
dropdown with choices from the JSON, matching the provided survey format.
- Updated
new_survey.php
and edit_survey.php
to use "options"
type instead of "scale"
, with a predefined list of choices for consistency with existing surveys.
- Retained backward compatibility for
"scale"
questions to support existing surveys.
Version 2.14 - August 2025
- Fixed issue in
survey.php
where text and scale form elements were not rendering for end users, ensuring all question types (text, scale, comments, link, divider) display correctly.
- Added validation and error logging for invalid question types in survey JSON to improve debugging.
- Added link to
changelog.html
in the admin dashboard for easier access.
Version 2.13 - August 2025
- Fixed issue in
survey.php
where text and scale form elements were not rendering, ensuring all question types (text, scale, comments, link, divider) display correctly.
- Renamed submission timestamp field from
submitted_at
to timestamp
in results JSON (data/results/$code-$user.json
and data/surveys/$code.json
).
- Restored full functionality in
survey.php
and admin.php
to address file size reduction, ensuring bookmarking script, survey management, and CSS editor are intact.
Version 2.12 - August 2025
- Added timestamp recording for survey completions, storing the submission date and time in
submitted_at
field (format: Y-m-d H:i:s
) in the results JSON file (data/results/$code-$user.json
).
- Added CSS editor in the admin dashboard (
admin.php
), allowing administrators to edit and save styles/brownhatsurvey.css
directly from the interface.
Version 2.11 - August 2025
- Fixed text alignment issue ensuring survey question text, comment text, link descriptions, and introduction paragraphs are consistently left-justified using
text-align: left !important
in CSS to override global centering.
- Maintained centered alignment for survey title, divider labels, buttons, and other non-question elements for design consistency.
Version 2.10 - August 2025
- Updated CSS to left-justify question text, comment text, and link descriptions in surveys, aligning with the business-style formatting of the introduction.
- Preserved centered alignment for survey title, divider labels, and buttons.
Version 2.9 - August 2025
- Changed survey introduction styling to left-justified, business-style format with paragraph indentations (2em) instead of centered text.
- Updated
survey.php
to render introduction as multiple <p>
tags, splitting by newlines, with CSS handling indentation.
Version 2.8 - August 2025
- Added optional comment blocks after text, scale, and comments questions, controlled by a checkbox in survey creation/editing interfaces.
- Introduced
has_comments
JSON field to store comment block preference, automatically inserting a "Any comments or questions?" comment question after selected questions.
- Updated sequence handling to assign comment blocks a sequence number one greater than the parent question (e.g., 11 for a question at 10).
Version 2.7 - August 2025
- Updated
admin.php
to accept password via an input form if not provided in the URL, improving security and accessibility.
- Modified admin dashboard title "SurveyGram" to link to
index.php
for easier navigation.
Version 2.6 - August 2025
- Replaced fixed 1-7 scale with user-specified variable scale for survey questions, allowing creators to set custom
scale_min
and scale_max
.
- Added "Skip" (value 0) as the default option for scale questions, automatically selected if no choice is made by the user.
Version 2.5 - August 2025
- Created
setup.php
to generate all SurveyGram files and directories, streamlining deployment.
- Updated sequence numbering to increment by 10 (e.g., 10, 20, 30) for easier reordering of survey questions.
- Applied
nl2br()
to render carriage returns as <br>
tags in survey titles, introductions, question text, and divider labels.
Version 1.13 - Initial Release
- Initial release of SurveyGram with core functionality for creating, taking, and managing surveys.
- Features included survey code validation, user ID generation, JSON-based storage, export to JSON/CSV, and admin dashboard with basic CRUD operations.
- Styled with a monochrome orange-on-black theme using
brownhatsurvey.css
.
Return to SurveyGram