MyBB Hacks

Full Version: Plugin download permission
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need a plugin that allows download only to those who have a quantity of post
Your request is quite vague, but if this download is stored as an XThreads attachment, you could use a conditional to hide the link depending on the user's postcount, something like:

Code:
<if $mybb->user['postnum'] > 5 then><a href="{URL}">{FILENAME}</a></if>


This only hides the link, which a user may be able to guess.  You can edit the XTHREADS_EXPIRE_ATTACH_LINK value in cache/xthreads.php to try to stop that.

Reference URL's