Hi everyone!
I would like to share a new open-source plugin I built for Question2Answer: **Truth or Dare Roulette (Answers)** (`q2a-truth-or-dare-answer`).
It adds a fun, interactive casino-style roulette wheel right above the answer editor (`a_form`). Before posting an answer, users can spin the two-tone wheel to land on either **TRUTH** or **DARE**. Once it stops, a real dynamic PNG badge is automatically inserted into their answer so the question author knows whether to leave them a Truth or a Dare in the comments.
### Key Features
- **Interactive HTML5 Canvas Roulette:** Smooth deceleration spin animation with a golden top pointer.
- **Customizable Two-Tone Colors:** Pick any background colors for the **TRUTH** and **DARE** segments directly from `Admin -> Plugins -> Options` (includes both native color pickers and HEX inputs).
- **Dynamic PNG Badge (`badge.php`):** Generates a real PNG image on the fly via PHP GD so it bypasses CKEditor Advanced Content Filter (ACF) / Q2A HTML sanitizer restrictions and displays cleanly for all users.
- **Editor Compatibility:** Works seamlessly with both **CKEditor** and standard plain textareas.
- **Plug & Play:** Includes `metadata.json` for one-click activation/deactivation from the Admin panel.
### Requirements
- Question2Answer **1.7+**
- PHP **7.4+** with the **GD extension** (`ext-gd`) enabled
### Download & Installation
You can view the source code and download the plugin directly from GitHub:
**https://github.com/Monkey80s/q2a-truth-or-dare-answer**
1. Download the repository ZIP (or clone it) into your `qa-plugin/` folder.
2. Go to **Admin -> Plugins** in your Q2A site.
3. Enable **Truth or Dare Roulette (Answers)** and click **Options** to customize your segment colors.
Feedback and contributions are welcome!
https://github.com/Monkey80s/q2a-truth-or-dare-answer download here |