Attachment Suggestion - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: General (/forumdisplay.php?fid=11) +---- Forum: Forum & Website (/forumdisplay.php?fid=13) +----- Thread: Attachment Suggestion (/showthread.php?tid=69757) Attachment Suggestion by matty on 12-21-2006 at 02:49 AM
We should have [attachmentcount=postid] Which will display the total downloads on one attachment. RE: Attachment Suggestion by prashker on 12-21-2006 at 02:57 AM Not really needed, but It would be cool knowing RE: Attachment Suggestion by zach on 12-21-2006 at 03:15 AM You can already see how many times an attachment has been downloaded, so what would be the point of making another way? RE: Attachment Suggestion by WDZ on 12-21-2006 at 03:42 AM
quote:Indeed... :\ quote:Hmm... so you could upload a completely different file but keep the same count? I dunno about that... RE: Attachment Suggestion by matty on 12-21-2006 at 05:15 AM
quote:What if I wanted to show on a different post the number of times an attachment has been downloaded and have it show the exact value? quote:Well in this case for scripts if you just upload another version you can keep a running total of the number of downloads. RE: Attachment Suggestion by WDZ on 12-21-2006 at 06:10 AM
quote:Different post? Ehhh... no. The post parser would have to query the counter value every time an [attachmentcount=x] tag is encountered, because that info wouldn't already be cached. quote:Yeah, I see the advantage there, but for other types of attachments, it's kinda dodgy. Anyway, it's technically infeasible in MyBB 1.2, which no longer has the "replace attachment" functionality (it now supports multiple attachments per post). |