Creator Posts
Creator Posts Administration (creatorpostsadmin.php)
Overview
The Creator Posts Administration page (creatorpostsadmin.php) is the central management interface for all creator-posted content in the ComusThumbz platform. This page allows administrators to browse, filter, moderate, and perform bulk actions on creator posts. It features both Card View and List View display modes, advanced filtering capabilities, bulk status management, and direct integration with creator profiles and media management.
Location: Navigate to Admin Panel → Creators → Creator Posts
[Screenshot: creator-posts-admin-main-view]
System Requirements
PHP Extensions Required
PHP Functions Required
PHP Version
- Minimum: PHP 8.0+
- Recommended: PHP 8.2+
php.ini Settings
# For large post collections
memorylimit = 256M
maxexecutiontime = 120
maxinputvars = 3000
postmaxsize = 10M
Performance Note: With 50,000+ creator posts, consider increasing
memorylimit to 512M and using List View for faster page loads.
Installation Requirements
Database Tables Used
Config Variables Required
From ct/dat/config.inc.php:
// Database connection
$dbhost = 'localhost';
$db = 'admincomus';
$dbuser = 'youruser';
$dbpasswd = 'yourpassword';
// Site paths (for avatar URLs)
$domain = 'yourdomain.com';
$sitepath = '/ct';
File Dependencies
PHP Includes:
ct/admin/adminauth.php- Authenticationct/dat/config.inc.php- Database configurationct/includes/header.php- Page headerct/includes/annotateftr.php- Page footer
External CSS:
- Font Awesome 6.5.1 (CDN) - Icons
Features & UI Elements
Stats Dashboard
[Screenshot: creator-posts-stats-dashboard]
Six statistic cards display real-time post counts:
Filter Controls
[Screenshot: creator-posts-filter-controls]
Bulk Actions Bar
[Screenshot: creator-posts-bulk-actions]
View Toggle
Column Customization (List View)
[Screenshot: creator-posts-column-customizer]
Click to expand the column customizer accordion:
Available Columns:
- Select (mandatory), Post ID, Creator (mandatory), Content (mandatory)
- Type, Lock Type, Status (mandatory), Media Count
- Views, Likes, Comments, Created Date, Actions (mandatory)
Post Card View
[Screenshot: creator-posts-card-detail]
Each post card displays:
Card Header
- Checkbox - Selection for bulk actions
- Creator Avatar - Profile image with green border
- Creator Name - Display name with verified badge (✓)
- Username - @username format
- Lock Badge - FREE (green), PAID (yellow), SUBSCRIBERS (blue)
- Status Badge - ACTIVE (green), SUSPENDED (red), DELETED (gray)
Card Content
- Post text content (truncated to 150 characters)
- "No text content" indicator for media-only posts
Card Metadata
Card Actions
List View
[Screenshot: creator-posts-list-view]
Compact table format with:
Default Columns
- Select, Post ID, Creator, Content, Type, Lock Type, Status, Views, Likes, Created, Actions
Table Features
- Sortable columns (client-side)
- Truncated content with ellipsis
- Creator avatar thumbnails
- Verified badge indicators
- Color-coded status and lock type badges
Step-by-Step Usage
Finding Posts by Creator
- Navigate to Admin Panel → Creators → Creator Posts
- Enter creator username or name in "Creator Search" field
- Click Filter
- View matching posts
Moderating Posts
- Search for posts to review
- Review post content and media
- For each post needing action:
- Check the checkbox to select
- Or use quick actions in card footer
- Select bulk action (Activate/Suspend/Delete)
- Click Apply
Filtering by Lock Type
- Open the page
- Select lock type from dropdown:
- Free - Posts available to all users
- Paid - PPV posts requiring token purchase
- Subscribers Only - Posts for subscribers only
- Click Filter
Viewing Post Media
- Find the post you want to inspect
- Click View Media button
- Opens
creatormediaadmin.php?postid={id} - All media for that post displayed
Customizing List View Columns
- Switch to List View
- Click accordion header "Customize List Columns"
- Check/uncheck columns to show/hide
- Drag columns to reorder
- Click Apply
- Settings saved to localStorage
Bulk Actions
Activate Selected
Sets status to 'active' for all selected posts. Posts become visible to users.
Suspend Selected
Sets status to 'suspended' for all selected posts. Posts hidden from users but retained in database.
Delete Selected
Sets status to 'deleted' for all selected posts. Soft delete - records remain in database.
All bulk actions are protected by CSRF tokens. Invalid tokens will be rejected with "Invalid CSRF token" error.
Troubleshooting
Common Errors
"Invalid CSRF token"
Cause: Session expired or page opened in multiple tabs
Solution: Refresh the page and try again
"Connection failed"
Cause: Database connection error
Solution: Verify database credentials in ct/dat/config.inc.php
Posts not appearing after filter
Cause: Filter criteria too restrictive
Solution: Click Reset to clear all filters
Avatar images not loading
Cause: Incorrect $sitepath or $domain configuration
Solution: Verify paths in config.inc.php match your installation
Performance Issues
Page loads slowly with many posts
Solutions:
- Use List View instead of Card View
- Reduce records per page (20 instead of 100)
- Add specific filters to narrow results
- Ensure database indexes exist on
tblCreatorPosts
JavaScript Features
LocalStorage Keys
Client-Side Functions
Translatable Strings
The following strings should be added to backendtranslations.md:
creatorpostsadmintitle = "Creator Posts Management"
creatorpostsadminbreadcrumb = "Creator Posts"
creatorpoststotal = "Total Posts"
creatorpostsactive = "Active Posts"
creatorpostsviews = "Total Views"
creatorpostslikes = "Total Likes"
creatorpostsmerchandise = "Merchandise Posts"
creatorpostscomments = "Total Comments"
creatorpostsfilter = "Filter"
creatorpostsreset = "Reset"
creatorpostssearchcreator = "Search by creator username or name..."
creatorpostsalltypes = "All Types"
creatorpostsalllock = "All Lock Types"
creatorpostsallstatus = "All Status"
creatorpostsallposts = "All Posts"
creatorpostsmerchandiseonly = "Merchandise Only"
creatorpostsnomerchandise = "No Merchandise"
creatorpostsnewest = "Newest First"
creatorpostsoldest = "Oldest First"
creatorpostsmostviews = "Most Views"
creatorpostsmostlikes = "Most Likes"
creatorpostssearch = "Search posts..."
creatorpostsbulkactions = "Bulk Actions"
creatorpostsactivate = "Activate Selected"
creatorpostssuspend = "Suspend Selected"
creatorpostsdelete = "Delete Selected"
creatorpostsapply = "Apply"
creatorpostsselectall = "Select All"
creatorpostsdeselectall = "Deselect All"
creatorpostsselected = "post(s) selected"
creatorpostscardview = "Card View"
creatorpostslistview = "List View"
creatorpostscustomizecolumns = "Customize List Columns"
creatorpostsviewmedia = "View Media"
creatorpostsviewcomments = "View Comments"
creatorpostsviewcreator = "View Creator"
creatorpostsapiview = "API View"
creatorpostsnoposts = "No posts found"
creatorpostsadjustfilters = "Try adjusting your filters or search criteria."
creatorpostsshowing = "Showing"
creatorpostsof = "of"
creatorpostsposts = "posts"
Version History
Related Documentation
- Creator Media Administration (creatormediaadmin.md) - Media management
- User Details (userdetails.md) - Creator profile management
- Post Comments - Comment moderation