Help me to remove Views of Attachment

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
mrcrab
Registered User
Posts: 18
Joined: Wed Feb 07, 2018 12:02 pm

Help me to remove Views of Attachment

Post by mrcrab » Fri May 25, 2018 1:31 pm

Hi!
I have tried a few ways in this forum to remove Views of Attachment, but they are almost impossible. I am using Vietnamese Language pack.
Hope someone to help me this.
Thank's
Attachments
Untitledbgf.jpg

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50510
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Help me to remove Views of Attachment

Post by stevemaury » Fri May 25, 2018 2:47 pm

OPEN language/your language/common.php

FIND:

Code: Select all

'VIEWED_COUNTS'		=> array(
		0	=> 'Not viewed yet',
		1	=> 'Viewed %d time',
		2	=> 'Viewed %d times',
REPLACE WITH:

Code: Select all

'VIEWED_COUNTS'		=> array(
		0	=> '',
		1	=> '',
		2	=> '',
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

mrcrab
Registered User
Posts: 18
Joined: Wed Feb 07, 2018 12:02 pm

Re: Help me to remove Views of Attachment

Post by mrcrab » Fri May 25, 2018 3:12 pm

stevemaury wrote:
Fri May 25, 2018 2:47 pm
OPEN language/your language/common.php

FIND:

Code: Select all

'VIEWED_COUNTS'		=> array(
		0	=> 'Not viewed yet',
		1	=> 'Viewed %d time',
		2	=> 'Viewed %d times',
REPLACE WITH:

Code: Select all

'VIEWED_COUNTS'		=> array(
		0	=> '',
		1	=> '',
		2	=> '',
Thank's Bro!!

User avatar
canonknipser
Registered User
Posts: 1995
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Help me to remove Views of Attachment

Post by canonknipser » Tue May 29, 2018 6:32 am

I would recommend to change only the user facing style file and deleting all occurrences of L_DOWNLOAD_COUNT:
Open styles/prosilver/template/attachment.html

Find

Code: Select all

<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" class="postimage" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
Change to

Code: Select all

<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" class="postimage" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) " /></a></dt>
Find

Code: Select all

<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
Change to

Code: Select all

<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) </dd>
Find

Code: Select all

<dd>({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
Change to

Code: Select all

<dd>({_file.FILESIZE} {_file.SIZE_LANG}) </dd>
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>
Change to

Code: Select all

<p><a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} ]</p>
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

Post Reply

Return to “[3.2.x] Support Forum”