Author: dmzx & martin
Special thanks to: clight77 for making this development possible.
Extension Description:
Topic image on index extension.
- Fixed: ACP settings page fatal-errored on phpBB 4.0.x (`Call to undefined function h_radio()`) — that helper was removed from 4.0.x core. The "location" radio group is now built directly, matching 3.3.x's own `h_radio()` markup, so it no longer depends on which core files happen to be loaded.
- Fixed: `composer.json` capped support at `<4.0.0`, contradicting the extension's actual 4.0.x compatibility work.
- Fixed: `grab_images()` built its forum filter via raw string concatenation; now uses `sql_in_set()` against an int-filtered forum list.
- Fixed: topic titles were unsanitized before landing in generated thumbnail filenames.
- Fixed: the index-page file listing hit the filesystem on every page load; now cached and invalidated on grab/clear/cron.
- Changed: `services.yml` rewritten to explicit arguments (no autowire/bind), for phpBB 3.3.x + 4.0.x.
- Fixed: thumbnails were always cropped to a square regardless of the configured width/height, so a non-square display box cut off part of the image. Thumbnails now fit the whole image inside the configured box, and the template centers it with flexbox.
- Note: existing thumbnails were generated with the old square crop — run Clear all -> Grab images in the ACP to regenerate them.
- Added WebP case.
- Code update.
- Added title to images option and colour option.
- Added width selection in APC.
- Added limit for images in topics.
- Added Cron for deleting and grabbing images.
- Code updates.
Screenshots:



Extension Download:
…
Installation:
- Download the latest release.
- Unzip the downloaded release, and change the name of the folder to `topicimage`.
- In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
- Copy the `topicimage` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
(your forum root)/ext/dmzx/topicimage/composer.json - Navigate in the ACP to `Customise -> Manage extensions`
- Look for `Topic Image` under the Disabled Extensions list, and click its `Enable` link.








