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

Reply
 
Thread Tools
Shouts Autoprune for vBShout v2.0 Details »»
Shouts Autoprune for vBShout v2.0
Version: 1.00, by Stifmeister2 Stifmeister2 is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.5 Rating:
Released: 05-02-2007 Last Update: Never Installs: 17
Additional Files  
No support by the author.

Shouts Autoprune for vBShout v2.0

Please note! This hack was NOT made by me. It was made by S@NL - BlackBik. I have posted this with author's permission.


~ What does this hack do? ~
The script will delete all shouts older than xx hours. (You can change it to whatever you want, default is 24 hours.)
If you want to change it, you can do it by editing the deletion time in the vbshout_prune.php:

Code:
(TIMENOW - (60 * 60 * 24)
just change 24 to whatever suits you best.


~ Hack Installation ~
1. Download the attached php file and put in the /includes/cron directory.
2. Make a new scheduled task from ACP, "Add New Scheduled Task" (see attached image for more info).
Of course you can set it to run whenever you want and as often as you want, I have it running every night at 05:05.

Show Your Support

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

Comments
  #22  
Old 05-05-2007, 09:59 AM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its a nice addition this, lazy or not, every little tweak helps...
Reply With Quote
  #23  
Old 05-05-2007, 03:23 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FreshFroot View Post
In that case.. it's not a bad mod then. I thought it would delete EVERYTHING off that time. hmmm I might look into this hack and see if my members want it.
I needed this because our members shout a lot, and when the shouts database was getting very big it took quite a while to see the shoutbox archive (like 9-10 seconds!)... Now when I click to see the shoutbox archive it loads less than 1 second.
Reply With Quote
  #24  
Old 05-05-2007, 06:41 PM
nedo_a nedo_a is offline
 
Join Date: Mar 2006
Location: Sarajevo, Bosnia and Herz
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2 View Post
Then it should work 100%. Check the settings from your ACP (edit that scheduled task), there could be a little typo or something...

The script itself is very simple and should work...
not working, a did as you tell me but it is not working
Reply With Quote
  #25  
Old 05-05-2007, 08:20 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn I don't underatand... Did you change the settings from "vbshout prune.php"? Maybe you accidentally deleted something there when you edited it?
Reply With Quote
  #26  
Old 05-05-2007, 08:22 PM
UltimateOreo! UltimateOreo! is offline
 
Join Date: Nov 2006
Location: Missouri
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldnt this be in template modifications?
Reply With Quote
  #27  
Old 05-05-2007, 08:26 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This isn't a template modification, it's a cron script.
Reply With Quote
  #28  
Old 05-06-2007, 07:14 AM
nedo_a nedo_a is offline
 
Join Date: Mar 2006
Location: Sarajevo, Bosnia and Herz
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2 View Post
Damn I don't underatand... Did you change the settings from "vbshout prune.php"? Maybe you accidentally deleted something there when you edited it?
no i didnt change anything....i downloaded file from this site and upladed in cron.....and still doesnt work
Reply With Quote
  #29  
Old 05-08-2007, 11:46 AM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i installed...i will see if it works..thanks!!
Reply With Quote
  #30  
Old 05-09-2007, 05:10 PM
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Location: Boston, Uk
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a version that works with 2.1 HERE
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:07 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.04392 seconds
  • Memory Usage 2,292KB
  • Queries Executed 26 (?)
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)bbcode_code
  • (3)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete