Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2009, 08:53 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Lock thread after X days mod ?

I've searched but to no avail. Is there any mod out there that will auto-lock threads older than 'X' (say 30) days ?? I have a rule of no replies to threads where the last post to it is 30 days old or longer, but people keep dragging up old threads from the graveyard.

'Would be great if there was a cronjob mod that would ask how long since last post, then once a night go through the forums and auto-lock all threads that are past their date.
Reply With Quote
  #2  
Old 07-28-2009, 09:01 PM
mp3u mp3u is offline
 
Join Date: Jul 2009
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to know about this too!
Reply With Quote
  #3  
Old 07-28-2009, 09:30 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mp3u View Post
I'd like to know about this too!
I've found this:

https://vborg.vbsupport.ru/showthrea...ht=lock+thread

But that will lock active threads if they're older than 30 days. So if you have threads with an on-going discussion, at 30 days that mod would lock it anyway.
EDIT: actually that mod is useless anway - as I read further, it requires you to entire the threadID (??? - why not just lock it myself if I'm going to go through every thread one by one)

I'm also looking for one that will let me choose what forums it's active in.
Reply With Quote
  #4  
Old 07-29-2009, 12:58 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try This? I believe it's what I had installed a while ago... (Uninstalled since my users felt topics shouldn't lock.)
Reply With Quote
  #5  
Old 07-29-2009, 01:39 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlueNinjaGo View Post
Did you try This? I believe it's what I had installed a while ago... (Uninstalled since my users felt topics shouldn't lock.)
*PERFECT!* (it never showed up in my search)

That's EXACTLY what I need.
- being able to select by forum ID and,
- by date of last POST to thread, not just thread creation date

Installing now ..

THanks! :up:

--------------- Added [DATE]1248879258[/DATE] at [TIME]1248879258[/TIME] ---------------

ACK!

That mod doesn't install. Gives a "Error opening file to writing" error on installation (and the mod thread has a LOT of posts from people saying it doesn't work). And the mod creator hasn't been on since May.

GRRR

So I'm still in the hunt for an auto-thread locker
Reply With Quote
  #6  
Old 07-29-2009, 01:58 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's weird, because I had it installed on a 3.7 forum and it worked flawlessly... and people have reported it working for 3.7 and 3.8 forums...
Reply With Quote
  #7  
Old 07-29-2009, 02:11 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlueNinjaGo View Post
That's weird, because I had it installed on a 3.7 forum and it worked flawlessly... and people have reported it working for 3.7 and 3.8 forums...
I fixed the problem.

Apparently you have to shell in with root (or someone wth enough privs at least) to chmod 0777 the cron directory so the mod can write to it.

Which is weird, because I have tons of other mods that need to run scheduled tasks and none of them required me to chmod the directory before.

Seems to be working now (I force-ran the scheduled task). Good stuff :up:
Reply With Quote
  #8  
Old 07-29-2009, 02:57 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the author did say
Quote:
You may need to chmod the includes/cron folder to 777 before installation and back (note your settings) after installation is complete.
It was in bold... lol... but glad it worked out for you.
Reply With Quote
  #9  
Old 07-29-2009, 06:21 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlueNinjaGo View Post
Well the author did say

It was in bold... lol... but glad it worked out for you.
Yah I'm the master of rushing through installations without following instructions. Totally didn't even see the big bold text
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 11:20 PM.


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.04285 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete