Banner Management
Overview
The Banner Management page is the central hub for viewing, managing, and organizing all banner advertisements in ComusThumbz. It provides a card-based grid display of banners with filtering, searching, performance statistics (impressions, clicks, CTR), and quick actions for editing, copying, testing, and deleting banners. The page supports both image and HTML banner types.
Location: Navigate to this page via Admin Panel → Advertising → Banner Management or access directly via ct/admin/bannermanagement.php
[Screenshot: banner-management-main-interface]
Getting to This Page
Navigate to Admin Panel → AdvertisingClick Banner Management or Banners link
- Alternatively, access directly via
ct/admin/bannermanagement.php
This page displays all banners across all sponsors and zones. Use the filters to narrow down to specific sponsors, placements, or statuses.
System Requirements
This page requires the banner advertising system to be configured with sponsors, banner zones, and categories. Banners can be image files (uploaded or hotlinked) or HTML content.
PHP Requirements
Required PHP Extensions
Required PHP Functions
Folder Permissions
Network Requirements
Features & UI Elements
Page Header
[Screenshot: banner-management-header]
Navigation Buttons
[Screenshot: banner-management-navigation]
Filter Controls
[Screenshot: banner-management-filters]
Banner Cards Grid
[Screenshot: banner-management-grid]
Displays banners in a responsive card grid (auto-fill, min 350px):
Card Header:
Action Buttons:
Banner Preview:
Banner Info Grid:
Statistics:
Categories:
Shows up to 3 category tags with "+N more" if additional categories assigned.
Banner Preview Modal
[Screenshot: banner-management-preview-modal]
Clicking a banner preview opens a fullscreen modal:
For Image Banners:
- Full-size image display
- Click anywhere to close
For HTML Banners:
- HTML content rendered with click URL
- Shows click URL and dimensions
- Click outside to close
Pagination
[Screenshot: banner-management-pagination]
Status Badges
Step-by-Step Usage
Viewing All Banners
- Navigate to Admin Panel → Advertising → Banner Management
- Banners load automatically in grid view
- Scroll to view all banners
- Use pagination for large banner collections
Searching for Banners
- Type in the Search box
- Search matches banner title or sponsor name
- Results update automatically after 500ms
- Clear search box to show all banners
Filtering Banners
- Select a Sponsor from the dropdown to show only their banners
- Select a Placement to show banners for a specific zone
- Select a Status to filter by active/inactive/etc.
- Combine filters for precise results
- Pagination resets to page 1 when filters change
Copying a Banner
- Find the banner you want to copy
- Click the Copy button (orange)
- Redirected to addbanner.php with pre-filled data
- Title becomes "[Original Title] (Copy)"
- Status set to "inactive" by default
- Modify any fields and save as new banner
Editing a Banner
- Find the banner to edit
- Click the Edit button (green)
- Redirected to addbanner.php?id=[bannerid]
- Make changes and save
Testing a Banner Click
- Find the banner to test
- Click the Test button (blue)
- Confirmation dialog shows click URL
- Click OK to open URL in new tab
- Test click is tracked and statistics updated
- Banner stats refresh automatically
Deleting a Banner
- Find the banner to delete
- Click the Delete button (red)
- Confirm deletion in dialog
- Banner and associated file are permanently deleted
Deleting a banner is permanent and cannot be undone. The physical image file (if uploaded) will also be deleted from the server.
Previewing a Banner
- Click on the banner preview image/HTML area
- Modal opens with full-size preview
- For HTML banners, shows rendered content and metadata
- Click anywhere to close the modal
AJAX Actions
The page uses POST requests with CSRF protection:
Troubleshooting
Common Errors
"Invalid CSRF token"
Cause: Session expired or token mismatch
Solution:
- Refresh the page to get new CSRF token
- Clear browser cookies if issue persists
- Check session configuration
"Failed to delete banner"
Cause: Database error or file permission issue
Solution:
- Check database connection
- Verify images/banners/ folder has write permissions
- Check if bannerid exists
Banners not loading
Cause: AJAX request failed
Solution:
- Check browser console for JavaScript errors
- Verify database connection
- Check PHP error logs
Banner images not displaying
Cause: Missing files or incorrect paths
Solution:
- Verify images/banners/ folder exists
- Check filepath in tblBannerAssets
- Confirm files exist on server
- For hotlinks, verify external URLs are accessible
Performance Issues
For sites with many banners:
- Use filters to narrow results
- Add database indexes on frequently queried columns
- Consider archiving old/expired banners
- Implement lazy loading for banner images
Translatable Strings
The following strings should be added to backendtranslations.md:
bannermanagementtitle = "Banner Management"
bannermanagementbreadcrumb = "Banner Management"
bannermanagementsubtitle = "Manage banner assets, placements, and performance tracking"
bannermanagementsponsors = "Sponsors"
bannermanagementbanners = "Banners"
bannermanagementaddbanner = "Add Banner"
bannermanagementbannerzones = "Banner Zones"
bannermanagementsubsponsors = "Sub-Sponsors"
bannermanagementstatistics = "Statistics"
bannermanagementsearch = "Search banners..."
bannermanagementallsponsors = "All Sponsors"
bannermanagementallplacements = "All Placements"
bannermanagementallstatus = "All Status"
bannermanagementstatusactive = "Active"
bannermanagementstatusinactive = "Inactive"
bannermanagementstatuspaused = "Paused"
bannermanagementstatusscheduled = "Scheduled"
bannermanagementstatusexpired = "Expired"
bannermanagementaddnewbanner = "Add New Banner"
bannermanagementnobanners = "No banners found"
bannermanagementcreatefirst = "Click \"Add New Banner\" to create your first banner."
bannermanagementtypeimage = "IMAGE"
bannermanagementtypehtml = "HTML"
bannermanagementcopy = "Copy"
bannermanagementedit = "Edit"
bannermanagementtest = "Test"
bannermanagementdelete = "Delete"
bannermanagementzone = "Zone"
bannermanagementdimensions = "Dimensions"
bannermanagementstatus = "Status"
bannermanagementimpressions = "Impressions"
bannermanagementclicks = "Clicks"
bannermanagementctr = "CTR"
bannermanagementmorecategories = "+{count} more"
bannermanagementhtmlbanner = "HTML Banner"
bannermanagementhtmlpreview = "HTML Banner Preview"
bannermanagementclickurl = "Click URL"
bannermanagementnotset = "Not set"
bannermanagementauto = "Auto"
bannermanagementprevious = "Previous"
bannermanagementnext = "Next"
bannermanagementconfirmdelete = "Are you sure you want to delete this banner? This action cannot be undone."
bannermanagementtestclick = "Test click for \"{title}\"?\n\nThis will open: {url}"
bannermanagementtesttracked = "Test click tracked!"
bannermanagementerrorloading = "Error loading banners"
bannermanagementerrordeleting = "Error deleting banner"
bannermanagementdeletedsuccess = "Banner deleted successfully"
bannermanagementloading = "Loading banners..."
Version History
Related Documentation
- Add Banner - Creating and editing banners
- Banner Zones - Managing banner placements
- Sponsors Management - Managing sponsors
- Sub-Sponsors - Managing sub-sponsors
- Statistics Dashboard - Viewing analytics