Welcome, Guest. Please Login or Register.
November 27, 2024, 04:56:13 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.3] Pruned Boards 1.0 « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Beta 1.5.3] Pruned Boards 1.0  (Read 4957 times)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
[Beta 1.5.3] Pruned Boards 1.0
« on: May 27, 2003, 11:51:47 PM »
Reply with quote

This mod quite simply allows you to set the maximum life of threads on a certain board.  (by way of the last post in that thread...)
It does not delete stickied threads, but any other thread is fair game.

Set the fields in Edit Boards to 0 for no pruning.  Any other value will prune that span of days.  (even 360.)

Note that it only prunes once every 24 hours.

Regrettably, this mod does not work with my Redirectection/Locked Boards 1.0.

This mod is not to be used with ttCMS or ttForum.  No questions.

Package Server: http://unknown.network32.net
http://unknown.network32.net/add/pruneboards.zip

-[Unknown]
« Last Edit: May 28, 2003, 01:56:35 PM by [Unknown] » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #1 on: May 28, 2003, 12:22:14 AM »
Reply with quote

nice :)

does it delete an old topic even if it's still getting replies?
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #2 on: May 28, 2003, 12:24:48 AM »
Reply with quote

Quote from: Anguz on May 28, 2003, 12:22:14 AM
nice :)

does it delete an old topic even if it's still getting replies?

No, like I said it's based off the last post...

So, basically, if a topic is a year old, but someone posted a reply yesterday... and you have it st to 5 days... it won't delete it.

-[Unknown]
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #3 on: May 28, 2003, 12:36:15 AM »
Reply with quote

ups.. sorry, didn't get the last post thing... :P

thank you :)
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Valconeye
Full Member
***
Posts: 190


Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #4 on: May 28, 2003, 09:27:10 AM »
Reply with quote

sweet, this mod helps SOOO much Thankyou!

EDIT

I found some errors,  after echo '<br /><hr />' you forgot the ; and when i install, i load up my forum and it says there is an error in the subs.php unable to find the table pruneDays.

I checked in the pruneboards.php and there is no pruneDays, there is however a pruneDats. dunno if this is a typo or not.  :P
« Last Edit: May 28, 2003, 09:53:08 AM by Valconeye » Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #5 on: May 28, 2003, 09:45:10 AM »
Reply with quote

This is really a great mod, I can't wait to get home to try it :)
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Aeon
Full Member
***
Posts: 235


Chaos Forces

never_mind86@hotmail.com WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #6 on: May 28, 2003, 11:27:42 AM »
Reply with quote

Quote from: Webby on May 28, 2003, 09:45:10 AM
I can't wait to get home to try it :)
and why would we care  ::) :P ?
« Last Edit: May 28, 2003, 11:31:04 AM by Anima » Logged

I still don't know what Classes and Object-Orinted do!!?
do you know what they do and why they existed ?!
please tell me and I will appreciate it ..
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #7 on: May 28, 2003, 11:56:48 AM »
Reply with quote

Quote from: Anima on May 28, 2003, 11:27:42 AM
Quote from: Webby on May 28, 2003, 09:45:10 AM
I can't wait to get home to try it :)
and why would we care  ::) :P ?

Do you really HAVE to make funny remarks when I praise the work of [Unknown] ??

If you want to make offtopic remarks, go to the chitchat board  >:(
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #8 on: May 28, 2003, 01:39:54 PM »
Reply with quote

Quote from: Valconeye on May 28, 2003, 09:27:10 AM
sweet, this mod helps SOOO much Thankyou!

EDIT

I found some errors,  after echo '<br /><hr />' you forgot the ; and when i install, i load up my forum and it says there is an error in the subs.php unable to find the table pruneDays.

I checked in the pruneboards.php and there is no pruneDays, there is however a pruneDats. dunno if this is a typo or not.  :P

I renamed the table to pruneDays and put the ';' in the file.

The only problem now is, that I have an error in index.php, do you have an error too ?
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #9 on: May 28, 2003, 01:43:59 PM »
Reply with quote

Darn I changed something last minute and forgot to test it...

One sec...

-[Unknown]
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #10 on: May 28, 2003, 01:55:30 PM »
Reply with quote

Run this query if you installed it before:

ALTER TABLE {$db_prefix}boards
DROP pruneDats;

And then reinstall.

What did we learn from this?  Don't change a couple things and forget to test it!  Oh, well..

-[Unknown]
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #11 on: May 28, 2003, 01:58:16 PM »
Reply with quote

 ;)

and what about the error I get when I put the following in index.php ?


if ($modsettings['pruningLastUpdate'] + 24 * 3600 < time())
        pruneBoards();


??
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #12 on: May 28, 2003, 02:01:55 PM »
Reply with quote

I get no error... are you sure?  What error is it?

You can try...

if (@$modsettings['pruningLastUpdate'] + 24 * 3600 < time())
       pruneBoards();

-[Unknown]
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #13 on: May 28, 2003, 02:05:33 PM »
Reply with quote

the error :

You have an error in your SQL syntax near 'WHERE variable='pruningLastUpdate' LIMIT 1' at line 4

(subs.php line 1390)
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.3] Pruned Boards 1.0
« Reply #14 on: May 28, 2003, 02:09:55 PM »
Reply with quote

Nope, that didn't help :(
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.3] Pruned Boards 1.0 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.062 seconds with 20 queries.