YaBB SE Community

Development => Completed mods => Topic started by: Jack.R.Abbit on September 27, 2002, 01:29:22 AM

Title: [Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on September 27, 2002, 01:29:22 AM
This mod adds a link into the Admin page to allow you to remove every post by a user all at once.  You can also choose to remove any active topics that the user has started.  Another check box lets you get a status report of what it is trying to do just in case it fails... you'll know why and where.

removepostsbymember (http://www.netamorphic.com/mods.by.jack/) - Updated 06/05/2003

Updates:
10/09/02 - Implemented horseman's improvments to the RemovePostsByMember.php to move all hard coded text into the lang file and added the german.lng file to the mod.  Thank you Horseman.

03/03/2003 - Updated it for 1.5.1RC1
04/22/2003 - Updated it for 1.5.1 Final
06/05/2003 - Updated/verified it for 1.5.2 & 1.5.3

Enjoy!

I should mention that be sure to back up your data before applying this, or any, mod.  Everything I post works fine in my YaBB installation but your milage may vary.

-Jack
Title: Re:[Beta 1.4.1] Remove Posts By Member 1.0
Post by: Jackol on September 29, 2002, 04:57:56 PM
Any idea when this mod will be in completed final form? This is a MUCH needed feature that i was surprised wasn't implemented into YaBB at all. There is basically no type of spam protection in the YaBB board.
Title: Re:[Beta 1.4.1] Remove Posts By Member 1.0
Post by: Jack.R.Abbit on September 30, 2002, 01:10:58 AM
As far as I am concerned, it IS done.  But following the suggested rules of the board, I must put it through the "beta" stage before declaring it done.  I tested it on my 1.4.1 board in every different scenario that I could think of and have had no problems.  IF this is truly something you need, then you are the perfect person to give it a go.  As always... backup before you move ahead.  I welcome any and all feedback on this mod.  Its wasn't something I needed but the idea sounded like a good challenge that turned out to be not such a big deal.

-Jack
Title: Re:[Beta 1.4.1] Remove Posts By Member 1.0
Post by: Horseman on October 08, 2002, 07:50:33 PM
great MOD, its work fine on my board  :D

i have  all hardcodet text in your file rewritten for language files.
you can download the modified version here:
http://www.h-h-c.de/downloads/RemovePostsByMember.zip (http://www.h-h-c.de/downloads/RemovePostsByMember.zip)
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on October 21, 2002, 04:34:35 PM
Big thanks to Horseman for the language file improvements.

I've moved this from Beta to Done!

-Jack
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: Coyote on October 26, 2002, 07:39:59 PM
Hi Jack,

Once again you have written a great mod.

I have noticed one small thing, that it would be nice to add to this mod.

When a user signs up they use a member name, and as soon as they delete themselves there name stays attached to the post and also drops off the user list. So your mod no longer sees them because  it only removes current members, it would be nice if your mod had a textbox where a username could be entered and your script did its stuff with that as well :)

Have I made sense?

Kind Regards,
Tony.
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on October 27, 2002, 12:46:49 AM
does make sense... I'll look into it.

-Jack
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: Ben_S on November 02, 2002, 09:26:59 PM
I like it :)

Works well
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: CrimSon_ReD on November 03, 2002, 01:10:37 PM
Hmmm I keep getting a german.lng error!
When trying to use boardmod but I dont run the german.lng just the english.lng so it doesnt update it!
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: Ben_S on November 03, 2002, 07:31:13 PM
edit the mod file and remove the references to german.lng then
Title: Re:[Done 1.4.1] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on November 04, 2002, 12:37:19 PM

When a user signs up they use a member name, and as soon as they delete themselves there name stays attached to the post and also drops off the user list. So your mod no longer sees them because  it only removes current members, it would be nice if your mod had a textbox where a username could be entered and your script did its stuff with that as well :)

I have looked into this but unfortunately because of the way that YabbSE deals with this situation there is no simple way to acheive this.



Hmmm I keep getting a german.lng error!
When trying to use boardmod but I dont run the german.lng just the english.lng so it doesnt update it!

I don't do BoardMod.  If you have modified the mod in any way to use with BoardMod you are on your own.  Sorry.  The YabbPak should install flawlessly.

-Jack
Title: Re:[Done 1.4.1/1.5.1RC1] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on March 03, 2003, 08:34:04 PM
Updated this for 1.5.1RC1

-Jack
Title: Re:[Done 1.4.1/1.5.1RC1] Remove Posts By Member 1.1
Post by: Coyote on April 13, 2003, 05:35:05 AM
May I make another suggestion?

If a user has does something bad enough to warrent all his/her posts being removed - would it not make sense to remove all the IM's that the user has done as well?

Just a thought.



Title: Re:[Done 1.4.1/1.5.1RC1] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on April 13, 2003, 08:35:51 PM
never thought of that... I look into it when I update this for 1.5.1 final.

-Jack
Title: Re:[Done 1.4.1 & 1.5.1] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on April 22, 2003, 07:40:48 PM
Updated/Tested to work in 1.5.1 Final.

(did not get a chance to also remove IMs but I've not forgotten)

-Jack
Title: Re:[Done 1.4.1 & 1.5.1] Remove Posts By Member 1.1
Post by: Wiziwig on April 22, 2003, 11:28:23 PM
Does this mean it will or wont?? Sorry for the brain lag on this one..  :)

Updated/Tested to work in 1.5.1 Final.

(did not get a chance to also remove IMs but I've not forgotten)

-Jack
Title: Re:[Done 1.4.1 & 1.5.1] Remove Posts By Member 1.1
Post by: [Unknown] on April 23, 2003, 12:14:31 AM
Does this mean it will or wont?? Sorry for the brain lag on this one..  :)

In other words, it will work but he hasn't yet added the extra feature he was thinking of adding.

-[Unknown]
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on June 05, 2003, 12:52:44 PM
Updated/Tested to work in 1.5.2 & 1.5.3

(Still no IM removal.... but I've not forgotten ;))

-Jack
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Royce on August 11, 2003, 04:59:30 PM
I get the following error when trying to remove posts by members....

"You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1
File: C:\Inetpub\www.mthigh.com\forum\Sources\RemovePostsByMember.php
Line: 166"

Any help would be great!
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on August 11, 2003, 05:19:23 PM
There is no reason for that query not to work.  What versionof YaBBSE, PHP and MySQL are you using?
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Royce on August 11, 2003, 06:14:22 PM
All the latest versions on IIS.  You know what, it was only giving me that error for one member.  I just tried it on another and it worked fine.  Wierd.
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Jack.R.Abbit on August 12, 2003, 09:43:31 AM
was there anything about that usernmame that you think may have had something to do with it?

-Jack
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Royce on August 12, 2003, 09:58:19 AM
No.  I checked the profile and there were no crazy characters or anything like that.  Oh well, I guess I'll let you know if it ever happens again.  Probably just one of those flukes that happens once.
Title: Re:[Done 1.4.1 & 1.5.X] Remove Posts By Member 1.1
Post by: Snoader on February 02, 2004, 04:10:30 AM

Attempting to delete ID_MSG(126307) - Courgette in salade?
ID_MSG(126307) is the first message in an active topic
  Attempting to delete ID_TOPIC(6005)
  Deleted ID_TOPIC(6005)
Deleted ID_MSG(126307)

Attempting to delete ID_MSG(126595) - Re:Courgette in salade?
ID_MSG(126595) is the first message in an empty topic
  Attempting to delete ID_TOPIC(6005)
      Database Error

      You have an error in your SQL syntax near 'LIMIT 1' at line 1
      File:
      .../forum/Sources/RemovePostsByMember.php
      Line: 166

So, the code tries to remove an already removed topic, which causes an error.

Hope this helps!