fm:IfUserHasVoted


The fm:IfUserHasVoted component allows you to check whether or not a user has voted for a particular media item or on the entire vhost.

Example

<fm:IfUserHasVoted mid="123456" > You have already voted <fm:Else> Vote now! </fm:Else> </fm:IfUserHasVoted>

Supported attributes

NameRequiredDefaultDescription
midRequiredN/AThe media-id which should be checked for. If 'all' is specified here, we'll check if a user has voted at all on the entire vhost.
sinceOptionalYou can optionally specify a date here, if you want to check if a user has voted since a specific time.

See also