Compatible XF 2.x versions 2.0 2.1 2.2 2.3
WP Seasonal Logo Rotator (Auto-Scan Hack)
A lightweight template hack to automatically rotate forum logos for seasons, events, or subtle brand refreshes simply by dropping images into a folder.
No add-ons.
No filename editing.
No maintenance.
What This Does
1. Create a logo folder
Create this folder on your server:
Upload your logos there.
Supported formats: webp, png, jpg, jpeg, gif, svg
All logos should be the same dimensions.
Example:
2. Add list.php
Create list.php inside the same folder.
Optional check:
3. Add CSS
Admin Panel → Appearance → Styles → Templates → extra.less
Adjust width/height to match your logo.
4. Add JavaScript
Admin Panel → Appearance → Templates → PAGE_CONTAINER
Paste after {$ldJsonHtml|raw}
Notes
Disclaimer
This is a simple template hack, not an add-on.
Use only if you are comfortable exposing logo filenames via list.php.
Done. Upload logos → refresh page → logo rotates automatically.
A lightweight template hack to automatically rotate forum logos for seasons, events, or subtle brand refreshes simply by dropping images into a folder.
No add-ons.
No filename editing.
No maintenance.
What This Does
- Scans a logo folder automatically
- Selects one image at random on each page load
- Updates instantly when images are added or removed
- Ideal for seasonal or event-based branding
1. Create a logo folder
Create this folder on your server:
Code:
You must log in to view
(1 lines)
Upload your logos there.
Supported formats: webp, png, jpg, jpeg, gif, svg
All logos should be the same dimensions.
Example:
Code:
You must log in to view
(5 lines)
2. Add list.php
Create list.php inside the same folder.
PHP:
You must log in to view
(14 lines)
Optional check:
Code:
You must log in to view
(1 lines)
3. Add CSS
Admin Panel → Appearance → Styles → Templates → extra.less
CSS:
You must log in to view
(18 lines)
Adjust width/height to match your logo.
4. Add JavaScript
Admin Panel → Appearance → Templates → PAGE_CONTAINER
Paste after {$ldJsonHtml|raw}
HTML:
You must log in to view
(22 lines)
Notes
- Logo changes on each page load
- Clear browser cache after setup
- Mobile sizing may need adjustment in extra.less
- list.php exposes image filenames only
Disclaimer
This is a simple template hack, not an add-on.
Use only if you are comfortable exposing logo filenames via list.php.
Done. Upload logos → refresh page → logo rotates automatically.
Attachments