PDA

View Full Version : minimum posts posted to make new reply


Mephisteus
10-12-2002, 10:00 PM
IMPORTANT
You must have my Need xx posts to make an new thread (https://vborg.vbsupport.ru/showthread.php?postid=276021#post276021) hack installed for this to work!

The reason why I create a new thread is because people couldn't find it :p

Thanks to Lesane (my hack is based on his minimum number of days to make new thread hack)

Screenie can be found in this (https://vborg.vbsupport.ru/showthread.php?postid=276021#post276021) thread in the second post.

Info:
This hack will add an extra field when you create or edit an forum wich alows you to set an minimum number of posts before users can reply to threads in specified forums. If users don't have enough posts they will see an output stating the minimum number of posts needed.

Edit info:
5 edits in 2 files
1 SQL query
1 new template

Hope you'll enjoy this hack!

I never tested this hack and I can't provied support! But if you have any questions feel free to post in this thread. But I can't be sure that I can help you.

In about a week I will create an version that won't require you from installing my other hack first.

Logikos
01-26-2003, 04:30 AM
why release something you never have tested, I'll test it right now on my test forum for you ;)

Logikos
01-26-2003, 04:31 AM
Ok Im confused Wheres the hack?

im looking for the addon where you can stop a user from posting and viewing a certain forum untill xx amount of post

tpearl5
08-10-2003, 07:47 PM
Great Hack!! This and the new thread were just what I needed to prevent new users from spamming newsgroup forums. (the nntp gateway hack)

Domenico
09-28-2003, 11:13 AM
I checked everything ten times but users can still post with this hack installed. The parent hack is installed and works ok.

Is this correct in newreply.php because it looks like the check is skipped:


$permissions=getpermissions($threadinfo[forumid]);
if (($bbuserinfo['userid']!=$threadinfo['postuserid'] or $bbuserinfo['userid']==0) and (!$permissions['canviewothers'] or !$permiss$
show_nopermission();
}

if (($foruminfo[minreplyposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnoreplyposts")."\");");
exit;
}

if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}


Please help.