vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Automatically Close Old Threads After X Days (https://vborg.vbsupport.ru/showthread.php?t=130738)

Xoligy 12-14-2006 01:02 PM

Great idea. I noticed a request to unsticky topics after X days. If you're looking to expand it, that's something you could consider ;)

The Finman 12-15-2006 06:48 PM

Quote:

Originally Posted by echamberlain (Post 1126548)
I also have a need for a mod to delete threads after so many days and will probably write a new mod, if I can't find one.

Yeah!...that's the one I'm looking for! http://www.ronaldreagan.com/forums/i.../thumbs_up.gif

I like my RSS bots, but the clutter of the threads they post is annoying to me and my members.

I know that there already is a feature that will close the threads posted by the bots after so many days, but having them deleted if not reponded to would be awesome! http://www.ronaldreagan.com/forums/i...es/biggrin.gif

Amenadiel 12-22-2006 08:59 PM

Installed, this was perfect for a couple of trolls that used to revive old threads just for fun.

dilbert 12-24-2006 12:50 AM

Did 1.0 work with 3.6.0?
I see now I need to be at least 3.6.1, I don't want to upgrade at this point.

TrIn@dOr 12-24-2006 04:16 AM

all ok with 3.6.4, thanks.

Red Spider 12-27-2006 10:56 AM

IM having a problem running this script:

vB 3.6.4

Quote:

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND lastpost <= 1164632039' at line 3
Error Number : 1064
Date : Wednesday, December 27th 2006 @ 12:53:59 PM

Spiffware 12-27-2006 11:29 AM

heres a suggestion for upcomming releases. add a user option when the user creats the thread they have the option to have it close afterX days. instead of having it done by admin.

Smoothie 12-27-2006 06:19 PM

Quote:

Originally Posted by Spiffware (Post 1145754)
heres a suggestion for upcomming releases. add a user option when the user creats the thread they have the option to have it close afterX days. instead of having it done by admin.

Negative on that idea.....

R M 4 E V E R 01-09-2007 03:26 AM

that's a great product dude

but i keep getting this error when trying to import it

Error opening file to writing

using 3.6.4 :)

i've opened the xml file and found the php files in cron

if i copied that code and created the file manually and removed the code from xml

would it work ?

echamberlain 01-09-2007 03:30 AM

Quote:

Originally Posted by R M 4 E V E R (Post 1154261)
that's a great product dude

but i keep getting this error when trying to import it

Error opening file to writing

using 3.6.4 :)

i've opened the xml file and found the php files in cron

if i copied that code and created the file manually and removed the code from xml

would it work ?

vBulletin (apache) needs permission to write to the vBulletin directory.

R M 4 E V E R 01-09-2007 04:01 AM

hmmm

so just chmod that dir with 777

i'll try

thanks for fast support ;)

R M 4 E V E R 01-09-2007 04:11 AM

that worked very well :)

i'll translate this product to arabic and post it in arabic vBulletin web sites with ur copyright not removed

installed hit and product nominated for MOTM

thanks again :)

KURTZ 01-09-2007 10:49 PM

reserved for future use by new developmets :)

only a question:

it's possible make that an admin or a (category) mod post automatically with a default message that to inform the reason of the lock? i think this is a better way than "only" lock a thread ...

take this with a suggestion :) always if it is possible to make this ;)

michael_S 01-12-2007 04:08 AM

Working great on 3.6.4 for me... This is exactly what I needed!

osso12 01-13-2007 05:39 PM

Quote:

Originally Posted by michael_S (Post 1156754)
Working great on 3.6.4 for me... This is exactly what I needed!

Not working with 3.6.4 for me...:confused:
I cmod every file and folder in both includes, and cron directory...
error uploading file to writing......
so...as far as vb being able to write to the "vb directory" not sure what that is..
Unless he was talking about the root...where the forum is installed, in that case, all folders are cmod 777..
nothing works....error uploading file to writing......
even if you try to manually import the file from /includes/xml/vox_close_old_threads_1[1].1.xml
what next? :confused:

osso12 01-14-2007 12:08 AM

anyone??

michael_S 01-15-2007 01:35 PM

You need to chmod 777 the cron directory as it needs to write to it. Once installation is complete, you can chmod the cron directory back to 755 or 644...

osso12 01-15-2007 05:58 PM

Quote:

Originally Posted by michael_S (Post 1159796)
You need to chmod 777 the cron directory as it needs to write to it. Once installation is complete, you can chmod the cron directory back to 755 or 644...

Thanks...
but as I already stated above " cmod every file and folder in both includes, and cron directory...
error uploading file to writing......"

osso12 01-15-2007 06:04 PM

*Bump*
this is odd...
I did chmod everything using CPANEL in the file manager..
everything to 777...
still did not work..
so I thought "what the hell?"
so i went back with a ftp client, (wsftp) and did a chmod 777 and for some strange reason it worked that way...
usually if you try to cmod with an ftp tool it wont work or its temporal..
so thanks guys...
just remember that one if yall have the same issue, use and ftp tool direct to the folder in question to chmod.
Problem finally solved.

osso12 01-15-2007 06:15 PM

i say its solved..but does not appear to be working..
its intalled now, but when I checked the options in acp..
set to close threads 90 after last post...
went back to the forum for review, and the mod does not appear to be working...
No threads are closed at all.
any clue?
Thanks

taydu 01-17-2007 07:48 PM

Great mod,

can I make a few requests :)

1. different close period for different group users
i.e. All non stick post, posted by Admin in assigned forum (1, 2, 5, 10 ..) will be be close after X day after first post or last replỵ

............ by Super Mod ........ will be close after Y ....

............ by Mod ........ after Z day ........

............ by all other groups .... after XY day ....

2. Send notify PM/E-mail to the thread creator X day prior to closing. In the body should include the link to the thread.

That's all,

Thanks, once again great hack

michael_S 01-17-2007 07:56 PM

Quote:

Originally Posted by osso12 (Post 1160028)
Thanks...
but as I already stated above " cmod every file and folder in both includes, and cron directory...
error uploading file to writing......"

That means you didn't really chmod to 777.

You should never use a web based file manager to modify permissions. It runs as a different user and will not have privileges to modify your files. That is why it never worked for you.

Using an ftp client or ssh client to change the permissions is the only way you should do it.

Next, in order for the threads to be closed, you have to run the scheduled job in the admin either by letting the cron run, or by manually running it.

osso12 01-17-2007 10:31 PM

it all works now, and finally started working finally.
Thanks...

MissKalunji 01-29-2007 04:19 PM

this doesnt work for 3.6.0?

osso12 01-29-2007 05:09 PM

Quote:

Originally Posted by MissKalunji (Post 1169887)
this doesnt work for 3.6.0?

This works for 3.6.4

marsauae.com 01-31-2007 12:05 PM

If allowed for the issuance want 3.6.4

flindersredclaw 02-15-2007 01:38 AM

Quote:

Originally Posted by osso12 (Post 1169923)
This works for 3.6.4

Did nothing at first then I went into scheduled tasks and run the cron and all is great

Works on 3.6.4 no doubt

Thank you.

Silverstangs 02-19-2007 05:51 PM

I installed it, but as some else said....

Quote:

Originally Posted by transitbus (Post 1111587)
This is a great mod.
I would suggest to include in the documentation the need to chmod the cron folder to 777 before installation and back (755) after. This will avoid confusion.


So please update your instructions uptop. It will avoid unexpected issue.
I am running vb 3.6.4 with vBadvanced CMPS v2.2.1 (vB 3.6) installed, just incase someone wanted to know...>> http://www.talkchite.com

echamberlain 02-19-2007 06:09 PM

Thanks for the suggestion, I've updated the instructions.

I thought having one xml file would be easier, but maybe I should repackage the mod as a zip file with a manual upload.

Smoothie 02-19-2007 10:42 PM

Lesson for today kids, read the thread before you install. :)

echamberlain 02-19-2007 11:38 PM

I figured that when I said, "[t]he installation process automatically creates a php file in the cron folder...". People would know that that folder needs to be writeable by the web server process.

redspider 03-05-2007 03:03 AM

I need something like this for one of my forum section but any way to make it work by minutes and not days?

thanks for any reply

echamberlain 03-05-2007 05:18 PM

Yes, it's possible to change the code and the scheduled task to use minutes, instead of days.

redspider 03-06-2007 02:16 PM

Quote:

Originally Posted by echamberlain (Post 1196418)
Yes, it's possible to change the code and the scheduled task to use minutes, instead of days.

thank you for reply this solve a big problem in forum thanks

mat.knott 03-20-2007 08:47 PM

on my site i have a "daily topics" board where a new topic is made each day. would i be able to use this to close the topics at midnight so that no new posts could be added on the wrong days topic.

i understnd there is the option for close after 1 day but would that close it at 9am if it was started at 9am?

echamberlain 03-20-2007 09:09 PM

Yes, it would close the thread at 9am the following day.

You would need to modify this line:
Code:

. ' AND ' . \$timestamp . ' <= ' . intval(TIMENOW - (60 * 60 * 24 * \$vbulletin->options['setting_vox_cot_days']))
to have threads close when you want, but then you run into timezone issues and when a day starts and ends for the server may differ from the visitors.

mat.knott 03-21-2007 07:12 AM

what would i edit it to to have them close at midnight GMT? my server is in uk and is on gmt time

alawee.blawee 04-26-2007 08:10 PM

checked...
Worked with 3.6.4 ...
But problem solved by CMOD for cron with 777 and after installing got the CMOD back normal

thanks man

keep on

nureeves 05-19-2007 02:23 PM

hai

Would you make "Undo" feature in this hack?

Dannyloski 06-28-2007 02:53 PM

Awesome, installed and working perfectly on vB 3.6.7 PL1 :up: ... I had some Permission Errors, when the cron job ran, but it was because I had to CHMOD some files, all was fixed and running now perfectly ...


All times are GMT. The time now is 01:20 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.01547 seconds
  • Memory Usage 1,820KB
  • 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
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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