Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Expired Threads Details »»
Expired Threads
Version: 1.1, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.0.3 Rating:
Released: 10-06-2004 Last Update: 10-30-2004 Installs: 22
 
No support by the author.

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

Show Your Support

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

Comments
  #12  
Old 10-08-2004, 11:12 AM
Yahhoon23 Yahhoon23 is offline
 
Join Date: Dec 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just quick question. Does this take the last post date as the start of the counter or the date of the threadstarter?

For example. The counter is set for 30 days. User makes a thread on my site June 1st 2004. There are a few more posts added on, last post in that thread is June 23rd 2004. So would the thread expire on June 1st when it was first started, or June 23rd when the last post?
Reply With Quote
  #13  
Old 10-08-2004, 03:54 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The last post date.
Reply With Quote
  #14  
Old 10-09-2004, 06:08 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been needing a hack like this for specials that expire, classifieds, etc. I would love to be able to set the expiration at the thread level instead the whole forum -- since some specials expire in, say, 4 days and some in 30 days... possible or too much work?
Reply With Quote
  #15  
Old 10-09-2004, 07:48 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wouldn't have time to fix something like that up.
Reply With Quote
  #16  
Old 10-09-2004, 07:59 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand. Maybe I can learn from your code and come up with something. Great hack!
Reply With Quote
  #17  
Old 10-09-2004, 08:23 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It shouldn't be that hard to do, if i was going to do it i would give the thread starter the option to put how many days till thread is considered "expired". When he submits that thread, it will submit the amount the thread starter specifed into a new feild in the post table in the database, then you would have to add a query to check that feild when someone goes to reply.

Basicly when someone goes and clicks on reply, the query will check the database to see if the thread has expired, and goes from there. If i have the time i might be able to do this, but im going to be moving to a new home next weekend, so im trying to finish up some clients before i go with no DSL for a couple of days.
Reply With Quote
  #18  
Old 10-09-2004, 04:34 PM
WAR WAR is offline
 
Join Date: Jan 2004
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie O'Leary
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.
Does the warning display when the user tries to open the thread, or when they try to reply to the thread?
Reply With Quote
  #19  
Old 10-09-2004, 04:47 PM
Omega Prime's Avatar
Omega Prime Omega Prime is offline
 
Join Date: Sep 2002
Location: ::Infinity::
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WAR
Does the warning display when the user tries to open the thread, or when they try to reply to the thread?
That's what I'm wondering as well. It'd be awesome if this shows up when someone tries to make a reply to an old thread
Reply With Quote
  #20  
Old 10-09-2004, 05:57 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats what this hack does, when a user trys to make a 'reply' to an old thread, it will show this error.
Reply With Quote
  #21  
Old 10-09-2004, 06:03 PM
WAR WAR is offline
 
Join Date: Jan 2004
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the clarification Live Wire, that's what I was looking for.

/me clicks install
Reply With Quote
Reply

Thread Tools

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 11:12 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.04647 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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