Vor 2 Stunden
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 & ManagementFlexible Pricing Controls
- 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
User Access Management
- 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
Visual Design
- 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
Forum Display
- 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)
Admin Control
- Lock badge shown on thread list next to thread title
- Displays price of each paid thread
- Identifies paid threads at a glance
Security
- 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
- 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
- Thread Creator — Posts a new thread and toggles "Make this a Paid Thread"
- Set Price — Enters the cost in NewPoints (respects min/max admin settings)
- Thread Published — Appears in forum with lock badge showing price
- User Visits — Sees paywall banner with price, balance, and unlock button
- User Purchases — Clicks "Unlock for X Points"
- Payment Processed — Points deducted from buyer, added to author
- 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:Both tables include proper indexing and UNIQUE constraints for performance and data integrity.
- paid_threads — Stores thread ID, price, and creation timestamp
- paid_threads_purchases — Logs all purchases (user, thread, amount, date)
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