Welcome, Guest. Please Login or Register.
May 10, 2025, 01:17:47 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Delete old thread mod needed « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Delete old thread mod needed  (Read 815 times)
queks
Jr. Member
**
Posts: 86


I'm a llama!

Delete old thread mod needed
« on: December 26, 2002, 03:28:08 AM »
Reply with quote

current delete old thread function only allow deleting of all old thread base on specifying the date. My board contain some FAQ so if i delete base on date, all my FAQ will be wipe out.

I hope to have a  delete old thread mod that allows admin to select which category they want to delete as similar to the check box selection in the search function, then specified the date to delete the thread on that category.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Delete old thread mod needed
« Reply #1 on: December 26, 2002, 03:49:03 AM »
Reply with quote

Check out my Don't Del Old Stickies mod.  It might work for you, if you just sticky all the faqs. (and it works in 1.5 and 1.4.1)

-[Unknown]
Logged
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #2 on: December 26, 2002, 06:16:47 AM »
Reply with quote

i would prefer a mod that allow me to choose the category that i want to delete. Some category like General and sports can be deleted every month, others like infomation, faq and important discussion may need to keep for 6 months to 1 yrs.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Delete old thread mod needed
« Reply #3 on: December 26, 2002, 06:22:36 AM »
Reply with quote

Alright, I'll see what I can do ;).

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


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Delete old thread mod needed
« Reply #4 on: December 26, 2002, 07:54:31 AM »
Reply with quote

Alright done...

Package Server: http://gbaetc.homeip.net/yypack (use my package manager fix to add it)
Zip file: http://gbaetc.homeip.net/yypack/remoldthreadsboards.zip
YaBBpak: http://gbaetc.homeip.net/yypack/remoldthreadsboards.mod.yp
Boardmod: http://gbaetc.homeip.net/yypack/remoldthreadsboards.mod

Hope you find it useful...
It lets you pick what boards to remove from, pretty simple.  Just get to the confirmation page from the admin page and you'll see it.  Warning: it's not compatible with my don't del old stickies mod.

-[Unknown]
Logged
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #5 on: December 26, 2002, 11:07:17 AM »
Reply with quote

Thks. Will try it later.
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Delete old thread mod needed
« Reply #6 on: December 27, 2002, 10:22:20 AM »
Reply with quote

have you added this to the completed mods board? please do :)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #7 on: December 31, 2002, 03:39:07 AM »
Reply with quote

i got step 1 and 2 failed on yabbse v1.5.0
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Delete old thread mod needed
« Reply #8 on: December 31, 2002, 05:53:57 AM »
Reply with quote

Hmmm... I think I accidently screwed the file.  (I was having trouble with my server...)

I'll reupload it.

[update: Okay, reuploaded and tested it's now working... I think I did the old one in binary mode or something...?]

-[Unknown]
« Last Edit: December 31, 2002, 06:15:03 AM by [Unknown] » Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Delete old thread mod needed
« Reply #9 on: December 31, 2002, 10:49:05 AM »
Reply with quote

Yes please do  ;D

Even though I don't need this mod, nad am having problems creating all my mods on the list (can't think) lack of sleep lol
Logged
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #10 on: December 31, 2002, 05:09:49 PM »
Reply with quote

Havent try out yet but installation work well. Thks.
Logged
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #11 on: January 08, 2003, 01:25:35 PM »
Reply with quote

To Unknown :

has you tested out this function ?. Cos i test it with selecting 1 board to delete from and instead of deleting 2 old thread, it deleted 2 thousand over thread from all my board  :o but i can't locate where it delete from ?. But the deletion did not complete its process due to time out.

Can you create it with a confirmation button to let user confirm the deletion before the actual deletion take place. Thks.
Logged
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #12 on: January 09, 2003, 04:56:15 PM »
Reply with quote

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


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Delete old thread mod needed
« Reply #13 on: January 09, 2003, 05:06:08 PM »
Reply with quote

Hmmm.... just noticed I didn't copy one of the blocks of changes.....

Strange.  I must've been especaily tired when I made this...

Open up RemoveOldThreads.php and search and replace:

$request = mysql_query("SELECT t.ID_TOPIC, t.ID_BOARD, t.ID_POLL FROM {$db_prefix}topics AS t, {$db_prefix}messages AS m WHERE (m.ID_MSG = t.ID_LAST_MSG AND m.posterTime < $threshold);");
For:

$request = mysql_query("SELECT t.ID_TOPIC, t.ID_BOARD, t.ID_POLL FROM {$db_prefix}topics AS t, {$db_prefix}messages AS m WHERE (m.ID_MSG = t.ID_LAST_MSG AND m.posterTime < $threshold AND t.ID_BOARD = '$doboard');");
This would have made it behave normally... only look like it did it several times more than normal.

-[Unknown]
Logged
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #14 on: January 10, 2003, 01:45:54 AM »
Reply with quote

Is there anyway to add it a confirmation and cancel button before the actual deletion ?
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Delete old thread mod needed « 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.041 seconds with 20 queries.