SMF Support > SMF 2.0.x Support

Is there any way to hide the amount of times an attachment has been downloaded

(1/1)

okee:
Hi

Is there any way to hide how many times an attachment has been downloaded
I just want attachments to display with file size and not the number of times it was downloaded

BlahBlahBlah.pdf (854.44 kB - downloaded 0 times.)

mashby:
In Themes/default/Display.template.php, find this (consider making a backup of the whole file too):

--- Code: --- echo '
(', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';

--- End code ---
And yank out the parts you don't want. :)

Navigation

[0] Message Index

Go to full version