Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
# reply in # hours for new threads Details »»
# reply in # hours for new threads
Version: 1.00, by grog6 grog6 is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-02-2003 Last Update: Never Installs: 5
 
No support by the author.

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



[HIGH]
UPGRADES TO COME :
[/HIGH]
----------------------------
Can edit this 2 informations by editing the thread
https://vborg.vbsupport.ru/showthrea...103#post404103
----------------------------
Can choose via the ACP forums where you want these 2 options to appear

[HIGH]Please clik INSTALL if you've installed this hack to obtain upgrades and show me you've liked this hack [/HIGH]

Here is the english version

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-03-2003, 10:36 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the add-on to edit threads :devious:
Reply With Quote
  #13  
Old 06-04-2003, 12:06 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool idea d00d nice work
Reply With Quote
  #14  
Old 06-04-2003, 03:12 PM
bitbender's Avatar
bitbender bitbender is offline
 
Join Date: Jan 2002
Location: Sorta near Dallas, Texas
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* bitbender pre-emptively clicks INSTALL
[/high]

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

Good work, happy Day
Reply With Quote
  #15  
Old 07-04-2003, 04:05 AM
prcast prcast is offline
 
Join Date: Feb 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

PHP Code:
      $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'"); 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04322 seconds
  • Memory Usage 2,249KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete