Remove filename from showing on inline attachments/images ?

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Suggested Hosts
Post Reply
TearAByte
Registered User
Posts: 13
Joined: Tue Apr 17, 2018 12:54 am

Remove filename from showing on inline attachments/images ?

Post by TearAByte »

I would like to remove the file-name & image size from showing below inline image attachments. I found a post from not long about detailing how to remove the view-count, and I assume its basically the same but I dont want to bork it so hoping the experts can help.

TIA!
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6671
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Remove filename from showing on inline attachments/images ?

Post by HiFiKabin »

Probably, but without knowing what post you are referring to I can not be certain.

Anyway,

OPEN

styles>prosilver>template>attachment.html

FIND

Code: Select all

			<p><a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</p>
DELETE any or all of the following

{_file.FILESIZE}
{_file.SIZE_LANG} |
{_file.L_DOWNLOAD_COUNT}



SAVE>UPLOAD>PURGE FORUM CACHE

And remember to keep an un edited backup of ANY file you are working on. That way should you make a muck of things, its easy to revert to a working forum.
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Remove filename from showing on inline attachments/images ?

Post by canonknipser »

HiFiKabin wrote: Thu Jun 14, 2018 10:51 am Probably, but without knowing what post you are referring to I can not be certain.
Maybe this one: viewtopic.php?f=556&t=2473176#p15022471
Anyway, you posted the solution
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
TearAByte
Registered User
Posts: 13
Joined: Tue Apr 17, 2018 12:54 am

Re: Remove filename from showing on inline attachments/images ?

Post by TearAByte »

Yup, that was the post I was referring to..

Thank you both - Will try this tonight.
TearAByte
Registered User
Posts: 13
Joined: Tue Apr 17, 2018 12:54 am

Re: Remove filename from showing on inline attachments/images ?

Post by TearAByte »

That did the trick.
Thanks guys (or girls)!
Post Reply

Return to “Extension Requests”