ComusThumbz ドキュメント
管理者ログイン

Model Management

Overview

The Model Management page is the central hub for managing all performer/model profiles in ComusThumbz. It provides comprehensive tools for creating, editing, searching, and organizing model records. Features include grid/table view switching, advanced filtering by multiple attributes, mass editing capabilities, AI-powered data enrichment, image management integration, and detailed analytics per model. This page serves as the primary interface for maintaining the model database that links to galleries and videos.

Location: Navigate to Admin Panel → Models or click the Dashboard Models card

[Screenshot: models-main-grid-view]


Getting to This Page

  1. Log into the Admin Panel at main.php
  2. Click Models in the navigation menu
  3. Or click the Models stat card on the Dashboard
  4. Direct URL: ct/admin/models.php

 

Note:
This page supports multiple view modes (Card/Table) and complex filtering. Your view preference and filter settings are preserved across sessions via localStorage.

 


System Requirements

 

Configuration Required:
This page requires the following system dependencies to function properly.

 

PHP Requirements

Requirement Minimum Recommended Notes
PHP Version 8.0 8.2+ Uses null coalescing, prepared statements
memorylimit 128M 256M For large model lists with analytics
maxexecutiontime 60 120 For bulk operations

Required PHP Extensions

Extension Required Purpose
mysqli Yes Database connectivity
session Yes View preferences, CSRF protection
json Yes JavaScript data serialization

Required PHP Functions

Function Required For Notes
fileexists() Image verification Check model images exist
jsonencode() JavaScript data export Core
numberformat() Statistics display Core
addslashes() JavaScript string escaping Core
urlencode() URL parameter encoding Core

Folder Permissions

Folder Permission Purpose
ct/images/models/ 755 (read) Model profile images

Features & UI Elements

Page Header

[Screenshot: models-page-header]

Element Description
Title "Model Management System" with users icon
Breadcrumb Dashboard → Models

AI Processing Banner

[Screenshot: models-ai-banner]

When models need AI processing, a dismissible banner appears:

Element Description
Count Display Shows X of Y models needing AI processing
Breakdown Number needing AI Image vs AI Update
Batch Process Button Links to aimodelbatchreview.php
Dismiss Button Hides banner for current session
Tip: The AI banner helps identify models missing data. Use "Batch Process" to efficiently update multiple models at once rather than processing them individually.

Controls Bar

[Screenshot: models-controls-bar]

Element Description
Search Input Search by name, alias, city, country, or tags
Search Button Execute search
Clear Search Reset search term (appears when searching)
Add New Model Form Text input + "Add New Model" button
Per Page Selector 10, 20, 50, 100, 200, 500, 1000 records per page

Selection Controls

[Screenshot: models-selection-controls]

Element Description
View Toggle Switch between Card View and Table View
Select All on Page Check all models on current page
Select All in Database Select all models matching current filters
Select None Deselect all
Delete Selected Delete all selected models (with confirmation)

Column Customizer (Table View)

[Screenshot: models-column-customizer]

An expandable accordion for table column configuration:

Feature Description
Drag to Reorder Drag column items to change display order
Check/Uncheck Show or hide individual columns
Yellow Items Mandatory columns (checkbox, name, actions)
Apply Button Save and apply column configuration
Reset to Default Restore default column layout

Available Columns:

  • Checkbox (mandatory), Image, Name (mandatory), Status, Age, Location
  • Gender, Ethnicity, Body Type, Hair Color, Eye Color
  • Galleries, Videos, Views, Rating, Favorites
  • AI Processed, Image Processed, Actions (mandatory)

Sort & Filter Controls

[Screenshot: models-sort-filter]

Control Options
Sort By Name (A-Z/Z-A), Newest/Oldest, Popularity, Rating, Most Viewed, Age, Most/Least Galleries
Filter By All Models, Has Image, No Image, AI Updated, Not AI Updated
Clear All Filters Reset all filters (appears when filters active)

Advanced Filter Controls

[Screenshot: models-advanced-filters]

Two rows of attribute-based filters:

Row 1:

  • Gender (dynamically populated)
  • Body Type (dynamically populated)
  • Ethnicity (dynamically populated)
  • Country (dynamically populated)

 

Row 2:

  • Eye Color (dynamically populated)
  • Hair Color (dynamically populated)
  • Cup Size (dynamically populated)
  • Status (dynamically populated)
  • Apply Filters button

 

 

Note:
Filter dropdowns are populated dynamically from existing database values. If no models have a particular attribute value, that option won't appear.

 

Mass Edit Bar

[Screenshot: models-mass-edit-bar]

Appears when models are selected. Allows bulk editing of:

Field Description
Gender Update gender for all selected
Status Update status (Active, Inactive, Retired)
Body Type Update body type
Ethnicity Update ethnicity
Eye Color Update eye color
Hair Color Update hair color
Cup Size Update cup size
Pubic Hair Update pubic hair style
Country Update country
Tags Update tags
Popularity Score Update popularity score
Warning: Mass edit applies changes to ALL selected models. Leave fields blank to skip them. Changes cannot be undone.

Card View

[Screenshot: models-card-view]

Each model card displays:

Card Header Buttons

Button Description
AI Image Link to aiimageselector.php
Batch Image Link to aibatchimageselector.php
AI Update Link to aimodeldataupdate.php
Batch AI Link to aimodelbatchreview.php

Card Body

Element Description
Checkbox Selection for bulk operations
Model Image Profile image or "No Image" placeholder
Model Name Clickable to open edit modal
Gallery Badge Count of assigned galleries (left)
Video Badge Count of assigned videos (right)
Status & Age e.g., "Active • 25 years"
Location City, Country

Analytics Section

Metric Description
Impressions True impressions from tblContentImpressions
Clicks True clicks from tblClickTracking
CTR Click-through rate percentage
Button Description
Upload/Change Link to uploadmodelimage.php
Delete Delete model (with confirmation)

Table View

[Screenshot: models-table-view]

Compact list format with customizable columns:

Default Columns

Column Description
Checkbox Selection checkbox
Image Thumbnail with AI buttons
Name Clickable to edit
Status Active/Inactive badge
Age Numerical age
Location City, Country
Galleries Gallery count
Videos Video count
AI Processed ✓ or ✗ indicator
Image Processed ✓ or ✗ indicator
Actions Upload, AI Image, AI Update, Delete buttons

Row Highlighting

Models needing AI processing are highlighted with a subtle yellow background to help identify incomplete records.


Edit Modal

[Screenshot: models-edit-modal]

The edit modal opens when clicking a model name. Organized into sections:

Basic Information

Field Type Description
Model Name Text (required) Primary display name
Alias Text Alternative names
Cam Score Number (decimal) Webcam performance score
Gender Text Female, Male, Trans, Couple, etc.

Physical Attributes

Field Type Description
Body Type Text Slim, BBW, Curvy, Athletic, etc.
Ethnicity Text Caucasian, Latina, Asian, etc.
Eye Color Text Blue, Brown, Green, Hazel, etc.
Hair Color Text Blonde, Brunette, Redhead, etc.
Weight Number Weight in kg
Height Number Height in cm
Age Number Current age
Date of Birth Date Birthdate
Measurements Text e.g., 34-24-34
Cup Size Text A, B, C, D, DD, etc.
Pubic Hair Text Shaved, Natural, Landing Strip, etc.

Location & Contact

Field Type Description
City Text City name
Country Text Country name
Website URL URL Personal/official website
Direct Feed URL URL Live feed URL

Statistics & Settings

Field Type Description
Rating Number (0-10) Average rating
Rating Count Number Number of ratings
Views Number Total views
Comments Number Total comments
Subscribers Number Subscriber count
Popularity Score Number (decimal) Popularity metric
Status Text Active, Inactive, Retired, etc.
Tags Text Comma-separated tags

Image Settings

Field Type Description
Image Width Number (50-2000) Target image width
Image Height Number (50-2000) Target image height

Additional Information

Field Type Description
Social Media Links Textarea One link per line
iFrame Embed Code Textarea Full iframe HTML
About Me Textarea Biography/description

Step-by-Step Usage

Adding a New Model

  1. Navigate to Admin Panel → Models
  2. In the Controls Bar, enter the model name in the "Enter new model name" field
  3. Click Add New Model
  4. Success message confirms creation
  5. The new model appears in the list with default values
  6. Click the model name to open the edit modal and add details

Editing a Model

  1. Find the model in card or table view
  2. Click the model name
  3. Edit modal opens with all current values
  4. Modify desired fields in each section
  5. Click Save Changes
  6. Modal closes and list refreshes

Uploading a Model Image

Method 1: Manual Upload

  1. Click Upload or Change button on model card
  2. Redirected to uploadmodelimage.php
  3. Select image file
  4. Crop to target dimensions
  5. Save cropped image

 

Method 2: AI Image Selector

  1. Click AI Image button on model card
  2. AI searches multiple sources for matching images
  3. Select best match
  4. Crop and save

 

Method 3: Batch Image Selector

  1. Click Batch Image button
  2. Process multiple models in sequence
  3. Select and crop images for each

 

Using AI Data Update

  1. Click AI Update button on model card
  2. AI queries external databases (CamModelDB, CamsFinder, etc.)
  3. Review suggested data
  4. Accept or modify suggestions
  5. Save updates

Mass Editing Models

  1. Select models using checkboxes
  • Click individual checkboxes, or
  • Click Select All on Page, or
  • Click Select All in Database
  1. Mass Edit Bar appears showing selected count
  2. Fill in only the fields you want to change
  3. Click Apply Changes
  4. All selected models updated

Deleting Models

Single Model:

  1. Click Delete button on model card
  2. Confirm deletion in popup
  3. Model permanently removed

 

Multiple Models:

  1. Select models to delete
  2. Click Delete Selected
  3. Confirm deletion
  4. All selected models removed

 

 

Warning:
Deleting a model does NOT delete the associated galleries or videos. Content remains but loses the model association. Consider reassigning content before deletion.

 

Filtering Models

Quick Filters:

  1. Use "Filter by" dropdown for common filters:

 

  • Has Image / No Image
  • AI Updated / Not AI Updated

 

Advanced Filters:

  1. Expand the Advanced Filter section
  2. Select values from attribute dropdowns
  3. Click Apply Filters
  4. Grid/table shows filtered results
  5. Use Clear All Filters to reset

 

Sorting Models

  1. Use "Sort by" dropdown
  2. Options include: Name, Date, Popularity, Rating, Views, Age, Gallery count
  3. Grid/table reorders immediately

Troubleshooting

Common Errors

 

Error:
"Connection failed"


Cause: Database connection error
Solution: Verify database credentials in ct/dat/config.inc.php

 

 

Error:
"Error updating model"


Cause: SQL UPDATE query failed
Solution:

  1. Check for duplicate modelname (unique constraint)
  2. Verify database connection
  3. Check for required fields

 

 

Error:
Model image not displaying


Cause: Image file missing or path incorrect
Solution:
Verify file exists in ct/images/models/

  1. Check modelimage column has correct filename
  2. Verify web server has read permissions

 

 

Error:
Mass edit not applying changes


Cause: No models selected or form not submitted properly
Solution:

  1. Ensure models are actually selected (checkboxes checked)
  2. At least one field must have a value
  3. Click "Apply Changes" button (not just filling fields)

 

 

Warning:
Slow page load with many models


Solutions:

  1. Reduce records per page (20-50 instead of 1000)
  2. Use Table View instead of Card View
  3. Apply filters to reduce result set
  4. Ensure database indexes exist on tblModels

 

 

Warning:
AI processing not marking models as processed


Cause: AI tools not completing successfully
Solution:

  1. Check AI tool logs for errors
  2. Verify license key is valid
  3. Ensure network connectivity to AI services

 


JavaScript Features

LocalStorage Keys

Key Purpose
modelsViewPreference Stores view preference (card/table)
modelsColumnSettings Stores column configuration for table view

Session Storage Keys

Key Purpose
aiBannerDismissed Remembers if AI banner was dismissed

Client-Side Functions

Function Purpose
setView(viewType) Toggle between card and table views
toggleAccordion(bodyId, headerElement) Expand/collapse accordion panels
loadColumnSettings() Load saved column configuration
renderColumnCustomizer() Render draggable column items
applyColumnSettings() Save and apply column preferences
resetColumnSettings() Reset to default column layout
renderDynamicTable() Generate table HTML based on column settings
renderCell(columnId, model) Generate cell HTML for specific column
openEditModal(modelId) Open edit modal via AJAX
closeModal() Close edit modal
selectAll(scope) Select all models ('page' or 'all')
selectNone() Deselect all models
toggleMassEdit() Show/hide mass edit bar
submitMassEdit() Submit mass edit form
ConfirmDelete(id, name) Confirm and delete single model
confirmDeleteSelected() Confirm and delete selected models
dismissAiBanner() Dismiss AI processing banner

Translatable Strings

The following strings should be added to backendtranslations.md:

modelstitle = "Model Management System"
modelsbreadcrumb = "Models"
modelsaibannertitle = "AI Processing Recommended"
modelsaibannertext = "{count} of {total} models need AI processing"
modelsaibannerbreakdown = "{imagecount} need AI Image, {updatecount} need AI Update"
modelsbatchprocess = "Batch Process"
modelssearchplaceholder = "Search models..."
modelssearch = "Search"
modelsclearsearch = "Clear Search"
modelsaddnewplaceholder = "Enter new model name"
modelsaddnew = "Add New Model"
modelsperpage = "Models per page:"
modelsviewcontrols = "Model Selection & View Controls"
modelsviewcards = "Cards"
modelsviewtable = "Table"
modelscustomizecolumns = "Customize List Columns"
modelscolumndraginfo = "Drag items to reorder. Check/uncheck to show/hide columns. Yellow items are mandatory."
modelsapply = "Apply"
modelsresetdefault = "Reset to Default"
modelsselectallpage = "Select All on Page"
modelsselectalldb = "Select All in Database"
modelsselectnone = "Select None"
modelsdeleteselected = "Delete Selected"
modelssortby = "Sort by:"
modelssortnameasc = "Name (A-Z)"
modelssortnamedesc = "Name (Z-A)"
modelssortnewest = "Newest First"
modelssortoldest = "Oldest First"
modelssortpopularity = "Popularity"
modelssortrating = "Rating"
modelssortviews = "Most Viewed"
modelssortageasc = "Age (Young to Old)"
modelssortagedesc = "Age (Old to Young)"
modelssortgalleriesdesc = "Most Galleries"
modelssortgalleriesasc = "Least Galleries"
modelsfilterby = "Filter by:"
modelsfilterall = "All Models"
modelsfilterhasimage = "Has Image"
modelsfilternoimage = "No Image"
modelsfilteraiupdated = "AI Updated"
modelsfilternotaiupdated = "Not AI Updated"
modelsclearfilters = "Clear All Filters"
modelsadvancedfiltersgender = "Gender:"
modelsadvancedfiltersbodytype = "Body Type:"
modelsadvancedfiltersethnicity = "Ethnicity:"
modelsadvancedfilterscountry = "Country:"
modelsadvancedfilterseyecolor = "Eye Color:"
modelsadvancedfiltershaircolor = "Hair Color:"
modelsadvancedfilterscupsize = "Cup Size:"
modelsadvancedfiltersstatus = "Status:"
modelsapplyfilters = "Apply Filters"
modelsmassedittitle = "Mass Edit"
modelsmasseditselected = "Selected Models"
modelsmasseditleaveblank = "Leave blank for no change"
modelsmasseditapply = "Apply Changes"
modelsmasseditcancel = "Cancel"
modelstotal = "Total Models:"
modelsedittitle = "Edit Model Details"
modelssectionbasic = "Basic Information"
modelssectionphysical = "Physical Attributes"
modelssectionlocation = "Location & Contact"
modelssectionstats = "Statistics & Settings"
modelssectionimage = "Image Settings"
modelssectionadditional = "Additional Information"
modelssavechanges = "Save Changes"
modelscancel = "Cancel"
modelsnoimage = "No Image"
modelscardaiimage = "AI Image"
modelscardbatchimage = "Batch Image"
modelscardaiupdate = "AI Update"
modelscardbatchai = "Batch AI"
modelscardupload = "Upload"
modelscardchange = "Change"
modelscarddelete = "Delete"
modelsanalyticstitle = "Analytics"
modelsanalyticsimpressions = "Impressions"
modelsanalyticsclicks = "Clicks"
modelsanalyticsctr = "CTR"
modelsnomodels = "No models found"
modelsnomodelsfiltered = "No models match your current filters"
modelsclearandretry = "Clear All Filters"
modelsconfirmdelete = "Are you sure you want to delete this model?"
modelsconfirmdeleteselected = "Are you sure you want to delete all selected models? This cannot be undone."
modelssuccessadded = "Model added successfully!"
modelssuccessupdated = "Model updated successfully!"
modelssuccessdeleted = "Model deleted successfully!"
modelserrorduplicate = "A model with this name already exists"

Version History

Version Date Changes
1.0 2024-10 Initial release with basic model management
1.1 2024-11 Added Card/Table view toggle, column customization
1.2 2024-12 Added AI integration buttons, batch processing links
1.3 2025-01 Added advanced filters, mass edit, analytics section