Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 File Download Permissions
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #1
File Download Permissions
I have a forum that shares downloads for the sims2 game series. I would like to make any new file added downloadable for guests for the first week and after that to be members only. (Still free, but have to register to download).

I did not really want to have to reupload files to achieve that (using a second file upload field with different member access).

Is there a way to achieve this using XThreads?


[Image: leelink.gif]
MYBB1.6 & XThreads
05-07-2014 11:45 PM
Visit this user's website 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: File Download Permissions
Maybe this works:

Code:
<if $mybb->user['uid'] or (time() - $thread['dateline'] < 86400*7) then>
Show Download Link
<else>
You need to register to see it
</if>


My Blog
05-08-2014 10:40 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #3
RE: File Download Permissions
Worked perfectly. Thank you very much.


[Image: leelink.gif]
MYBB1.6 & XThreads
05-09-2014 02:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: