Log in

View Full Version : need to reply to xx posts before you can start a new thread


AsedaH
08-10-2002, 01:20 AM
is this even possible? it sounds simple on paper.

i need a hack that will make users reply to posts on my board before they can start new threads. Everyone wants to talk, but noone wants to reply.

is it possible to modify the "minimum posts to start new topic" hack to do this.

[D]Vincent
08-10-2002, 04:35 AM
No offense but this sounds kind of pointless, if everyone is starting new threads and not replying you don't have a very good forum, slap down some rules and tell them not to just go around making new threads if they aren't replying to other ones. They'll eventually listen.

AsedaH
08-10-2002, 03:06 PM
I'm not offended, but why is it pointless? I have 80 members, the average thread gets 7-8 replies. So i think the overall forum is doing ok, and yes, we do have rules. One of them just happens to be you must reply to 2 posts before you can start a thread. Not on the enrire board. just in one or two forums.

Anyway, if someone could point me in the right direction i'll work on it myself.

Lesane
08-10-2002, 03:19 PM
Try this:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=34933

AsedaH
08-10-2002, 09:22 PM
close..but it doesnt work

MrLister
08-10-2002, 09:45 PM
I'll go make it... I'm kind of bored anyways now

MrLister
08-10-2002, 09:55 PM
Here ya go. Not tested. I'm just doing it in few mins now.


Open newthread.php

below require("./global.php"); add $needthismuch = "5"; // Amount of posts needed to make thread

then all the way at the bottom find eval("dooutput(\"".gettemplate("newthread")."\");");

and replace it with if ($bbuserinfo[posts] < $needthismuch){
eval("standardredirect(\"".gettemplate("needposts")."\",\"index.php\");");
}else{
eval("dooutput(\"".gettemplate("newthread")."\");");
}


Downside to this hack. Applies to mods, admins, everyone. So as soon as he replies to 5 threads in my example he can make new threads. Done.. :) should work

AsedaH
08-11-2002, 09:08 PM
this didnt work either........i tried modifying it but it either doesnt work at all or it completely prevents anyone from starting new threads. It doesnt change after x amount of replies. You still are unable to start a new thread.

Logician
08-22-2002, 08:46 AM
edit newthread.php, find:


$forumid=verifyid("forum",$forumid);


After that add:

if ($bbuserinfo[posts] < X AND ($bbuserinfo[usergroup]!=6 AND $bbuserinfo[usergroup]!=5 AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;}


Replace X with the post count number..

user360
12-08-2002, 07:29 PM
^^ that refers to every forum though.. could it be made so you can choose which forum

Logician
12-08-2002, 07:44 PM
if (($bbuserinfo[posts] < X) AND ($forumid==XX OR $forumid==YY) AND ($bbuserinfo[usergroup]!=6 AND $bbuserinfo[usergroup]!=5 AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;}

user360
12-08-2002, 07:50 PM
ok, this could work where it has

$forumid==XX OR $forumid==YY

i could put 2 different forums like

$forumid==33 OR $forumid==43

Logician
12-08-2002, 08:11 PM
right.. it should work

user360
12-08-2002, 08:13 PM
just tryed it ,, it doesnt work

Logician
12-08-2002, 08:18 PM
1- dont forget to replace x with your post number

2- dont forget to test with a regular user account. it does not apply mods/admins etc.

3- post the code you inserted if still does not work

user360
12-08-2002, 08:23 PM
in newthread.php

I found "$forumid=verifyid("forum",$forumid);"

and after that i put

if (($bbuserinfo[posts] < 2) AND ($forumid==11 OR $forumid==5) AND ($bbuserinfo[usergroup]!=6 AND $bbuserinfo[usergroup]!=5 AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;}

still didnt work

user360
12-08-2002, 11:12 PM
^

Logician
12-09-2002, 08:56 AM
Originally posted by user360
in newthread.php

I found "$forumid=verifyid("forum",$forumid);"

and after that i put

if (($bbuserinfo[posts] < 2) AND ($forumid==11 OR $forumid==5) AND ($bbuserinfo[usergroup]!=6 AND $bbuserinfo[usergroup]!=5 AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;}


still didnt work
I tested your code in my test board and it works here.

Make sure:
1- You test with an account who is NOT Mod, S.Mod or Admin.
2- Make sure this account has 0 or 1 posts.
3- Make sure you test to send a new thread in forum 11 or 5

So this will work: Register a new account in your board from the ground, validate its email, go to forum 11 or 5 and click NEW THREAD. You'll receive no permission page..

user360
12-10-2002, 01:56 AM
Yes it works now... But it doesnt check and see if you replyed to 2 topics. Its actually goes by the post count.. I used another dummy account and changed that "2" to "5555" and it let me post without replying to 2 topics

350Chevy
12-10-2002, 02:18 AM
Originally posted by user360
Yes it works now... But it doesnt check and see if you replyed to 2 topics. Its actually goes by the post count.. I used another dummy account and changed that "2" to "5555" and it let me post without replying to 2 topics

Why would that matter? :confused:

user360
12-10-2002, 05:36 AM
Originally posted by 350Chevy


Why would that matter? :confused:

Because on my board I dont care how many post you have,... you can start a topic.


My moderators and I came with a solution to problems with sleeping on certain forums . I want them to have to reply to "X" amount of threads before they start a topic in that forum. Not post count.

350Chevy
12-10-2002, 05:42 AM
Originally posted by user360


Because on my board I dont care how many post you have,... you can start a topic.


My moderators and I came with a solution to problems with sleeping on certain forums . I want them to have to reply to "X" amount of threads before they start a topic in that forum. Not post count.

Hmmm, I suppose that makes some since. Why not allow them to post a new topic though? It may deter them from posting at all. :)

user360
12-10-2002, 06:49 AM
who cares if they don't post.. We don't want people on the board who can't follow a simple rule anyway.. This way, it'll get rid of all the unwanted fat... Am I right? :)

350Chevy
12-10-2002, 08:36 AM
true.. :)