View Full Version : Have to reply to X amount of threads before starting a thread
black
02-09-2002, 09:16 PM
Have to reply to X amount of threads before starting a thread
-------
Subject speaks for itself.
-
Where you (the admin) can go in the control panel select which forum u want this in and how many threads u have to reply to before starting a thread.
I requested this before but i got no reply
black
02-10-2002, 03:19 PM
^
Lesane
02-11-2002, 03:30 PM
I'm currently very busy with the awards/medals/cards hack, when i'm done with it and noone else made the hack that you requested then i'm gonna try to make the hack.
Be patient :D
Lesane
03-02-2002, 03:49 PM
Its not tested but it should work..
black
03-02-2002, 05:46 PM
thanks man sorry seem like i was rushing ya lol
black
03-02-2002, 06:34 PM
doesnt work :cry:
I tested it with a regular member and it let me post right through i set the limit in the forum and didnt work..... any suggestions..
Lesane
03-02-2002, 08:57 PM
hmm... i will test it in a second... ...hold on ;)
Lesane
03-02-2002, 10:06 PM
Find in newthread.php:
$repthread=$DB_site->query("SELECT COUNT(threadid) FROM post where userid='$bbuserinfo[userid]'");
if (($foruminfo[threadamount]>$repthread and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnothread")."\");");
exit;
}
else {
$foruminfo[threadamount]="";
}
}
and change it to:
$rep=$DB_site->query("SELECT COUNT(threadid) AS usertotal FROM post where userid='$bbuserinfo[userid]'");
if (($foruminfo[threadamount]>$rep)) {
eval("standarderror(\"".gettemplate("error_forumnothread")."\");");
}
Tested :D
black
03-02-2002, 10:23 PM
ight coo fitta put it in now right after i restart
I was wonder do moderator/admin have to do the 3 replys to start a topic
black
03-02-2002, 10:47 PM
Still not working..........
AsedaH
08-10-2002, 09:23 PM
nope, it doesnt work still..........i just tested it.
Did anyone figure it out yet?
Lesane
08-12-2002, 07:51 AM
It works perfect by me.
Replace this code (wich i gave above):
$rep=$DB_site->query("SELECT COUNT(threadid) AS usertotal FROM post where userid='$bbuserinfo[userid]'");
if (($foruminfo[threadamount]>$rep)) {
eval("standarderror(\"".gettemplate("error_forumnothread")."\");");
}
With this:
$rep=$DB_site->query_first("SELECT COUNT(threadid) AS usertotal FROM post where userid='$bbuserinfo[userid]'");
$postsuser=$rep[usertotal];
if ((5>$postsuser)) {
eval("standarderror(\"".gettemplate("error_forumnothread")."\");");
}
L-Mane
12-26-2002, 12:30 AM
Ok I just installed this hack and it will not even let me make new threads but it will let me reply. What is wrong with this?
L-Mane
12-26-2002, 12:31 AM
Nevermind I got it...lol
L-Mane
12-26-2002, 03:57 AM
Ok well I installed and uninstalled this here hack and well it isn't working. People under the 50 post requirement that I made have made threads.
L-Mane
12-28-2002, 04:08 AM
I did it again and it is still happaning. Does anyone know why?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.