PDA

View Full Version : Limit new thread


MrLister
06-20-2002, 11:16 PM
I'm not sure if a hack like this exists yet but basically a hack that will allow a user to post 1 new thread in a specific forum per day.

Logician
06-21-2002, 05:28 AM
I think this exists.. If you cant find it, holler and I'll give you the code..

MrLister
06-21-2002, 12:44 PM
I tried searching, now again. Could you please pass the code.

Thanks

Logician
06-21-2002, 02:49 PM
ok here you go

khobar
11-08-2002, 09:13 AM
hi..
how can you modify this hack to make it work for all the forums not just one ?? to allow him post one thread per day??
==================================
another thing ...
to modify it to allow a member to post one new thead in each forum per day ??

many thanks

Logician
11-08-2002, 09:26 AM
Originally posted by khobar
how can you modify this hack to make it work for all the forums not just one ?? to allow him post one thread per day??
==================================
another thing ...
to modify it to allow a member to post one new thead in each forum per day ??

1- delete
$cantpostforumid==$forumid AND
part

2- set $cantposthour to 24. One day is 24 hours.. :glasses:

khobar
11-10-2002, 02:32 PM
thanks alot for the help .. :)
it's working fine ..

I know it's 24 hour for a member to start posting again.. but how does it work?

does the count down start after the last post ?? or does th 24 hour start after midnight as a new day??

I hope I'm clear about my question..

thanks

N!ck
11-10-2002, 03:12 PM
looks to me like it starts over at midnight

Logician
11-10-2002, 07:37 PM
Originally posted by khobar
does the count down start after the last post ?? or does th 24 hour start after midnight as a new day??

He can't post for 24 hours starting from his last post time..

Pollo
04-19-2003, 04:27 PM
What would be the correct code for using this on 5 specific forums (not just one)? Right now it says:

$cantpostforumid=Z;

How would I go about having it so Forums 23, 24, 19, 27, 21 are all restricted?

Pollo
04-19-2003, 04:31 PM
Here's a guess:

Change:
$cantpostforumid=Z;

if ($cantpostforumid==$forumid AND ($bbuserinfo[usergroupid]!=6 OR $bbuserinfo[usergroupid]!=5 OR $bbuserinfo[usergroupid]!=7))
{

to:

## not needed now $cantpostforumid=Z;

if (($forumid == 19) OR ($forumid == 21) OR ($forumid == 23) OR ($forumid == 24) OR ($forumid == 27) AND ($bbuserinfo[usergroupid]!=6 OR $bbuserinfo[usergroupid]!=5 OR $bbuserinfo[usergroupid]!=7))
{

-would that work?

Logician
04-20-2003, 06:06 PM
one may of doing it is to apply the whole code 5 times for each forum..

DigitalDesktops
05-16-2003, 02:32 AM
is it possible to limit the number of replies on certain forums?

kuwaitsun
05-21-2003, 08:01 AM
Hi
I'm Using vb 228 and i don't find this code in admin/thread.php
updateuserforum($foruminfo['forumid']);

Please advise ..

Logician
05-21-2003, 11:38 AM
Today at 12:01 PM kuwaitsun said this in Post #14 (https://vborg.vbsupport.ru/showthread.php?postid=398016#post398016)
Hi
I'm Using vb 228 and i don't find this code in admin/thread.php
updateuserforum($foruminfo['forumid']);

Please advise ..
It is newthread.php in the main forum dir, not admin/thread.php