SMF Support > SMF 2.0.x Support
remove viewed times
xman68:
Hi
How do I remove this?
And How do I create a gap between the icon and Text ?
K@:
In the theme's Display.template.php file, find this:
--- Code: --- (', $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 replace it with this:
--- Code: --- (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
--- End code ---
Keep a copy of the original file, though, in case I've got that wrong. ;)
Shambles:
--- Quote from: K@ on July 07, 2012, 03:33:36 PM ---In the theme's Display.template.php file, find this:
--- Code: --- (', $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 replace it with this:
--- Code: --- (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
--- End code ---
Keep a copy of the original file, though, in case I've got that wrong. ;)
--- End quote ---
Close ;)
There's a terniary in there so it'll have to be replaced with
--- Code: --- (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
--- End code ---
K@:
--- Quote from: Shambles™ on July 07, 2012, 03:51:56 PM ---There's a terniary in there
--- End quote ---
I don't do that pervy stuff. ;)
Ta, matey! :)
xman68:
Thank You Very Much ;D
--- Quote from: xman68 on July 07, 2012, 03:11:11 PM ---
And How do I create a gap between the icon and Text ?
--- End quote ---
Navigation
[0] Message Index
[#] Next page
Go to full version