Page Index Toggle Pages: [1] 2  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Advanced Time Ban (Read 10708 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Advanced Time Ban
Jan 26th, 2015 at 1:05am
Mark & QuoteQuote  
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 » 
Reason: New Zip 

advanced_timeban_8.zip ( 6 KB | 276 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Advanced Time Ban
Reply #1 - Jan 27th, 2015 at 3:31am
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #2 - Jan 27th, 2015 at 5:07am
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #3 - Jan 27th, 2015 at 10:57pm
Mark & QuoteQuote  
More tweaks. New zip in 1st post
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #4 - Mar 12th, 2015 at 2:13pm
Mark & QuoteQuote  
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 ( 3 KB | 278 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #5 - Mar 12th, 2015 at 4:42pm
Mark & QuoteQuote  
New zips - assumes you have replaced Admin/Ban.pm from http://yabbforumsoftware.com/cgi-bin/yabb2/YaBB.pl?num=142616937
  

advanced_timeban_4.zip ( 6 KB | 269 Downloads )
advanced_timeban_4_ym.zip ( 6 KB | 256 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Advanced Time Ban
Reply #6 - Mar 18th, 2015 at 5:23am
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #7 - Mar 18th, 2015 at 1:23pm
Mark & QuoteQuote  
AH - Window's case insensitivity bites me again.  Embarrassed
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #8 - Mar 19th, 2015 at 2:23pm
Mark & QuoteQuote  
New zips (still assumes you've installed the bug fixes)
  

advanced_timeban_5.zip ( 6 KB | 262 Downloads )
advanced_timeban_5_ym.zip ( 6 KB | 268 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box alqutob
New Member
*
Offline


I Love YaBBarabic!

Posts: 6
Location: Jordan
Joined: Dec 19th, 2014
Gender: Male
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #9 - Apr 13th, 2015 at 9:06pm
Mark & QuoteQuote  
Done !

Arabic version is done and tested

Thank you very much
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #10 - Oct 29th, 2015 at 2:14pm
Mark & QuoteQuote  
Dutch/Nederlands

In Email.lng find
Code
Select All
1; 



Add above
Code
Select All
$yabbtags{'banneduseremail'} = q~scherm naam~;
 $emaildesc{'banneduseremail'} = q~De verbannen gebruiker Notificatie email~;
 $bannedusersybject = q~Uw account verbannen op~;
 $banneduseremail = q~Hallo, {yabb displayname}:

 U bent verbannen van {yabb mbname} {yabb ban_time} door {yabb banner}{yabb ban_reason}.

 Met vriendelijke groet,
 Het {yabb mbname} team
 <a href="{yabb scripturl}">{yabb scripturl}</a>
 ~;

 $yabbtags{'suspendeduseremail'} = q~scherm naam~;
 $emaildesc{'suspendeduseremail'} = q~De verbannen gebruiker Notificatie email~;
 $suspendusersybject = q~Uw account is geschorst op~;
 $suspendeduseremail = q~Hallo, {yabb displayname}:

 Uw account op {yabb mbname} is geschorst {yabb ban_time} door {yabb banner}{yabb ban_reason}.

 Met vriendelijke groet,
 Het {yabb mbname} team
 <a href="{yabb scripturl}">{yabb scripturl}</a>
 ~;

  



In Profile.lng
find
Code
Select All
1; 


add before
Code
Select All
$profile_txt{'ban_page'} = q~Verbod op~;
 $profile_txt{'ban_enter'} = q~Verbod~;
 $profile_txt{'ban_cancel'} = q~Annuleren~;
 $profile_txt{'ban_reason'} = 'Reden voor het verbod op <span class="small">(Optioneel)</span>';
 $profile_txt{'email_ban'} = 'Email gebruiker met betrekking tot verbod';
 $profile_txt{'ban_for'} = 'voor een';

  



Many thanks to Pieszyce for the Dutch/Nederlands translation.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #11 - Feb 18th, 2016 at 4:43pm
Mark & QuoteQuote  
Advanced Time Ban is part of 2.7.00
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #12 - Feb 18th, 2016 at 6:10pm
Mark & QuoteQuote  
Updated for 2.6.12.
  

advanced_timeban_6.zip ( 3 KB | 197 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Advanced Time Ban
Reply #13 - Jul 31st, 2016 at 11:32am
Mark & QuoteQuote  
I have now tested this mod for 2.6.12. So he works, but the excommunicated do not get mail. I also only the display window for banning. For suspending nothing appears on the screen. Please check the mod.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Advanced Time Ban
Reply #14 - Jul 31st, 2016 at 11:57pm
Mark & QuoteQuote  
I just got back in town so I'll check this tomorrow.
Edited:
Okay, Suspended is the term we're using for non-permanent bans. So that gets chosen automatically if the admin has not chosen to ban the user permanently. Permanently banned users also get a 'banned' flag in their profile.

Now to check why emails aren't being sent out. (tomorrow.)
« Last Edit: Aug 1st, 2016 at 2:25am by Dandello » 
Reason: More info 

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Advanced Time Ban

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry