vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Shouts Autoprune for vBShout v2.0 (https://vborg.vbsupport.ru/showthread.php?t=146386)

Stifmeister2 05-02-2007 10:00 PM

Shouts Autoprune for vBShout v2.0
 
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. :)

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

Quote:

Originally Posted by Masiello (Post 1240788)
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

Quote:

Originally Posted by Distance (Post 1240882)
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

Quote:

Originally Posted by Distance (Post 1240882)
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

Quote:

Originally Posted by Masiello (Post 1240788)
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

Quote:

Originally Posted by Distance (Post 1240882)
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

Quote:

Originally Posted by FreshFroot (Post 1240867)
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

Quote:

Originally Posted by nedo_a (Post 1241465)
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

Quote:

Originally Posted by Stifmeister2 (Post 1241547)
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

Quote:

Originally Posted by nedo_a (Post 1241551)
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

Quote:

Originally Posted by Stifmeister2 (Post 1241545)
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

Quote:

Originally Posted by FreshFroot (Post 1241786)
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

Quote:

Originally Posted by Stifmeister2 (Post 1241604)
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

Quote:

Originally Posted by Stifmeister2 (Post 1242054)
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
:)


All times are GMT. The time now is 04:21 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.02224 seconds
  • Memory Usage 1,777KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete