Page Index Toggle Pages: 1 [2]  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Advanced Time Ban (Read 10707 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
Re: Advanced Time Ban
Reply #15 - Aug 1st, 2016 at 2:01pm
Mark & QuoteQuote  
Okay - where I'm at on testing on this server: The suspended and banned emails get sent but they are completely messed up.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
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
Re: Advanced Time Ban
Reply #16 - Aug 1st, 2016 at 3:53pm
Mark & QuoteQuote  
The email code was seriously fracked up. 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 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 #17 - Aug 2nd, 2016 at 4:55pm
Mark & QuoteQuote  
I tested the mod. Somehow he is not working correctly. The mail that is to get the blocked user, I get in my mailbox, and looks like this:

  

eMail.jpg ( 69 KB | 213 Downloads )

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 #18 - Aug 2nd, 2016 at 7:00pm
Mark & QuoteQuote  
It should be fixed in the new zip:

In Security.pm find the banning section (lines 902 to 934)
It should look like:
Code (Perl)
Select All
            if ( $email_ban ) {
                 LoadLanguage('Email');
                 if ( $lev eq 'p' ) {
                     $banned_time  = $profile_txt{'p'};
                     $bannedsubj   = $security_txt{'banned'};
                     $bemail       = $banneduseremail;
                     $busersybject = $bannedusersybject;
                 }
                 else {
                     $tmp = time_ban();
                     $banned_time =
                       qq~$security_txt{'ban_permt'} ~ . timeformat($tmb);
                     $bannedsubj   = $security_txt{'suspend'};
                     $bemail       = $suspendeduseremail;
                     $busersybject = $suspendusersybject;
                 }
                 $bannedfor = q{};
                 if ($ban_reason) {
                     $bannedfor =
                       $security_txt{'ban_warn_b'} . $ban_reason . q{ };
                 }
                 $language = ${ $uid . $username }{'language'};
                 require Sources::Mailer;
                 my $message = template_email(
                     $bemail,
                     {
                         'banner'      => ${ $uid . $username }{'realname'},
                         'ban_time'    => $banned_time,
                         'ban_reason'  => $bannedfor,
                         'subject'     => $bannedsubj,
                         'displayname' => ${ $uid . $user }{'realname'},
                     }
                 ); 


  

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 #19 - Aug 3rd, 2016 at 6:27pm
Mark & QuoteQuote  
ACK!!! Smiley
New corrected 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 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 #20 - Aug 9th, 2016 at 4:33pm
Mark & QuoteQuote  
@ Dandello

so far so good, the Mod indeed works, but it is no mail to the exiled, but to myself.
  

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 #21 - Aug 9th, 2016 at 8:44pm
Mark & QuoteQuote  
That's just strange. (I'll look at it tomorrow.)
  

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 #22 - Aug 10th, 2016 at 1:47pm
Mark & QuoteQuote  
New zip in 1st post  Smiley
  

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 #23 - Aug 12th, 2016 at 10:40am
Mark & QuoteQuote  
Is working. Become tonight the German Files correct yet.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
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