![]() |
Hello,
Do you think it is possible make a limitation for the replies for all the threads under a certien forum or for the whole forums ? ( Example : After reaching reply number 100 in a thread it should close its self or no one can add more replies ) hmmm, what do you think dear friends ? Best regards, |
it shouldn't be hard at all, I think. Just a hack in newreply.php.
Maybe something like this: Open newreply.php and find: [code] if ($visible) { if ($threadinfo[replycount]%10==0) { $replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'"); $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'"); } else { $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,last poster='".addslashes($postusername)."' WHERE threadid='$threadid'"); } } [/php] Change it to (changes hilighted): Code:
if ($visible) { If you want to do this to only specific forums, the the code should be (addition marked in highlight AND bold): Code:
if ($visible) { Hope that helps. |
Hello bira,
Thanks for your help and so much appreciated :D Best regards & wishes, Rythem |
|
is there a way that i can set the number of replys when i start it in the thread?
|
All times are GMT. The time now is 01:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|