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
  #12  
Old 05-04-2007, 04:20 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Distance View Post
You could say that for alot of the mods on here. They are all just to lighten the load on admins
yeah.. well must be very lazy admins if they can't type /prune
Reply With Quote
  #13  
Old 05-04-2007, 10:35 AM
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Location: Boston, Uk
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is not the point.
Reply With Quote
  #14  
Old 05-04-2007, 01:56 PM
Ticinofelino's Avatar
Ticinofelino Ticinofelino is offline
 
Join Date: Jul 2006
Location: Switzerland
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will install it this summer when it will be time for holidays and no one will write prune
Reply With Quote
  #15  
Old 05-04-2007, 05:53 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 Masiello View Post
When i try to run it:

don't happen nothing, it don't delete any shout
same problem......
Reply With Quote
  #16  
Old 05-04-2007, 07:08 PM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Distance View Post
You could say that for alot of the mods on here. They are all just to lighten the load on admins
Then what's your point?
Reply With Quote
  #17  
Old 05-04-2007, 07:59 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FreshFroot View Post
what's the point of the hack :P cant a staff member at the forum or an admin take 1 min to type prune in the SB
Well that's true. :P But our members dont like that the whole shoutbox is pruned. That's why I have the script deleting all shouts older than 48h every day.


That way the users can still see older shouts since their last visit, but the archive isn't too big...
Reply With Quote
  #18  
Old 05-04-2007, 08:01 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nedo_a View Post
same problem......
Hmm strange.

1. You have vbshout 2.0 or 2.1? I'm not sure if this works for 2.1 or not, should work but I haven't tested.

2. Are you sure you uploaded the php file to oyur forum//includes/cron folder? And are you sure you put the right path to the scheduled task you had to create (Filename)?
Reply With Quote
  #19  
Old 05-04-2007, 08:06 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
Hmm strange.

1. You have vbshout 2.0 or 2.1? I'm not sure if this works for 2.1 or not, should work but I haven't tested.

2. Are you sure you uploaded the php file to oyur forum//includes/cron folder? And are you sure you put the right path to the scheduled task you had to create (Filename)?
i have vbshout 2.0 and i uploaded php file to the right directory, and i put rught path in the scheduled task
Reply With Quote
  #20  
Old 05-04-2007, 09:41 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nedo_a View Post
i have vbshout 2.0 and i uploaded php file to the right directory, and i put rught path in the scheduled task
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...
Reply With Quote
  #21  
Old 05-05-2007, 07:59 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2 View Post
Well that's true. :P But our members dont like that the whole shoutbox is pruned. That's why I have the script deleting all shouts older than 48h every day.


That way the users can still see older shouts since their last visit, but the archive isn't too big...
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.
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 10:18 AM.


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.04693 seconds
  • Memory Usage 2,315KB
  • 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
  • (1)bbcode_code
  • (8)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
  • (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