View Full Version : Administrative and Maintenance Tools - Shouts Autoprune for vBShout v2.0
Stifmeister2
05-02-2007, 10:00 PM
Shouts Autoprune for vBShout v2.0
Please note! This hack was NOT made by me. It was made by S@NL - BlackBik (https://vborg.vbsupport.ru/member.php?u=59788). 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:
(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. :)
d8tabyte
05-03-2007, 03:47 PM
awesome, thanks!
Masiello
05-03-2007, 04:43 PM
Hi, can this work with vBshout 2.1?
Masiello
05-03-2007, 07:05 PM
When i try to run it:
don't happen nothing, it don't delete any shout :(
FIXED
Stifmeister2
05-03-2007, 07:40 PM
When i try to run it:
don't happen nothing, it don't delete any shout :(
FIXED
Ok good to hear. :)
FreshFroot
05-03-2007, 08:54 PM
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 :p
Distance
05-03-2007, 09:22 PM
You could say that for alot of the mods on here. They are all just to lighten the load on admins :)
Stifler
05-03-2007, 11:17 PM
You could say that for alot of the mods on here. They are all just to lighten the load on admins :)
every little bit helps.
Snake
05-03-2007, 11:19 PM
Wow this is awesome! Thanks. :D
fn9mm
05-03-2007, 11:25 PM
will try
this is handy
thx
FreshFroot
05-04-2007, 04:20 AM
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 :p
Distance
05-04-2007, 10:35 AM
That is not the point.
Ticinofelino
05-04-2007, 01:56 PM
I will install it this summer when it will be time for holidays and no one will write prune :D
nedo_a
05-04-2007, 05:53 PM
When i try to run it:
don't happen nothing, it don't delete any shout :(
same problem......
FreshFroot
05-04-2007, 07:08 PM
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?
Stifmeister2
05-04-2007, 07:59 PM
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 :p
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...
Stifmeister2
05-04-2007, 08:01 PM
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)?
nedo_a
05-04-2007, 08:06 PM
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
Stifmeister2
05-04-2007, 09:41 PM
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...
FreshFroot
05-05-2007, 07:59 AM
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.
Gizmo5h1t3
05-05-2007, 09:59 AM
its a nice addition this, lazy or not, every little tweak helps...
Stifmeister2
05-05-2007, 03:23 PM
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.
nedo_a
05-05-2007, 06:41 PM
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
Stifmeister2
05-05-2007, 08:20 PM
Damn I don't underatand... Did you change the settings from "vbshout prune.php"? Maybe you accidentally deleted something there when you edited it?
UltimateOreo!
05-05-2007, 08:22 PM
Shouldnt this be in template modifications?
Dream
05-05-2007, 08:26 PM
This isn't a template modification, it's a cron script.
nedo_a
05-06-2007, 07:14 AM
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
Mrdby
05-08-2007, 11:46 AM
i installed...i will see if it works..thanks!!
Distance
05-09-2007, 05:10 PM
There is a version that works with 2.1 HERE (https://vborg.vbsupport.ru/showthread.php?t=146703)
:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.