Resource icon

[FF] Showcase Enhancements 1.2.12

No permission to download
Properly sets prefix when using publish as draft.
Added two new permissions to items:

1691603250310.png



This allows you to separate item editing from attachment editing.

Error shown if "Delete own item attachments" is No/Never
1691603257817.png



Error shown if allowed, but time limit expired
1691603264956.png
The new version of Showcase brought in some new templates which needed to be modified for this add-on to correctly work.

The minimum Showcase version is now : 3.2.28
Changed "Item Quick Reply" from a checkbox to a dropdown.

1685077956691.webp


"Bottom of item page" will appear above where the built in SC comments would be if you had them enabled.
"Directly below item" is as it sounds ;)

Bug Fix - Drafts weren't being cleared properly on submission.
Added a new option to make a quick reply box appear on the main item page for items that have a linked discussion thread.

1685033333354.webp


Anything typed in here, will be added as a reply to the discussion thread (and then redirected there after).

1685033419867.webp
  • Like
Reactions: Frode789
Removed the hardcoded CSS from the element and put everything in a ff_se_threadthumbnail.less template.

Also set the default CSS background position to "center" - so everything looks a bit nicer now.
Added a new option to replace the user's avatar on the thread listing page with the cover image thumbnail of the Showcase Item on a related discussion thread.

1684588699653.webp


New option is found at the bottom of the Showcase options in the admin panel:

1684588752406.webp


If you want to change how they look (for example to remove the border radius), you can edit the class scThreadThumbnail in your extra.less.
  • Like
Reactions: Mouth
Fixed bug where you couldn't disable cover image generation (size wouldn't accept 0).
Fixed bug where rebuild could throw error on invalid cover attachments.

Changed default cover size to 0 (so disabled on first install)
Ok so I shouldn't have been lazy yesterday, I've now updated this to use template replacements so cover image thumbnails are now linked directly in the page (no 301 redirects anymore) - this will speed things up.

This means you can still go to the /cover-image url to show the original full size one (which I think is quite useful)

Also added a new CLI job xf-rebuild:ff-se-xa-sc-items-cover-image so you can rebuild them all from the command line - thank to @Mouth.

Oh and if you are enabling the cover thumbnails on an existing site, you will need to run one of the rebuilds (CLI or admin area) otherwise Showcase will be linking to un-generated images.
  • Like
Reactions: Mouth
Added feature to generate thumbnails (or reduced size images) from the cover images which are then delivered from the /data folder instead of /internal_data (so can easily be edge cached).

The default Showcase method is to show the full size attachment as the cover image, which means possible huge file downloads on the index pages and widgets.

You can now use a new option to set the max size for the generated thumbnail.

1675195283707.webp


As there are so many instances of /cover-image in Showcase, I decided just to override the controller and 301 redirect to the new thumbnail - a little overhead there but nothing much :)

Once updated/installed - use the new rebuild cache task to generate thumbnails for existing items.

1675195305291.webp
  • Like
Reactions: Mouth and Frode789
Back
Top Bottom