=== DiscusHub ===
Contributors: tawhid7m
Tags: forum, community, discussion, bulletin board, bbpress
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An open-source community forum plugin featuring live search, user profiles, image uploads, moderation tools, syntax highlighting, and SEO schema.

== Description ==

DiscusHub is a lightweight, responsive, and open-source community platform for WordPress. It turns any website into an interactive community forum using the `[discushub]` shortcode.

= Features =
* **Native Authentication:** Integrates directly with core WordPress user login and registration.
* **AJAX Live Search & Filtering:** Find topics instantly and filter by Latest, Popular, Unanswered, or Solved.
* **User Profiles:** Click on any user to view their earned points, badges, and recently started discussions.
* **Moderation Tools:** Admins and topic authors can Pin topics to the top, Lock discussions to prevent new replies, and report inappropriate content.
* **Profanity Filter:** Automatically censor specific banned words with asterisks (***) via the admin settings.
* **Image Uploads:** Direct image uploads for topics and replies (max 5MB limit).
* **Honeypot Anti-Spam:** Hidden fields block automated bot submissions.
* **Thread Pagination:** Fast browsing with numeric page selectors.
* **Markdown & Syntax Highlighting:** Quick buttons for formatting, plus Prism.js support for beautiful code blocks.
* **Automated SEO Schema:** Includes `DiscussionForumPosting` JSON-LD schema for search engines.
* **Gamification & Badges:** Reputation points system with automated badge tiers.
* **No-Code Translation Manager:** Edit and translate any frontend text directly from the admin panel.

== Installation ==

1. Upload the `discushub` folder to your `/wp-content/plugins/` directory, or install the .zip directly via WordPress Plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Create a new page and add the shortcode `[discushub]`.
4. Publish the page to launch your forum.
5. Go to **Settings > DiscusHub Settings** to configure custom text and moderation filters.

== Changelog ==

= 1.3.0 =
* Fixed: Critical error caused by missing `add_plugin_action_links` and `ajax_mark_best_answer` functions.
* Restored: Image and file attachment support for topics and replies (FormData logic).
* Restored: Honeypot anti-spam protection backend validation.
* Restored: Complete translation settings panel in the admin dashboard.
* Restored: Email notifications for topic authors upon new replies.

= 1.2.0 =
* Added: Public User Profiles to view points, badges, and recent topics.
* Added: Moderation tools (Pin and Lock topics).
* Added: Content profanity filter (Admin can set banned words to be censored).
* Added: User reporting system for inappropriate content.

= 1.1.0 =
* Added: AJAX Live Search for instant topic discovery.
* Added: Quick filters (Latest, Popular, Unanswered, Solved).
* Added: Prism.js syntax highlighting for code blocks.
* Added: Social sharing buttons (WhatsApp, Facebook, LinkedIn).
* Added: Breadcrumb navigation.

= 1.0.0 =
* Initial public release.