Extensions Database 3.2 / 3.3 / 4.0 ⇒ 3.3 & 4.0 Topic Image

3.2 & 3.3 & 4.0
User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6769
Joined: Jan 13th, '14, 20:45

Topic Image

Post by dmzx »

Extension Name: Topic Image
Author: dmzx & martin

Special thanks to: clight77 for making this development possible.

Extension Description:
Topic image on index extension.

[travis]dmzx/Topic-Image[/travis]


- 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:
Image

Image

Image

Extension Download:
…

Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `topicimage`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. 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
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Topic Image` under the Disabled Extensions list, and click its `Enable` link.
Last edited by dmzx on Oct 4th, '26, 06:28, edited 1 time in total.
Reason: Updated to version 1.0.6

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6769
Joined: Jan 13th, '14, 20:45

Re: Topic Image

Post by dmzx »

First post taken....

User avatar

clight77
Donator
Donator
Posts: 513
Joined: Sep 24th, '15, 14:23

Re: Topic Image

Post by clight77 »

Thanks, I like it :)
Suits my site :)

User avatar

clight77
Donator
Donator
Posts: 513
Joined: Sep 24th, '15, 14:23

Re: Topic Image

Post by clight77 »

Just a suggestion.
I think ext could have a auto prune function in ACP for the oldest as it seems after 1000 - 1500 images site tends to slow down.

Possible to do ?

Cheers :

User avatar

Hamidouki-dz
Users
Users
Posts: 164
Joined: Sep 1st, '18, 09:26

Re: Topic Image

Post by Hamidouki-dz »

Hello
does the extension function on phpbb version 3.2.7
Thanks

User avatar

Sniper_E
VIP
VIP
Posts: 1164
Joined: Oct 14th, '14, 17:01

Re: Topic Image

Post by Sniper_E »

clight77 wrote: Feb 27th, '21, 16:17Just a suggestion.
Sniper_E wrote: Feb 27th, '21, 16:38Just a suggestion.
You should update your phpbb version 3.2.7 to 3.3.3
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6769
Joined: Jan 13th, '14, 20:45

Re: Topic Image

Post by dmzx »

Hamidouki-dz wrote: Mar 3rd, '21, 08:13 Hello
does the extension function on phpbb version 3.2.7
Thanks
No only: PHPBB_VERSION, '3.3.0', '>='

User avatar

Hamidouki-dz
Users
Users
Posts: 164
Joined: Sep 1st, '18, 09:26

Re: Topic Image

Post by Hamidouki-dz »

I have a lot of html code on my forum, and it is difficult to update it otherwise I will have a lot of problems fixing the errors.

User avatar

martin
Admin
Admin
Posts: 5143
Joined: Apr 6th, '14, 14:12

Re: Topic Image

Post by martin »

Then you just learnt a lesson dont edit core files.
Image

User avatar

Sniper_E
VIP
VIP
Posts: 1164
Joined: Oct 14th, '14, 17:01

Re: Topic Image

Post by Sniper_E »

Dm has an extension that will allow you to make those core edits, then you can do phpbb updates and still have your ext core edits.

User avatar

faroud
Users
Users
Posts: 142
Joined: Jul 11th, '15, 09:08

Re: Topic Image

Post by faroud »

How does that work?
I uploaded it and turned it on
but don't see anything?

User avatar

clight77
Donator
Donator
Posts: 513
Joined: Sep 24th, '15, 14:23

Re: Topic Image

Post by clight77 »

faroud wrote: Mar 3rd, '21, 17:57 how does that work?
I uploaded it and turned it on
but don't see anything?
click on a forum or 2 that contains images then they should show, select forums in ACP Image Topic 1st.

Image

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6769
Joined: Jan 13th, '14, 20:45

Re: Topic Image

Post by dmzx »

I will post a how to use soon for this.

User avatar

martin
Admin
Admin
Posts: 5143
Joined: Apr 6th, '14, 14:12

Re: Topic Image

Post by martin »

Select the forums you want to get images from and then click on grab now button.

You can also set group permissions to grab images this will update images also as members surf your board.

Note it only works on img tags not attachments.
Screenshot from 2021-03-03 20-09-11.png
Screenshot from 2021-03-03 20-12-16.png
You do not have the required permissions to view the files attached to this post.

User avatar

umi
Users
Users
Posts: 89
Joined: Aug 5th, '19, 12:18

Re: Topic Image

Post by umi »

Spanish Language
es.zip
:beers: :beers: :beers:
You do not have the required permissions to view the files attached to this post.