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)
-   -   Chat Modifications - vBshout Automatic Pruning *ALL VERSIONS* (https://vborg.vbsupport.ru/showthread.php?t=146703)

Distance 05-07-2007 09:00 PM

vBshout Automatic Pruning *ALL VERSIONS*
 
vBshout Automatic Pruning

NOTE: Does not work with Inferno vBshout


What does it do?

This addon will automatically prune (remove all shouts) from the vBshout Shoutbox.

*You can set the time when the product will prune the Shoutbox.


How do I get vBshout?

vBshout 2.0
vBshout 2.1


.: Installation :.


1. Upload pruneshout.php to your /includes/cron/ folder
2. Import the product product-shoutbox_prune.xml



.: Upgrading :.

Upgrading from 1.0 / 1.0

1. Upload and overwrite /includes/cron/pruneshout.php
2. Import the product product-shoutbox_prune.xml (Make sure overwrite is turned on)


.: Configuration :.


By default the shoutbox will prune every Sunday night at 11.59pm

If you wish to change this proceed to the following steps.


1. On your admincp find Scheduled Tasks. Expand the group and then click on Scheduled Task Manager
2. Find Shoutbox Pruning and select Edit from the dropdown menu, then click go.
3:

You can change the settings to whatever you want.

Note: * means every. So if you had it as Hour: * then it would run every hour.

Get the idea?

4. Once you have finished click save



.: Version History :.

1.0: Initial Release2.0: Bug fix & after prune message
1.10: Bug fix and after-prune message.
1.20: Fixed table prefix for maximum compatibility

View Release Notes


.: Future Releases :.
  • Direct link in admincp to prune the shoutbox
Thanks
Distance


Note: This has been tested with vBshout 2.0 and 2.1. Please backup your forums before installing this mod. I say this so I am not liable for any data loss etc although that situation is EXTREMELY unlikely.


Distance 05-07-2007 11:10 PM

.: v1.0 Release Notes :.

In vBshout 2.1 Only!!

Because vBshout 2.1 is a file based shoutbox when the the Cron script runs to prune the Shoutbox the database will clear the shouts however the file will still have the shouts stored.
Even though the shouts have been cleared the shoutbox will not update until a new shout is made.
I plan to release a version that will also clear the html file soon.

.: v1.10 Release Notes :.

Original bug fixed.
When the shoutbox prunes it will display a message saying the shoutbox has been successfully pruned.

.: v1.20 Release Notes :.

Fixed table prefix for maximum compatibility

Hornstar 05-08-2007 04:31 AM

hey nice work, look forward to the one that will clear the html file as well, will install it later on. thanks.

Distance 05-08-2007 05:52 AM

Yeah its because its a flatfile system.. Annoying eh :)

Please click install :)

Mrdby 05-08-2007 10:31 AM

working anybody?

Distance 05-08-2007 02:43 PM

There is no reason whatsoever why this should not work unless you do not have vBshout installed.

bitdefuser 05-08-2007 05:05 PM

It would be nice if after it prunes it would say, "Weekly Shoutbox Prune Complete" in the shoutbox.
Edit: And would include the next time for cleanup but, that's not really necessary.

Distance 05-08-2007 05:16 PM

I was going to implement something where it adds the message

'The shoutbox will auto prune in x minutes.. etc'

I suppose I could add a message for after the prune aswel

bitdefuser 05-08-2007 06:29 PM

Quote:

Because vBshout 2.1 is a file based shoutbox when the the Cron script runs to prune the Shoutbox the database will clear the shouts however the file will still have the shouts stored. Even though the shouts have been cleared the shoutbox will not update until a new shout is made. I plan to release a version that will also clear the html file soon.
Problem solved with my suggestion. :p

Distance 05-08-2007 08:57 PM

I have already solved the problem :)

The problem was making sure it was compatible with both versions 2.0 and 2.1. It was surprisingly easier than what I thought considering they are two totally different systems.

Pending final testing and possibly another feature implemented the new v1.10 will be released tomorrow evening.

Distance

LouiseDM 05-08-2007 09:36 PM

installed :)

Distance 05-09-2007 02:09 PM

.: v1.10 Release Notes :.

Original bug fixed.
When the shoutbox prunes it will display a message saying the shoutbox has been successfully pruned.

D.Ilyin 05-09-2007 02:50 PM

Thank's for update!
BTW Distance is it any chance to do the following:
NOT delete, but rename shouts file (i'm talking about 2.1 version) and create new empty file?

Distance 05-09-2007 02:57 PM

You have the concept of the flatfile system wrong.

This is how it works:

The shoutbox reads from the html file
When a new shout is made it is sent to the database
The database updates the html file

This way everytime someone loads up the shoutbox it only has to read a small html file (with only the latest X shouts stored) without having to bring up the whole shout table.

There would be a way but for the amount of people who would use it it isn't worth the hasstle.

Distance

Mrdby 05-12-2007 12:04 PM

3.6.6?

Distance 05-12-2007 03:45 PM

The vB version says 3.6.X.

This means it will work with all versions of vBulletin 3.6

Distance

vB Nova 05-13-2007 12:56 PM

To make it work for the flatfile version just nick the function out of the vbshout.php file and include it into the cron file. Then it's just a case of running the function to rebuild the .html file.

Distance 05-13-2007 04:15 PM

I worked with the creator to make this.. This is the best way to do it ;)

itsblack 05-14-2007 08:49 AM

Is it possible to only prune the messages which are X days old?

Distance 05-14-2007 06:53 PM

Not with this modification, no.

iCafe 05-23-2007 06:51 AM

Quote:

$vbulletin->db->query("TRUNCATE TABLE `shout`");
it error for any board db use TABLE_PREFIX

fix it to

Quote:

$vbulletin->db->query("TRUNCATE TABLE `" . TABLE_PREFIX . "shout`");

TechDawg 05-25-2007 09:13 PM

Quote:

Originally Posted by iCafe (Post 1253161)
it error for any board db use TABLE_PREFIX

fix it to

Thanks, this fixed my error :)

Distance 06-02-2007 10:43 PM

Thanks, I will update later. :)

YukonMaster 06-16-2007 04:41 AM

Double Post

YukonMaster 06-16-2007 04:42 AM

Quote:

Originally Posted by YukonMaster (Post 1269541)
Database error in vBulletin 3.6.7:

Invalid SQL:
TRUNCATE TABLE `shout`;

MySQL Error : Table 'yukonadm_vbforum.shout' doesn't exist
Error Number : 1146
Date : Saturday, June 16th 2007 @ 01:39:56 AM
Script : http://www.pcitechforums.com/forum/a...cron&cronid=19
Referrer : http://www.pcitechforums.com/forum/a....php?do=modify
IP Address : 70.66.140.217
Username : YukonMaster
Classname : vb_database



What do I do?

Distance 06-18-2007 11:39 AM

Update: v1.20 released

Fixed table prefix for maximum compatibility.

Distance

YukonMaster 06-19-2007 06:22 PM

Quote:

Originally Posted by YukonMaster (Post 1269542)
What do I do?


Heya, Distance, will the update fix this issue?

Distance 07-22-2007 01:56 AM

Yes, it should fix the issue. :)

unicorn2433 07-24-2008 03:49 PM

Will this move the shouts to a forum on the board?


All times are GMT. The time now is 12:50 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.01857 seconds
  • Memory Usage 1,772KB
  • 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
  • (6)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