remove attachment filename and view count from post

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
psal
Registered User
Posts: 30
Joined: Wed Apr 23, 2003 9:52 pm
Location: Australia
Name: Peter Salmon

Re: remove attachment filename and view count from post

Post by psal »

KevC wrote: Fri Feb 23, 2024 6:07 pm Try asking on the support tab on the page I linked.
Thanks for the direction on forum geography.
psal
Registered User
Posts: 30
Joined: Wed Apr 23, 2003 9:52 pm
Location: Australia
Name: Peter Salmon

Re: remove attachment filename and view count from post

Post by psal »

The section for thumbnails is not highlighted, you need to remove that. Make sure to purge the cache after making template changes otherwise they won't take affect.

Quick tip, instead of deleting the lines you can comment them out.

Code: Select all

<!-- IF 0 -->
Template code commented out. 
<!-- ENDIF -->
Do you mean that I should insert <!-- IF 0 --> at line 8 and <!-- ENDIF --> at line 15 in the above attachment.html image and that's it? I'll give it a go in the meanwhile.

I am aware of the purging cache etc. and reloading.

Thanks for the advice so far.
psal
Registered User
Posts: 30
Joined: Wed Apr 23, 2003 9:52 pm
Location: Australia
Name: Peter Salmon

Re: remove attachment filename and view count from post

Post by psal »

Thanks everyone, the penny finally dropped, all OK now.

I am a d... h..., I'd been purging the cache on my browser, not in my forum i.e. ACP -> GENERAL -> purge the cache -> run now.

I duck my head in embarrassment.

Peter.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6040
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: remove attachment filename and view count from post

Post by thecoalman »

You would use the comments like this:

Code: Select all

			<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
Replace with:

Code: Select all

			<!-- IF 0 -->Removed because of blah,blah,blah
			<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
			<!-- ENDIF -->
This is helpful for reference in the future when you go to upgrade.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
psal
Registered User
Posts: 30
Joined: Wed Apr 23, 2003 9:52 pm
Location: Australia
Name: Peter Salmon

Re: remove attachment filename and view count from post

Post by psal »

Ta, I'm learning.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26714
Joined: Fri Aug 29, 2008 9:49 am

Re: remove attachment filename and view count from post

Post by Mick »

In future please start your own topic especially as this one from 2019 is marked as solved, thanks.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧

Return to “[3.2.x] Support Forum”