MyBB Community Forums

Full Version: who download attachment?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in post bit use downloads are not end with ")"....
pls see screenshot.
help.
I take it your using this plugin?

If so:

AdminCP => Templates and style => Templates => Your template set => Post Bit Templates => Postbit_attachments_attachment

Please post your code here.

~ David
<br />{$attachment['icon']}&nbsp;&nbsp;<a href="attachment.php?aid={$attachment['aid']}" target="_blank">{$attachment['filename']}</a> ({$lang->postbit_attachment_size} {$attachment['filesize']} / {$lang->postbit_attachment_downloads} {$attachment['downloads']} {$attachment['whodownload']})
Try add another bracket at the end, like this:

<br />{$attachment['icon']}&nbsp;&nbsp;<a href="attachment.php?aid={$attachment['aid']}" target="_blank">{$attachment['filename']}</a> ({$lang->postbit_attachment_size} {$attachment['filesize']} / {$lang->postbit_attachment_downloads} {$attachment['downloads']} {$attachment['whodownload']}))
I will check that...
But one problem also in counting.
As if i click on download it 5 time than it will count 5 download...but i want one count for one user even if he click on download link 1000 times..
Is it possible????