[Free Plugin] Truth or Dare Roulette for Answers (Customizable Colors & Dynamic PNG Badge)

Post date: 2026-11-18 06:04:29
Views: 0

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

Please click Here to read the full story.
 
Other Top and Latest Questions:
AMD dives on short seller report of alleged China exposure
Kushner says Russia 'comfortable' with idea of NATO-like security guarantees for Ukraine
Jensen Huang's — and Nvidia's — legal exposure balloons
Amid recent banking outages, should you start carrying cash again? Top advisors weigh in
SoftBank suffers worst day in over two years as AI sell-off hits Asian tech stocks
[Free Plugin] Truth or Dare Roulette for Answers (Customizable Colors & Dynamic PNG Badge)
Cupertino: Judith and Michael
Movie: Wild Horse Nine
The Lord of the Rings: The Rings of Power: From Valinor
Anthropic defies the odds, holding record IPO despite ‘massively disruptive’ market