Attachment view counter

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
kronos1
Registered User
Posts: 471
Joined: Tue Aug 23, 2011 1:46 pm

Attachment view counter

Post by kronos1 » Wed Nov 30, 2016 9:14 am

Is it possible to turn off the attachment view counter.

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

Re: Attachment view counter

Post by stevemaury » Wed Nov 30, 2016 3:14 pm

OPEN language/en/common.php

FIND:

Code: Select all

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

Code: Select all

0  => '',
      1  => '',
      2  => '',
Purge the cache.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

kronos1
Registered User
Posts: 471
Joined: Tue Aug 23, 2011 1:46 pm

Re: Attachment view counter

Post by kronos1 » Wed Nov 30, 2016 7:06 pm

I have done this and it has worked but now I get the following message at the top of the forum. I used FileZilla to read and write the file.

Any idea what I need to do.

phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/common.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/common.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/common.php:1)

User avatar
Lumpy Burgertushie
Registered User
Posts: 64868
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Attachment view counter

Post by Lumpy Burgertushie » Wed Nov 30, 2016 7:30 pm

filezilla does not have the ability to open or edit files. however, it does have the ability to use whatever your default text editor is on your computer. in this case it probably used something like windows notepad and that has corrupted the file.

get a real text editor like notepad++ or editpad lite
download it , install it and only open phpbb files with that editor.

now, the easiest way to solve this problem is to get a fresh new copy of that file from the backup on your computer or download the whole phpbb from here and use the copy in that.

replace the one on your server with the new copy.
If you wish to make this edit ( I wouldn't do it because you will just have to do it again each time you update phpbb ) you can use your new text editor to do it with and you won't have this problem.

be sure to set your new text editor as the default in filezilla for the future.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

kronos1
Registered User
Posts: 471
Joined: Tue Aug 23, 2011 1:46 pm

Re: Attachment view counter

Post by kronos1 » Wed Nov 30, 2016 7:39 pm

Thank you, I have just put the back up file back on the server and its back to normal. If I need to make the edit every time there is a upgrade I think I will leave it as it is.

kronos1
Registered User
Posts: 471
Joined: Tue Aug 23, 2011 1:46 pm

Re: Attachment view counter

Post by kronos1 » Wed Nov 30, 2016 8:31 pm

I cannot log into the ACP now and some members cannot logon anymore.

Please help.

kronos1
Registered User
Posts: 471
Joined: Tue Aug 23, 2011 1:46 pm

Re: Attachment view counter

Post by kronos1 » Wed Nov 30, 2016 9:07 pm

I have sorted the problem.

Save the common file in notepad++ without BOM.

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 50 guests