You are in Leach mode! Please upload before you are banned.<br> Low quality or non-amatuer images will be removed and count against you!<br> Your score is Downloads: {THISMEMBERLINKSVIEWED} Uploads: {MEMBERIMAGES}>
</center>
<OTHERWISE>
<center>
Your upload {MEMBERIMAGES}:{THISMEMBERLINKSVIEWED}download ratio is.
You're telling it that if somebody has viewed 1 image and uploaded 2000 (1/2000 < .02) then they're required to upload more before they're banned, and if they've viewed 5000 and uploaded 1 then they can go ahead (5000/1 !< .02). Plus it's undefined/illogical for when they haven't uploaded anything.
uploaded/viewed would make more logical sense, but it should still protect against zeros. <?php if ($thismember->linksviewed() > 0) $viewed = $thismember->linksviewed(); else $viewed = 1; if ($thismember->images / $viewed > 0.02) { ?>
And this still doesn't seem very wise to me since it requires people to upload before they can view... who wants to upload without even knowing what a site offers?
Comments on Image Ratios
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
I am trying to write an image ratio calculation to stop leechers. I have tried the following with no success, can anyone help?
<IF {THISMEMBERLINKSVIEWED} / {MEMBERIMAGES} < .02>
Low quality or non-amatuer images will be removed and count against you!<br>
Your score is Downloads: {THISMEMBERLINKSVIEWED} Uploads: {MEMBERIMAGES}>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You're telling it that if somebody has viewed 1 image and uploaded 2000 (1/2000 < .02) then they're required to upload more before they're banned, and if they've viewed 5000 and uploaded 1 then they can go ahead (5000/1 !< .02). Plus it's undefined/illogical for when they haven't uploaded anything.
uploaded/viewed would make more logical sense, but it should still protect against zeros.
<?php if ($thismember->linksviewed() > 0) $viewed = $thismember->linksviewed(); else $viewed = 1;
if ($thismember->images / $viewed > 0.02) {
?>
And this still doesn't seem very wise to me since it requires people to upload before they can view... who wants to upload without even knowing what a site offers?
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
You are right, it should be the other way around.
uploads / downloads.
But then there has to to another condition.
if downloads => 100 and uploads = 0
then block them out
endif
either way I can't get it to work in the •eric0524
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
Has anyone ever came up with a solution for this? If so, could you please pst the code?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This can only count the number of images viewed though, not the actual number of times images have been downloaded.