Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.40 veröffentlicht (28.05.26)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Paid Threads
#1
Eine neue Erweiterung wurde veröffentlicht: Paid Threads

Zitat:Paid Threads - Detailed Description

Overview
Paid Threads is a powerful monetization plugin for MyBB 1.8.x that allows thread creators to lock their content behind a NewPoints paywall. When users purchase access to a paid thread, the NewPoints are transferred directly to the thread author, creating a fair revenue-sharing system for forum communities.

Features
Thread Creation & Management
  • Toggle to make threads paid when creating new threads

  • Edit existing threads to enable/disable paid status

  • Set custom prices for each thread (within admin-configured limits)

  • Only thread authors can modify the paid status of their own threads

  • Thread creators can view their own paid threads for free
Flexible Pricing Controls
  • Set global minimum price requirement (default: 1 point)

  • Set optional maximum price limit (0 = unlimited)

  • Customizable currency label (default: "Points")

  • Display current and required amounts to users

  • Price validation on both front-end and back-end
User Access Management
  • Guests must log in to unlock threads

  • Logged-in users see their balance and can purchase access

  • Show clear "insufficient balance" messages

  • Prevent double-purchases via unique database constraints

  • One-time payment = permanent access for that user
Visual Design
  • Terminal/hacker-themed card design with dark aesthetic

  • Inline SVG icons for cross-browser consistency

  • Responsive layout (mobile-friendly)

  • Color-coded status indicators (success, warning, error)

  • Smooth animations and transitions

  • CSS injected directly to guarantee styling loads (fixes theme conflicts)
Forum Display
  • Lock badge shown on thread list next to thread title

  • Displays price of each paid thread

  • Identifies paid threads at a glance
Admin Control
  • Enable/disable the entire plugin

  • Exclude specific user groups from paywall (e.g., admins, moderators)

  • Customize minimum and maximum allowed prices

  • Set custom currency label for your forum

  • Control whether thread authors view their own threads free
Security
  • CSRF protection on all payment transactions

  • IDOR (Insecure Direct Object Reference) protection

  • Race condition guards to prevent double-spending

  • Fresh balance verification from database (prevents cache exploits)

  • SQL injection prevention via escaping and parameterized queries

  • Admin override flag for PM delivery

How It Works

  1. Thread Creator — Posts a new thread and toggles "Make this a Paid Thread"

  2. Set Price — Enters the cost in NewPoints (respects min/max admin settings)

  3. Thread Published — Appears in forum with lock badge showing price

  4. User Visits — Sees paywall banner with price, balance, and unlock button

  5. User Purchases — Clicks "Unlock for X Points"

  6. Payment Processed — Points deducted from buyer, added to author

  7. Access Granted — Thread content reveals immediately; user can view anytime

Compatibility & Requirements
  • MyBB Version: 1.8.x

  • Required Plugin: NewPoints (any recent version)

  • PHP: 5.6+

  • Database: MyISAM or InnoDB supported

Configuration
All settings are found in Admin CP → Plugins → Paid Threads Settings:
Setting
Default
OptionsEnable Paid Threads
Yes
Yes/No
Minimum Price
1
Any number
Maximum Price
0 (unlimited)
0 = no limit
Excluded Groups
4,6
Comma-separated group IDs
Author Views Free
Yes
Yes/No
Currency Label
Points
Any text

Database Tables
The plugin creates two tables:
  • paid_threads — Stores thread ID, price, and creation timestamp

  • paid_threads_purchases — Logs all purchases (user, thread, amount, date)
Both tables include proper indexing and UNIQUE constraints for performance and data integrity.

Technical Highlights
Hook-based architecture — No template modifications needed
Direct CSS injection — Bypasses theme limitations
Efficient queries — Minimal database load
Error handling — Graceful fallbacks for missing NewPoints
Modular functions — Easy to understand and extend
Settings backfill — Supports seamless plugin upgrades

Support & Updates
For issues, feature requests, or updates, visit:
https://hackers.krd
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Rex Digital Shop - Paid Usergroup Subscriptions MyBB.de Bot 15 4.878 13.10.2022, 22:55
Letzter Beitrag: MyBB.de Bot
  MySubscriptions - Paid Usergroup Subscriptions MyBB.de Bot 0 1.740 27.04.2015, 01:20
Letzter Beitrag: MyBB.de Bot