Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Advanced Time Ban (Read 16971 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Advanced Time Ban
Reply #8 - Mar 19th, 2015 at 2:23pm
Print Post  
New zips (still assumes you've installed the bug fixes)
  

advanced_timeban_5.zip (Attachment deleted | 42 Downloads )
advanced_timeban_5_ym.zip (Attachment deleted | 37 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Advanced Time Ban
Reply #7 - Mar 18th, 2015 at 1:23pm
Print Post  
AH - Window's case insensitivity bites me again.  Embarrassed
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #6 - Mar 18th, 2015 at 5:23am
Print Post  
Hello

In the Modfie....

Code
Select All
<edit file>
Sources/Sublist.pm
</edit file> 



... should be

<edit file>
Sources/SubList.pm
</edit file>

lg XTC
  

Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Advanced Time Ban
Reply #5 - Mar 12th, 2015 at 4:42pm
Print Post  
New zips - assumes you have replaced Admin/Ban.pm from http://yabbforumsoftware.com/cgi-bin/yabb2/YaBB.pl?num=1426169370
  

advanced_timeban_4.zip (Attachment deleted | 48 Downloads )
advanced_timeban_4_ym.zip (Attachment deleted | 40 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Advanced Time Ban
Reply #4 - Mar 12th, 2015 at 2:13pm
Print Post  
While testing the new GMod section (yes it's getting rebuilt for 2.6.2) I discovered a serious bug in the Ban Utilities. (and with Advanced Time Ban)

Not only does it not save properly from the Admin Center Ban Utilities screen, it doesn't properly update User info if the ban is lifted from the Admin Center.  Cry

to fix: In Subs.pm find
Code (Perl)
Select All
            $users_online{$userToCheck} =
          qq~<span class="userbanned">$maintxt{'banned'}</span>~; 


replace with
Code (Perl)
Select All
        $is_banned = check_banlist( "${$uid.$userToCheck}{'email'}", q{}, "$userToCheck" );
        if ( $is_banned ) {
            $users_online{$userToCheck} = qq~<span class="userbanned">$maintxt{'banned'}</span>~;
        }
        else { $users_online{$userToCheck} =  qq~<span class="useroffline">$maintxt{'61'}</span>~;
            ${ $uid . $userToCheck }{'banned'} = '0|0';
            UserAccount( $userToCheck, 'update' );
        } 



replace Admin/Ban.pm with zipped file

I'll post a new version of Advanced Time Ban sometime today.
  

Ban_adv_fix.zip (Attachment deleted | 41 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Advanced Time Ban
Reply #3 - Jan 27th, 2015 at 10:57pm
Print Post  
More tweaks. New zip in 1st post
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Advanced Time Ban
Reply #2 - Jan 27th, 2015 at 5:07am
Print Post  
JonB has made some suggestions on nomenclature and maybe even adding a 'banned' user status.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #1 - Jan 27th, 2015 at 3:31am
Print Post  
This installed smoothly, and gives all signs of seeming to work properly.
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Advanced Time Ban
Jan 26th, 2015 at 1:05am
Print Post  
Some admins have started using Time Bans and have reported back that there are some necessary functions that needed to be added.

Advanced Time Ban for YaBB 2.6.11
Version 0.3

This mod adds Timed Banning info to the Ban Notice, allows the admin to add the reason for banning into the banlist and the option to send an e-mail ban notice to the banned user.

Version History
---------------
0.1 - First release - Jan 23, 2015
Edited:
0.2 - 'Suspended' language added for non-permanent bans. Permanently banned users are noted as such in Profile 'status'. - Jan 27,2015
0.3 - More tweaks, Jan 27, 2015


Instructions:

Apply the mod and upload (in ASCII mode):

cgi-bin/yabb2/Admin/Modlist.pm
cgi-bin/yabb2/Admin/Ban.pm
cgi-bin/yabb2/Languages/English/Admin.lng
cgi-bin/yabb2/Languages/English/Email.lng
cgi-bin/yabb2/Languages/English/Error.lng
cgi-bin/yabb2/Languages/English/Main.lng
cgi-bin/yabb2/Languages/English/Profile.lng
cgi-bin/yabb2/Sources/Profile.pm
cgi-bin/yabb2/Sources/Security.pm
cgi-bin/yabb2/Sources/Subs.pm
cgi-bin/yabb2/Sources/SubList.pm
cgi-bin/yabb2/Sources/System.pm
public_html/yabbfiles/Templates/default.css

Upload Ban.template to cgi-bin/yabb2/Templates/default/Mods
Edited:
Template tweaks

Edited:
Aug 1st, 2016 at 3:52pm Fixed emails, typos Ver 7

Edited:
Aug 10th, 2016 at 1:45pm More email issues
« Last Edit: Aug 10th, 2016 at 1:46pm by Dandello »  

advanced_timeban_8.zip (Attachment deleted | 22 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint