The fm:IfUserHasUploaded component allows you to check whether or not a user has uploaded in the current vhost.
<fm:IfUserHasUploaded >
You have already uploaded a file
<fm:Else>
Upload now!
</fm:Else>
</fm:IfUserHasUploaded>
Name | Required | Default | Description |
---|---|---|---|
channel | Optional | N/A | Channel Filter - If user has hit this amount of uploads in this channel |
number | Optional | 1 | If you want to check if a user has uploaded x amount of times since a certain timeframe, you can use this attribute to specify the number |
since | Optional | N/A | This attribute allows you to just check if a user has uploaded within a certain timeframe. This attribute supports dates like YYYY-MM-DD, but also words like 'midnight' |
uid | Optional | N/A | The user-id to check. By default this will be the currently logged in user |
<fm:IfUserHasUploaded number="2" since="midnight" >
You can only upload 2 files per day
<fm:Else>
Upload now!
</fm:Else>
</fm:IfUserHasUploaded>