Welcome, Guest. Please Login or Register.
May 10, 2025, 02:38:24 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 816 times)
queks
Jr. Member
**
Posts: 86


I'm a llama!

Re:Delete old thread mod needed
« Reply #15 on: January 26, 2003, 10:04:46 AM »
Reply with quote

Quote from: [Unknown] on January 09, 2003, 05:06:08 PMFor:

$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]

Hi, found that you code do not work due to $doboard. Instead of the abv variable, it should be $remoldthreadsboard.

Anyway, are you able to add (display the thread heading and a confirm button)  before the actual deletion take place. Thks.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Delete old thread mod needed
« Reply #16 on: January 26, 2003, 10:28:56 AM »
Reply with quote

To my recollection, $doboard was used in a foreach - $remoldthreadsboard would be an array.

Of course, this was the first (yes, first) mod I ever made... sorry I did so poorly.

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


I'm a llama!

Re:Delete old thread mod needed
« Reply #17 on: January 27, 2003, 12:23:49 PM »
Reply with quote

It work great to me. Thks for your help
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.036 seconds with 21 queries.