View Full Version : Minimum posts to UPload attachments..
EvilLS1
06-09-2003, 10:00 PM
This little hack will make it possible for you to require your users to have a minimum number of posts (which you define in the admin control panel) before they can upload attachments.
Requested here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=54078).
Screenshots included in the zip.
If you find this hack useful please click install. :)
squawell
06-10-2003, 08:05 AM
question:
if i already installed the edit post can attach file hack does this
effect that?should we need to edit the editpost.php??
thankz....
/me installed..
EvilLS1
06-10-2003, 08:38 AM
squawell,
No, there should be no need to make any changes in editpost.php because the attachment options only appear if a user has already attached something.
But if you've installed another hack which allows you to add attachments via editing posts then this should fix it:
in editpost.php find:
eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
replace with:
if ($bbuserinfo[posts] < $minpostuploadattach) {
eval("\$editattachment = \"".gettemplate("notnuffpost_attachment")."\";");
}else{
eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
}
I haven't looked at the other hack or tried the code above but it should work. :)
squawell
06-10-2003, 08:41 AM
Today at 05:38 PM EvilLS1 said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=406943#post406943)
squawell,
No, there should be no need to make any changes in editpost.php because the attachment options only appear if a user has already attached something.
But if you've installed another hack which allows you to add attachments via editing posts then this should fix it:
in editpost.php find:
eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
replace with:
if ($bbuserinfo[posts] < $minpostuploadattach) {
eval("\$editattachment = \"".gettemplate("notnuffpost_attachment")."\";");
}else{
eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
}
I haven't looked at the other hack or tried the code above but it should work. :)
thankz EvilLS1!!:D
ill give it a try and report the result......:D
edit:after test.. it works well...... :classic:
Kevorkian
06-10-2003, 10:16 AM
good hack ^^ i'll install it, can you add a cost for every attachment in store points?
EvilLS1
06-10-2003, 07:43 PM
Kevorkian,
I don't use the store hack.. Sorry. Maybe someone else can add it for you.
Tim Wheatley
06-10-2003, 09:14 PM
Thanks very much. :)
EvilLS1
06-11-2003, 08:22 AM
y/w. And thanks to you for the idea Tim. This is a useful addition to my own board. :)
Tim Wheatley
06-11-2003, 03:54 PM
I needed it as a security feature, we had some 'kids' attacking us from another forum (because we'd banned one of them from ours) and this allows us to have some previous posts to make judgement on, and also allows us to have time when someone registers for the role reason to upload grotesque images...
Thanks for doing it. :up:
Smoothie
06-11-2003, 05:50 PM
Installed, working, nice job.
EvilLS1
06-12-2003, 05:53 AM
Thanks. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.