Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic In-Thread Multi Delete SP1.2 (Read 3374 times)
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
In-Thread Multi Delete SP1.2
Jan 30th, 2003 at 12:51am
Print Post  
It seems all these mods only need small changes to work with SP1.2, but here's the in-thread multi delete mod done for SP1.2 Smiley

Description:

Allows admins/moderators/global Moderators (settable in admin center) to delete multiple posts within a thread quickly and easily. For the lazy types.

Download: attached

P.S. Thanks to Dummy for all hs ideas Cheesy
« Last Edit: Jan 30th, 2003 at 3:46am by Shoeb Omar »  

multidel.mod ( 8 KB | Downloads )

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
Dummy Proof
God Member
*****
Offline


I hate Bosses!  Now get
to work!

Posts: 991
Location: Outside L.A.
Joined: Aug 8th, 2002
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #1 - Feb 1st, 2003 at 4:19am
Print Post  
Shoeb, seeing how you made the changes to correct the conflict that affected other mods(ie. Pollsv3, Topic Rating, etc.), does this also install and work properly on a SP1.1 board?

Dummy
  

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Back to top
WWW  
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #2 - Feb 1st, 2003 at 5:15am
Print Post  
Quote:
Shoeb, seeing how you made the changes to correct the conflict that affected other mods(ie. Pollsv3, Topic Rating, etc.), does this also install and work properly on a SP1.1 board?

Dummy


I highly doubt it - the things I had to change would probably make it incompatible with sp1.1 (doh! Wink)

My philosophy now though is to only support my mods with the latest versions of yabb, so I don't think it would affect me Wink.
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
Dummy Proof
God Member
*****
Offline


I hate Bosses!  Now get
to work!

Posts: 991
Location: Outside L.A.
Joined: Aug 8th, 2002
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #3 - Feb 13th, 2003 at 1:59am
Print Post  
Installed this on a new SP1.2 and it worked as advertised!  Grin (also had Polls v3 installed and the old conflict has indeed been corrected).

But... while testing, I noticed that the post count of the Members who had their posts deleted, did not get decremented by the number of posts deleted that they posted.

So I added the code below and it appears to work correctly.(I borrowed the routine from ModifyMessage2 sub).

In ModifyMessage.pl, in the "sub MultiDel" find this
Code
Select All
			chomp $mfn; 


and add after it this
Code
Select All
			if( $musername ne 'Guest' ) {
				fopen(FILE, "$memberdir/$musername.dat");
				@userprofile = <FILE>;
				fclose(FILE);
				chomp $userprofile[6];
				if ($userprofile[6] > 0)
				{
					--$userprofile[6];
					$userprofile[6] .= "\n";
					fopen(FILE, ">$memberdir/$musername.dat", 1);
					print FILE @userprofile;
					fclose(FILE);
				}
			}
 



Dummy
  

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Back to top
WWW  
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #4 - Feb 13th, 2003 at 2:28am
Print Post  
yeh, I decided not to do that just incase you delete 40 posts form a thread Wink.
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #5 - Feb 15th, 2003 at 1:46am
Print Post  
Hey Omar, did you ever fix the problem with this mod causing threads to become inaccesable? When I used it before, it could cause the thread IDs numbers to be changed and thus become inaccessable.
  
Back to top
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #6 - Feb 15th, 2003 at 1:50am
Print Post  
KingOfChaos wrote on Feb 15th, 2003 at 1:46am:
Hey Omar, did you ever fix the problem with this mod causing threads to become inaccesable? When I used it before, it could cause the thread IDs numbers to be changed and thus become inaccessable.


Must've been an issue on your part - dn't see how that could happen
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #7 - Feb 15th, 2003 at 2:25am
Print Post  
It was a similar problem to the one discussed with people posting to or editing the same thread at the same time.  I am wondering if modifying more than one thread at a time using this particular mod doesn't do the same thing.
  
Back to top
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: In-Thread Multi Delete SP1.2
Reply #8 - Feb 15th, 2003 at 2:28am
Print Post  
KingOfChaos wrote on Feb 15th, 2003 at 2:25am:
It was a similar problem to the one discussed with people posting to or editing the same thread at the same time.  I am wondering if modifying more than one thread at a time using this particular mod doesn't do the same thing.


eh, sp1.2 fixed the bug aout modifying/editing/whatever you just said at the saqme time... soo, this should wokr fine then Smiley.
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
cristella
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Jan 23rd, 2003
Gender: Female
Re: In-Thread Multi Delete SP1.2
Reply #9 - Mar 6th, 2003 at 7:53am
Print Post  
This mod seemed to install fine, i am testing it out now, and after i tick the boxes next to a post and then hit delete message i get an error which says:

An Error Has Occured!

Unable to open .txt

And there was another error which said something like "This category doesnt exist" and then numbers.

Sorry iv uninstalled it now so ic ant give  details on that last error


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint