MyBB Hacks

Full Version: File Download Permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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>

Worked perfectly. Thank you very much.
Reference URL's