Attachment file names missing with thumbtails mode

For support and discussion related to templates and themes in phpBB 3.3.
Post Reply
undergroundpost
Registered User
Posts: 4
Joined: Sun Jun 20, 2021 5:00 pm

Attachment file names missing with thumbtails mode

Post by undergroundpost »

Hello
I Have phpbb 334 and default skin
Attachment files names are missing with thumbnails mode is on (when thumbnails are off, names of files are displayed)

Is it a bug, or a feature? :) I need resized thumbnails + displayed file names
Last edited by thecoalman on Tue Jun 22, 2021 9:51 am, edited 1 time in total.
Reason: Moved to Styles Support & Discussion
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Attachment file names missing with thumbtails mode

Post by Brf »

On this board, the filenames, size, and #-downloads is in the tooltip.
undergroundpost
Registered User
Posts: 4
Joined: Sun Jun 20, 2021 5:00 pm

Re: Attachment file names missing with thumbtails mode

Post by undergroundpost »

Brf wrote: Mon Jun 21, 2021 8:41 pm On this board, the filenames, size, and #-downloads is in the tooltip.
Thank you! So, board showed "filenames, size, and #-downloads" as hint, in thumbnails mode, and as text under attached image, when thumbnails mode is off. It is not obvious, may be its better to have option in acp for this data
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Attachment file names missing with thumbtails mode

Post by thecoalman »

A minor edit to the style will allow for this. Open styles/prosilver/template/attachment.html

Find:

Code: Select all

		<!-- IF _file.S_THUMBNAIL -->
		<dl class="thumbnail">
			<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" class="postimage" alt="{% if _file.COMMENT %}{{ _file.COMMENT|e('html') }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
			<!-- IF _file.COMMENT --><dd> {_file.COMMENT}</dd><!-- ENDIF -->
		</dl>
		<!-- ENDIF -->
Replace with:

Code: Select all

		<!-- IF _file.S_THUMBNAIL -->
		<dl class="thumbnail">
			<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" class="postimage" alt="{% if _file.COMMENT %}{{ _file.COMMENT|e('html') }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
			<dd> {_file.DOWNLOAD_NAME}</dd>
			<!-- IF _file.COMMENT --><dd> {_file.COMMENT}</dd><!-- ENDIF -->
		</dl>
		<!-- ENDIF -->
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Post Reply

Return to “[3.3.x] Styles Support & Discussion”