Page Index Toggle Pages: 1
Topic Tools
Normal Topic [Standard] Delete Broadcast PM Counter Issue (Read 3,488 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
[Standard] Delete Broadcast PM Counter Issue
Sep 17th, 2009 at 6:28pm
Post Tools
Before see issue, I see this:

Quote:
Good Evening YaBB Administrator,
you have 45 messages, and no new messages.


Send Broadcast message as guest or as Admin/Gmod (same issue). Delete Broadcast Message, then you see this:

Quote:
Good Evening YaBB Administrator,
you have 0 messages


It will fix, when you logout and login again to see

Quote:
Good Evening YaBB Administrator,
you have 45 messages, and no new messages.
« Last Edit: Mar 25th, 2010 at 2:57am by »  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: [Standard] Delete Broadcast PM Counter Issue
Reply #1 - Jun 18th, 2010 at 5:48pm
Post Tools
Put the highlighted into mycenter.pl over what is currrently in the if statements:

Code
Select All
	if ($FORM{'imaction'} eq $inmes_txt{'remove'} || $INFO{'action'} eq $inmes_txt{'remove'} || $INFO{'deleteid'}) {
		my %CountStore;
		if ($INFO{'caller'} == 2)    { ${$username}{'PMmoutnum'} = 0; }
		elsif ($INFO{'caller'} == 4) { ${$username}{'PMdraftnum'} = 0; }
		elsif ($INFO{'caller'} != 3 && $INFO{'caller'} != 5) { ${$username}{'PMmnum'} = 0; ${$username}{'PMimnewcount'} = 0; }

		if ($INFO{'deleteid'}) { $FORM{"message" . $INFO{'deleteid'}} = 1; } # singel delete

		foreach (@messages) {
			my @m = split(/\|/, $_);
			if (!exists $FORM{"message" . $m[0]}) {
				print USRFILE $_;

				if ($INFO{'caller'} == 2)    { ${$username}{'PMmoutnum'}++; }
				elsif ($INFO{'caller'} == 3) { $CountStore{$m[13]}++; }
				elsif ($INFO{'caller'} == 4) { ${$username}{'PMdraftnum'}++; }
				elsif ($INFO{'caller'} != 5) { ${$username}{'PMmnum'}++; ${$username}{'PMimnewcount'}++ if $m[12] =~ /u/; } 


« Last Edit: Jun 18th, 2010 at 5:48pm by Unilat »  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: [Standard] Delete Broadcast PM Counter Issue
Reply #2 - Jun 18th, 2010 at 5:57pm
Post Tools
Thnx. Works.

New
/cgi-bin/yabb2/Sources/MyCenter.pl
in CVS/SVN.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top