PDA

View Full Version : # reply in # hours for new threads


grog6
06-02-2003, 10:00 PM
With this hack, you will add a part when you create a new thread on your board, where you can

- enter a specific time before people are able to reply to the thread
- enter a number of replies before the thread was closed

Before this time, you can't answer to the thread (excepted if you're admin or moderator allowed ;-)
When the number of replies is equal to the number of replies the thread's creator wanted for his thread, the thread is closed, and only admin and mods allowed will be able to reply tho the thread.

The time you add when creating a new thread must be : Xhx
X for the number of hours
x for the number of minutes



Installation time : 10-15 min
Query to run : 1
Templates modifications : 2
Files modifications : 3


Avec ce hack, vous ajoutez une partie sur votre forum quand vous creez un nouveau sujet, ou vous pouvez

- entrer un temps specifique avant que les gens ne puissent repondre au sujet
- entrer un nombre de reponses avant que le sujet ne soit ferm?

Avant ce temps, vous ne pouvez pas repondre au sujet (sauf vi vous etes admin ou modo autoris? ;-)
Quand le nombre de reponses que vous avez saisi est egal au nombre de reponses du sujet, le sujet est ferm?

La date que vous saisissez doit etre du type : Xhx
X pour le nombre d'heures
x pour le nombre de minutes



Temps d'installation : 10-15 min
Requete a executer : 1
Modifications de templates : 2
Fichiers a modifier : 3



UPGRADES TO COME :
----------------------------
Can edit this 2 informations by editing the thread
https://vborg.vbsupport.ru/showthread.php?postid=404103#post404103
----------------------------
Can choose via the ACP forums where you want these 2 options to appear

Please clik INSTALL if you've installed this hack to obtain upgrades and show me you've liked this hack ;)

Here is the english version

grog6
06-02-2003, 11:22 PM
VOici la version francaise

grog6
06-02-2003, 11:23 PM
SC1 when creating a new thread :p

grog6
06-02-2003, 11:23 PM
SC2

Koutaru
06-02-2003, 11:49 PM
Not bad :) I might use it after I look through the code

Erwin
06-03-2003, 12:09 AM
This is a good idea... Good work. :)

squawell
06-03-2003, 12:35 AM
nice work grog6........

/me click install.....

by the way....if i set 1 hour 5 posts..can this do every 1 hour

5posts limit?can it?

thankz........

assassingod
06-03-2003, 06:17 AM
Nice hack there;)

Chris M
06-03-2003, 08:56 AM
Nice idea Bastien:)

Satan

Kmaster
06-03-2003, 04:51 PM
cool hack~~~is that possible add one function, set a time in it when it was over the thread is closed. thanks for your effort.

grog6
06-03-2003, 10:36 PM
Here is the add-on to edit threads :devious:

wolfe
06-04-2003, 12:06 AM
very cool idea d00d nice work :D

bitbender
06-04-2003, 03:12 PM
* bitbender pre-emptively clicks INSTALL

Been looking now for two hours for another hack here, but this one will "solve" it from a better POV :)

Good work, happy Day :)

prcast
07-04-2003, 04:05 AM
There seems to be a major bug with this hack. It automaticly closes threads after 1 reply if the thread doesn't have a limit set for thread replies. post with no limit set should not be closed after 1 post.


$count=$DB_site->query_first("SELECT replycount FROM thread WHERE threadid='$threadid'");
if ($count[replycount] >= $thread[reps])
$DB_site->query("UPDATE thread SET open= '0' WHERE threadid = '$threadid'");