View Full Version : member can't download attachment only after a # of posts
Emarat
01-22-2003, 09:37 PM
I have looked the hackes section looking for this hack that will not allow the member of the vb to download the any attachment from the forum only after a # of posts is posted by the members and I did not find it .. any one can help me in this :rambo:
unplugged
01-23-2003, 11:06 AM
I dont have ftp access at the mo but it should just be a case of an simple if statement on the attachment.php file ill ahev a look later on but it would prob be something along the lines of
if ($bbuserinfo[postcount]) <= x {
normal code for download
}
else
{
nopermission();
}
Im going by memory here so not sure on the exact query if not a bit of SQL will get the postcount but this will absiclyl not allow them to download anywhere in the forums if they have less that a certain postcount as for individual forums that would be a little more tricky ;)
Emarat
01-25-2003, 02:31 PM
ok then can any one provied it in a complete install file by it self without doing it manualy
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.