vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Block replies to old threads and prompt for new thread instead (https://vborg.vbsupport.ru/showthread.php?t=70140)

Logikos 10-03-2004 09:05 PM

I could do that, i'll see about releasing it tonight. :) Another thing to add is staff don't see this error, and when a staff member post, it reopens the thread.

calorie 10-03-2004 09:07 PM

Quote:

Originally Posted by Live Wire
Per forum as in, only use this hack in specified forum ids?

You could use something like:

PHP Code:

if (($threadinfo['forumid'] == XX) AND (($threadinfo['lastpost'] < TIMENOW 2592000) OR ($threadinfo['dateline'] < TIMENOW 5184000))) 

where XX is the forumid that should be affected by this hack.

Logikos 10-03-2004 09:08 PM

But it wouldn't be using the settings in forum.php, i don't want to have to add a number every time i delte/add a new forum, rather click yes/no when im creating the forum.

calorie 10-03-2004 09:20 PM

Quote:

Originally Posted by Live Wire
I could do that, i'll see about releasing it tonight. :) Another thing to add is staff don't see this error, and when a staff member post, it reopens the thread.

The if statement could use the following:
PHP Code:

$bbuserinfo['usergroupid'] != X

$bbuserinfo
['userid'] != 

where X and Y are usergroup and userid respectively.

BTW, this hack doesn't actually close the thread. Rather, it blocks a user from making new posts to a thread after a certain amount of time has past. I made it this way because I didn't want the threads to actually close.

Freezerator 10-04-2004 06:33 AM

Tonight i will test it, looks great

spence2 10-04-2004 11:04 AM

Could there possibly be a way to keep the first post in the thread?

I have stickies that I post to start discussions. Would there be a way to keep the original sticky and start new threads with the sticky intact?

calorie 10-04-2004 04:13 PM

Quote:

Originally Posted by spence2
Could there possibly be a way to keep the first post in the thread?

I have stickies that I post to start discussions. Would there be a way to keep the original sticky and start new threads with the sticky intact?

The if statement could use the following:

PHP Code:

if ($threadinfo['sticky'] == 1

so when the thread is stuck the user is prompted to start a new thread.

SaN-DeeP 10-04-2004 05:19 PM

hey calorie, why not update the instructions will all the suggestions posted above :)
will be very helpful for new users checking ur instructions file

Regards,

spence2 10-04-2004 05:53 PM

Quote:

Originally Posted by SaN-DeeP
hey calorie, why not update the instructions will all the suggestions posted above :)
will be very helpful for new users checking ur instructions file

Regards,

If you do, calorie ... could you include how to combine the if statement like so:

"if the thread is sticky" & "if the posts exceed..."

so that users are prompted to begin a new set of comments without losing the original sticky post.

Thank you again.

calorie 10-04-2004 06:15 PM

Quote:

Originally Posted by SaN-DeeP
hey calorie, why not update the instructions will all the suggestions posted above :)
will be very helpful for new users checking ur instructions file

Regards,

Maybe I'll update when I get some extra free time, and after the how-to questions are done should this thread grow large.

Quote:

Originally Posted by spence2
If you do, calorie ... could you include how to combine the if statement like so:

"if the thread is sticky" & "if the posts exceed..."

so that users are prompted to begin a new set of comments without losing the original sticky post.

Thank you again.

The if statement could use the following:

PHP Code:

if (($threadinfo['sticky'] == 1) AND ($threadinfo['replycount'] > X)) 

where X is the maximun number of replies to a stuck thread you allow, so when the thread is stuck and the number of replies exceeds X, the user is prompted to start a new thread.


All times are GMT. The time now is 09:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete