Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Plugin download permission
nolie Offline
Junior Member
**
Posts: 2
Joined: Dec 2016
Post: #1
Plugin download permission
I need a plugin that allows download only to those who have a quantity of post
12-31-2016 11:24 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Plugin download permission
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.


My Blog
04-02-2017 06:00 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: