vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Expired Threads (https://vborg.vbsupport.ru/showthread.php?t=70302)

Logikos 10-06-2004 10:00 PM

Expired Threads
 
Expired Threads


====================
Author: Ken 'LiveWire' Iovino
Site: www.initialz.com
Version: 1.1
====================

Updates
  • Threads expired in days not seconds

Exitising Users Please Read
Open the file update_1.0_to_1.1.txt


WetWired Gets credit for the original idea, i saw this created on his forums long ago, and finaly decided to code it. and share with vBulletin.

What this does
This will allow you as the admin to set a time limit till a thread is considered expired. If the thread happens to be expired, the user will see a error message. But a staff member (ie, mod, sup-mod, and admin) can unexpire the thread by posting in it, then the counter will start over again. This will prevent those anoyying thread digger members we all seem to dislike.

This works as a per forum basis. You can turn on/off any forum you want.


To do list...
  • Time to install: 5-10 minutes
  • Queries to run: 1
  • File Mods: 2
    • /admincp/forum.php
    • /forums/newreply.php
  • Templates to edit: 0
  • Templates to add: 0
  • New Phrases: 4

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.

Special Thanks to:
-nexialys


Paul M 10-07-2004 03:23 PM

Looks good - but I really would prefer the time to expire in days, not seconds.

Polo 10-07-2004 03:37 PM

thanks for sharing with the community Live Wire :)

nexialys 10-07-2004 04:17 PM

@Live_Wire: Xdays = XX*60*60*24 == Xseconds... do it at a per days setting, not seconds.. ;)

Logikos 10-07-2004 05:54 PM

Quote:

Originally Posted by Paul M
Looks good - but I really would prefer the time to expire in days, not seconds.

Unless you don't know math, you can have it expire in any amount of days

Thanks nexialys i look into it :)

Cryo 10-07-2004 07:20 PM

Code:

// ### CHECK IF ALLOWED TO POST ###
Can't find that line. Where exactly should it be?

Logikos 10-07-2004 07:28 PM

Quote:

Originally Posted by Charlie O'Leary
Code:

// ### CHECK IF ALLOWED TO POST ###
Can't find that line. Where exactly should it be?

Should be in newreply.php around line 107. If you still can't find it, look for this:
PHP Code:

if (!$threadinfo['visible'] OR $threadinfo['isdeleted'])
{
        
$idname $vbphrase['thread'];
        eval(
print_standard_error('invalidid'));


And add it above that.

Cryo 10-07-2004 09:08 PM

Works great! You should modify your install directions to let people know where that modification takes place. :)

BTW, great mod... very happy to see this, this was exactly what I was looking for.

Logikos 10-07-2004 10:17 PM

Quote:

Originally Posted by Charlie O'Leary
Works great! You should modify your install directions to let people know where that modification takes place. :)

BTW, great mod... very happy to see this, this was exactly what I was looking for.

Thanks, well i would hope people look at the screenshot to see where the mod works. ^^

Cryo 10-07-2004 11:45 PM

I did, but I wasn't sure if it displayed that when the thread was opened or if it did that when it was replied to. Was hoping the latter, but wasn't sure. :)


All times are GMT. The time now is 12:32 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.01062 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)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