Creator Media
Creator Media Administration (creatormediaadmin.php)
Overview
The Creator Media Administration page (creatormediaadmin.php) is the central management interface for all media files uploaded by creators in the ComusThumbz platform. This page allows administrators to browse, filter, and monitor creator media including images, videos, and audio files. It displays processing status, CDN URLs, storage information, and provides direct access to view media files. Features include Card View and List View display modes, processing status tracking, lightbox image preview, and integration with the storage server system.
Location: Navigate to Admin Panel → Creators → Creator Media
[Screenshot: creator-media-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 media collections
memorylimit = 256M
maxexecutiontime = 120
Note: This page is read-only and does not perform media processing. It displays media that was processed by
ct/admin/cron/creatormediaprocessor.php.
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 header
External CSS:
- Font Awesome 6.5.1 (CDN) - Icons
Features & UI Elements
Stats Dashboard
[Screenshot: creator-media-stats-dashboard]
Five statistic cards display real-time media counts:
Filter Controls
[Screenshot: creator-media-filter-controls]
View Toggle
Column Customization (List View)
[Screenshot: creator-media-column-customizer]
Click to expand the column customizer accordion:
Available Columns:
- Thumbnail (mandatory), Media ID, Type (mandatory), Status (mandatory)
- Creator (mandatory), Post ID, Dimensions, File Size, Duration
- Lock Type, Storage, Created Date, Actions (mandatory)
Media Card View
[Screenshot: creator-media-card-detail]
Each media card displays:
Preview Section
- Image Preview - Actual thumbnail from CDN (images only)
- Video Icon - Blue video icon placeholder
- Audio Icon - Green music icon placeholder
- Type Badge - IMAGE (orange), VIDEO (blue), AUDIO (green)
- Processing Badge - COMPLETED (green), PENDING (yellow), PROCESSING (blue), FAILED (red)
Creator Information
- Avatar - Creator profile image
- Creator Name - Display name
- Username - @username format
Media Metadata
CDN URLs Section
- Primary CDN - Direct CDN URL from
tblCreatorPostMedia.cdnurl - Storage CDN - URL from
tblStorageFileLocations(if synced)
CDN URLs are truncated to 50 characters in the display. Click to open full URL in new tab.
Card Actions
Processing Status Meanings
ct/logs/creatormediaprocessor/ for error details.List View
[Screenshot: creator-media-list-view]
Compact table format with:
Default Columns
- Thumbnail, Type, Status, Creator, Post ID, Dimensions, File Size, Created, Actions
Table Features
- Sortable columns (client-side)
- Thumbnail previews (60x40 pixels)
- Placeholder icons for non-image media
- Color-coded status and type badges
- Truncated URLs with ellipsis
Lightbox Feature
[Screenshot: creator-media-lightbox]
For image files, clicking "Open File" displays a full-screen lightbox:
Step-by-Step Usage
Finding Media by Creator
- Navigate to Admin Panel → Creators → Creator Media
- Enter creator username or name in "Creator Search" field
- Click Filter
- View all media from that creator
Filtering by Processing Status
- Open the page
- Select status from "Processing Status" dropdown:
- Completed - Successfully processed
- Pending - Awaiting processing
- Processing - Currently being processed
- Failed - Processing errors
- Click Filter
Viewing Media for a Specific Post
- From Creator Posts Admin, note the Post ID
- Navigate to Creator Media Admin
- Enter Post ID in the "Post ID..." field
- Click Filter
- All media for that post displayed
Shortcut: Click "View Media" button on any post card in Creator Posts Admin.
Checking CDN Status
- Filter by Processing Status = "Completed"
- Verify CDN URL is displayed in card
- Click URL to test accessibility
- If "Storage CDN" shows, media is synced to storage servers
Identifying Failed Media
- Select Processing Status = "Failed"
- Click Filter
- Note the Media IDs and Post IDs
- Check processor logs:
ct/logs/creatormediaprocessor/ - Reprocess if needed via cron job
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
Footer Statistics
Below the media grid/list, a summary shows:
Showing [X] of [Y] media items
Completed: [N] • Pending: [N] • Processing: [N] • Failed: [N]
This provides at-a-glance status breakdown without filtering.
Troubleshooting
Common Errors
"Connection failed"
Cause: Database connection error
Solution: Verify database credentials in ct/dat/config.inc.php
Media thumbnails not displaying
Cause: CDN URL empty or invalid, media not yet processed
Solution:
- Check processingstatus - if "pending", wait for cron
- If "failed", check processor logs
- Verify CDN configuration in storage settings
"No media found" when filtering by Post ID
Cause: Post has no media attachments, or Post ID doesn't exist
Solution: Verify Post ID in Creator Posts Admin first
Lightbox not opening for images
Cause: JavaScript error or CDN URL empty
Solution: Check browser console for errors; verify cdnurl has value
Performance Issues
Page loads slowly with many media items
Solutions:
- Use List View instead of Card View
- Reduce records per page (30 instead of 100)
- Add specific filters (creator, postid, status)
- Ensure database indexes exist on
tblCreatorPostMedia
Media Processing Issues
Media stuck in "Processing" status
Cause: Processor cron job not running or crashed
Solution:
- Verify cron is configured:
php /path/to/ct/admin/cron/sitecron.php - Check processor logs for errors
- Manually run:
php ct/admin/cron/creatormediaprocessor.php
JavaScript Features
LocalStorage Keys
Client-Side Functions
Related Cron Jobs
php /path/to/ct/admin/cron/sitecron.php
The sitecron.php automatically calls creatormediaprocessor.php when needed.Translatable Strings
The following strings should be added to backendtranslations.md:
creatormediaadmintitle = "Creator Media Management"
creatormediaadminbreadcrumb = "Media Management"
creatormediatotal = "Total Media"
creatormediaimages = "Images"
creatormediavideos = "Videos"
creatormediaaudio = "Audio"
creatormediatotalsize = "Total Size"
creatormediafilter = "Filter"
creatormediareset = "Reset"
creatormediasearchcreator = "Search by creator username or name..."
creatormediaalltypes = "All Media Types"
creatormediaallstatus = "All Status"
creatormediacompleted = "Completed"
creatormediapending = "Pending"
creatormediaprocessing = "Processing"
creatormediafailed = "Failed"
creatormedianewest = "Newest First"
creatormediaoldest = "Oldest First"
creatormedialargest = "Largest First"
creatormediasmallest = "Smallest First"
creatormediapostid = "Post ID..."
creatormediacardview = "Card View"
creatormedialistview = "List View"
creatormediacustomizecolumns = "Customize List Columns"
creatormediaviewpost = "View Post"
creatormediaviewcreator = "View Creator"
creatormediaopenfile = "Open File"
creatormedianomedia = "No media found"
creatormediaadjustfilters = "Try adjusting your filters or check back later."
creatormediashowing = "Showing"
creatormediaof = "of"
creatormediaitems = "media items"
creatormediaprimarycdn = "Primary CDN:"
creatormediastoragecdn = "Storage CDN:"
Version History
Related Documentation
- Creator Posts Administration (creatorpostsadmin.md) - Post management
- User Details (userdetails.md) - Creator profile management
- Storage Servers - CDN configuration
- Creator Media Processor - Processing cron job