vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Expired Threads (Auto Close Threads) (https://vborg.vbsupport.ru/showthread.php?t=82827)

Logikos 06-09-2005 10:00 PM

Expired Threads (Auto Close Threads)
 
Expired Threads v1.0.1

Click Install For Support
www.vBHackers.com

What this does
This will allow you as the admin to set a time limit till a thread is considered expired or in otherwords closed. 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. (if you enable this in the admincp) This will prevent those anoyying thread digger members we all seem to dislike.

Installation
Read the readme.txt file

Support
Please show your support by clicking the install button.

Features
  • Turn whole hack off with one button
  • Option to allow mods/sup mods to be able to post
  • You can enable/disable for any forum you want
  • Set X Days till thread is considered expired for any forum you want
  • Optional feature to hide quickreply, show thread closed button and lockedicon on your forumsdisplay. Screenshot should better explaine it all.

To do list...
  • Time to install: 3 minutes
  • Queries to run: 2
  • File Mods: 0
  • Templates to edit: 0
  • Templates to add: 0
  • New Phrases: 3
  • New Plugins: 6

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


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

Marco van Herwaarden 06-10-2005 12:53 PM

Nice one. I noticed your installer don't support TABLE_PREFIX on the ALTER statement for the forum table.

Logikos 06-10-2005 01:01 PM

Fixed. Thanks Marco

sully02 06-10-2005 04:26 PM

Quote:

Originally Posted by Live Wire
Fixed. Thanks Marco

Could this be modified so you can set threads to close either after X days or X replies? (User chooses if they want to time via days or # of replies)

Logikos 06-10-2005 07:54 PM

Quote:

Originally Posted by sully02
Could this be modified so you can set threads to close either after X days or X replies? (User chooses if they want to time via days or # of replies)

x days yes, x replys no. But i can add that optoin

CMilne 06-13-2005 07:07 AM

Very nifty, my forums get very inactive when stargate atlantis goes off TV between seasons, and then out-dated threads are re-posted on several months later, when it is no longer relevant.

* clicks install *

teedizz 06-15-2005 06:18 PM

Can I set this for 1 particular forum or does this go for ALL forums?

Logikos 06-16-2005 04:26 AM

Quote:

Originally Posted by teedizz
Can I set this for 1 particular forum or does this go for ALL forums?

Yes you can set it up for one forum only.

Sinistra 06-17-2005 09:06 AM

Is there something like this for 3.0.7 the prson that owns the board I do hackinstalls on is waiting for the stable version of 3.5 to come out before installing it. This is a hack we could use

Logikos 06-17-2005 09:10 AM

Yes I originally created this hack for vBulletin 3.0.7. Here you go buddy. Expired Threads for vBulletin Version 3.0.7

MogKnight 06-17-2005 09:50 AM

where do you set the options for this?

Logikos 06-17-2005 09:56 AM

Quote:

Originally Posted by MogKnight
where do you set the options for this?

Under the forum manager. See Here. The same place where you would edit the forum title.

MogKnight 06-17-2005 10:56 AM

hm, sorry i missed that.

it'd be nice if there was a way to turn it on or off globally though- adding the option for every forum is a bit of a pain.

Andreas 07-26-2005 06:39 PM

@Live Wire
This Hack can be implemented without File Edits in RC1 by using Hooks forumadmin_add_default and forumadmin_edit_from, so you might want to update it :)

Logikos 07-26-2005 07:17 PM

Great! Thanks man, going to check out the new release now.

Logikos 07-27-2005 01:25 PM

UPDATED FOR vB 3.5.0 RC1
No Code Changes Necessary!

First post updated with zip. Zip includes readme.txt and product-exthreads.xml.
Please read the readme file before doing anything!

Couple of new features and cleaned up the code. See first post.

Thanks for all your support!

Andreas 07-27-2005 01:31 PM

Nice Hack :)

What i'd like to see:
Users can still reply, but if the Thread is expired they will see a Warning (Maybe an Image and some blah blah Text saying that the Thread is pretty old) and have to tick a Checkbox that they are aware of this but still feel that it's necessary to answer.

That's because sometimes it does make sense to bump an old Thread, but in most cases it does not make sense and the Users just don't realize how old the Thread is.

Btw: Moved to Plugins :)

Logikos 07-27-2005 01:35 PM

Never thought about that. I suppose I could do that as well. I'll just make it an option to turn on/off. Note to self: Physically lock expired thread would have to be turned off for this option to work.

Neal-UK 07-29-2005 03:56 AM

My setting look like this:

Boofo 07-29-2005 04:00 AM

Quote:

Originally Posted by nealparry
My setting look like this:

You need to use Import Products and not upload it as a plug-in. ;)

Neal-UK 07-29-2005 04:03 AM

Quote:

Originally Posted by Boofo
You need to use Import Products and not upload it as a plug-in. ;)

i did, if i did it the way you said i'd have the functions.php error or whatever it was....

Logikos 07-29-2005 04:51 AM

Same thing happens to me, let me fix. :)

Logikos 07-29-2005 05:07 AM

New UPDATE
Version 1.0.2

There was a small bug in the .xml file that caused some phrases to not to be inserted. This has been fixed.

Current users simply Import the new .xml file by going to Manage Products then click the [Add/Import Product] link. From there you can import the xml file that is included in the zip please click 'yes' to Allow Overwrite. :)

Neal-UK 07-29-2005 01:12 PM

Quote:

Originally Posted by Live Wire
New UPDATE
Version 1.0.2



There was a small bug in the .xml file that caused some phrases to not to be inserted. This has been fixed.

Current users simply Import the new .xml file by going to Manage Products then click the [Add/Import Product] link. From there you can import the xml file that is included in the zip please click 'yes' to Allow Overwrite. :)

excellent, doing it now

EDIT: working well from what i can tell, many thanks

Neal-UK 07-29-2005 01:39 PM

It works, but I have a blank space here:

Neal-UK 08-01-2005 09:23 AM

Quote:

Originally Posted by nealparry
It works, but I have a blank space here:

** bumpy bump **

SmartGnome 08-02-2005 02:23 PM

Nice hack ........ save's me time. Install is clicked

Only thing is missing text for days till thread expire (see attachment)

@nealparry
Alle other texts are visible at my site.

Logikos 08-02-2005 03:02 PM

I have a fix for this. When I get home i'll posted.

Cyricx 08-10-2005 04:04 PM

Hmm since he hasn't posted the fix for this yet (my co-admin installed this yesterday and it's still not fixed)

Here is the fix (install first, then do this)

Go to your Admincp -> Languages & Phrase -> Phrase Manager -> Add New Phrase

Phrase Type: Control Panel Global
Product: Expired Threads
Varname: how_many_days_till_expire
Text: How many days til thread is considered expired?

pran 08-15-2005 09:08 AM

I accidentally set an entire forum acting as a category to expire all threads. When I tried to disable the thread expiration feature, the threads are still closed. Is there a faster way of opening them again?

Biker_GA 08-15-2005 06:02 PM

ACK! I loaded this, set the expiration for 90 days, and every thread on the board was promptly locked.

Logikos 08-15-2005 06:21 PM

Quote:

Originally Posted by Biker_GA
ACK! I loaded this, set the expiration for 90 days, and every thread on the board was promptly locked.

Thats impossiable, that code will not allow something like that. I installed this hack for a client 4 days ago and everything is working fine. Only thing I can think of is the physical close threads is interfearing somehow. Try turning that off, and see if anything changes. If so, I will have a deeper look at the code, but it seems it is working fine for me.

0ptima 08-16-2005 03:40 AM

Quote:

Originally Posted by KirbyDE
Nice Hack :)

What i'd like to see:
Users can still reply, but if the Thread is expired they will see a Warning (Maybe an Image and some blah blah Text saying that the Thread is pretty old) and have to tick a Checkbox that they are aware of this but still feel that it's necessary to answer.

That's because sometimes it does make sense to bump an old Thread, but in most cases it does not make sense and the Users just don't realize how old the Thread is.

I would like something similar. After X days, the quick reply on the thread would be gone and when the user would click on reply, a warning would be shown saying that this is an old thread, do you want to continue. If the user wants to reply, they would click on OK

Biker_GA 08-18-2005 02:46 PM

Yep! I, too, think this would be a great alternative to just closing the thread. :)

RoryF 08-22-2005 07:14 AM

Just a quick question, if i set up the expired date in each catagory forum setting, it will affect all the other forums that's under the catagory forum, even if it's set to no in those forums under the catagory?

Logikos 08-22-2005 08:40 AM

Nope, this will only effect the cat where the settin is on. :)

Jenta 08-22-2005 08:52 AM

Quote:

Originally Posted by Biker_GA
ACK! I loaded this, set the expiration for 90 days, and every thread on the board was promptly locked.

yeah happened to me also

seems if u dont go into each forum and mess with the setting to turn it on it can wreak havoc

it even messed up some threads and added polls or what appeared to be polls but where missing data

took a few hours to clean up the mess manually

trust me, this hack did this - nothing else would have caused this

Logikos 08-22-2005 04:24 PM

I've uploaded a new Zip file for current users. Set overright to yes in the manage products area. I've turned off 'Physicaly Close Threads' to review the code when I get home..

Paul 08-30-2005 02:59 AM

A fantasic addition to this would be that the time limit would reset should the poster of the first post in the thread return to post again. This is precisely what we've planned to handle the resurrection of old threads, but where we want the thread starter to have control over the ultimate end date.

It would also be great if moderators could disable the time limit completely for threads or extend it using existing ajax moderator tools without having to post.

VirtualBurn 08-30-2005 08:41 PM

Quote:

Originally Posted by sully02
Could this be modified so you can set threads to close either after X days or X replies? (User chooses if they want to time via days or # of replies)

I've been looking for a hack to close after a specified amount of replies, could this hack be updated with this feature? I have found a lot of request for a hack of this type while looking myself... It would make a lot of people happy :D


This is a great hack and I would love to see it developed.

~vb


All times are GMT. The time now is 04:50 PM.

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.01505 seconds
  • Memory Usage 1,819KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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