How to prevent users from rating their own files
Hi everyone,
I tweaked the template a bit so it prevents uploaders from rating their own files. I don't know about you, but on my forum people often immediately give their files "A+" after uploading. This will prevent that.
To add this feature:
1) Go to your AdminCP and edit the template named "
downloads_file"
2) Find
$userscore in that template.
3) Replace it with these lines:
Code:
<!-- Uploader Check -->
<if condition="$bbuserinfo[username] == $file['uploader']">
You cannot rate your own file.
<else />
$userscore
</if>
<!-- End Uploader Check -->
Hope you find this useful.
PS: Jelle, feel free to incorporate this into the product if you like it.