Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto Delete Move Threads After X Day Details »»
Auto Delete Move Threads After X Day
Version: 2.00, by HaMaDa4eVeR HaMaDa4eVeR is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-17-2006 Last Update: 05-09-2006 Installs: 35
Uses Plugins
Additional Files  
No support by the author.

What does this hack do ?
This is second version of Auto Delete/Move Hacks, this hack can delete the zero post threads that was created before X days in your specific forums or it can move the zero post threads to specific(Archive) through scheduled task, by defualt delete the zero post every ten days, sure you can change the period as you want,
this is where the Auto Delete After X Days comes in handy!

Features:
  • Turn On/Off system "All system".
  • Turn On/Off Move system.
  • Turn On/Off Delete system.
  • Specific forums "this hack will work on this forums only".
  • Specific forums " Archive Forums".
  • Protected Users.
  • Delete Type (soft/hard).
  • Created days.
  • NO Code Modifications needed!

Install instructions:

1- Upload the file to forum/includes/cron.
2- Import the Product XML file through your Admincp.
3- Enjoy.

NOTE:
Do not forget to review the hacks options in vBulletin options under "Auto Delete/Move After X Days " to set it as you want, the defualt setting are:-
- Soft delete for the threads that have zero replay and created before 30 days ago.
- protected user that have id 1 & 2.
- it will running every ten days.
- check the attachments.

History
  • 19-04-2006 Fix Uninstallation bug.
  • 22-04-2006 adding update counter for forums.
  • 09-05-2006 version 2.0
    - Enable Hack to work in Specific forums.
    - Adding Move threads options with On/Off System.
    - Specific forums " Archive Forums".

    Features:.



that's all
Any questions, comments, suggestions, pleaes let me know

Enjoy!

Show Your Support

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

Comments
  #22  
Old 05-22-2006, 01:57 PM
louis_chypher's Avatar
louis_chypher louis_chypher is offline
 
Join Date: Mar 2006
Location: Boise, Idaho
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Worked as advertised. I'm not using the delete functions, just the move.

Now for a "request". A forum pair setting for the move function. This way I can create seperate "archive" forums. The syntax for the setting could be "(X,Y)(X1,Y1)" where "()" designates the pairs, "X" is the souruce forum and "Y" is the destination forum. In this way I could 'archive' My forums into their respective archives without dumping all the forums into one archive forum.
Reply With Quote
  #23  
Old 05-25-2006, 12:07 PM
NilinHost NilinHost is offline
 
Join Date: May 2006
Location: Sudan My Live
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WoW,
so nice
may allah bless you

**** installed
Reply With Quote
  #24  
Old 05-27-2006, 02:52 AM
Sculli's Avatar
Sculli Sculli is offline
 
Join Date: Nov 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed this hack, this is awesome, however, small problem that I may be able to fix on my own if someone could tell me how:

Code:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/qcdnorg/public_html/includes/class_core.php on line 666
Error on line 666! Creepy!

Edit:
Also a suggestion, it would be nice if sticky threads were excluded from the move/delete. Or at least if there was an option to exclude stickies.

Edit2::
I think I figured it out. PHP problem, doesn't have anything to do with the hack.
Reply With Quote
  #25  
Old 05-29-2006, 05:54 PM
Sculli's Avatar
Sculli Sculli is offline
 
Join Date: Nov 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this and got it to work, but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.

I have a couple of questions:

If I were to remove
Code:
AND `replycount` = '0'
from autodelete.php, then it would also move threads that have replies, right?

If I were to set the zero in
Code:
$threadman->set('sticky', 0);
to 1, then it would not move stickies?
Reply With Quote
  #26  
Old 05-30-2006, 09:08 AM
HaMaDa4eVeR's Avatar
HaMaDa4eVeR HaMaDa4eVeR is offline
 
Join Date: Jun 2004
Location: Sudan
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sculli
I have installed this and got it to work, but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.

I have a couple of questions:

If I were to remove
Code:
AND `replycount` = '0'
from autodelete.php, then it would also move threads that have replies, right?

If I were to set the zero in
Code:
$threadman->set('sticky', 0);
to 1, then it would not move stickies?
yes you're right

Quote:
but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.
make sure you don't put zero in created date option
this is sql query :

PHP Code:
$vbulletin->db->query_read("
            SELECT * from `" 
TABLE_PREFIX "thread` 
                        Where  forumid  IN(
$from) AND `replycount` = '0' AND `postuserid` NOT IN (".$vbulletin->options['Admin'].") AND `dateline` <= '" . (TIMENOW - (".$vbulletin->options['created']." 86400)) . "'"); 
thank you so much
Reply With Quote
  #27  
Old 06-19-2006, 05:29 PM
Losha's Avatar
Losha Losha is offline
 
Join Date: Apr 2006
Location: $Losha.Net$
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks dear for this hack , i`v been rated toy ,
Regards
Reply With Quote
  #28  
Old 06-21-2006, 07:37 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
If I were to remove

Code:
AND `replycount` = '0'
from autodelete.php, then it would also move threads that have replies, right?
Any chance you could make this an option within the acp?
Reply With Quote
  #29  
Old 06-24-2006, 11:33 AM
HaMaDa4eVeR's Avatar
HaMaDa4eVeR HaMaDa4eVeR is offline
 
Join Date: Jun 2004
Location: Sudan
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slave
Any chance you could make this an option within the acp?
in next version

thanks you
Reply With Quote
  #30  
Old 07-17-2006, 08:57 PM
KuJoe KuJoe is offline
 
Join Date: May 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't figure out why this isn't working for me. I installed and set it up, but so far the schedule hasn't run and when I click on "Run Now" it says "Done" but I have threads in the "Effected Forum" that the created date is older than 30 days (what I have it set for). Also, according to my Scheduled Task logs this cron job has not run since I installed it 2 months ago. Any ideas? I'm going to try uninstalling it and reinstalling it to see if it fixes it, but has anybody else had this kind of trouble?
Reply With Quote
  #31  
Old 07-17-2006, 10:00 PM
KuJoe KuJoe is offline
 
Join Date: May 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Negative, still not working.
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 04:43 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.04568 seconds
  • Memory Usage 2,320KB
  • 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
  • (6)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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