Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Advanced Time Ban (Read 16958 times)
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #23 - Aug 12th, 2016 at 10:40am
Print Post  
Is working. Become tonight the German Files correct yet.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
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 #22 - Aug 10th, 2016 at 1:47pm
Print Post  
New zip in 1st post  Smiley
  

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

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


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #20 - Aug 9th, 2016 at 4:33pm
Print Post  
@ Dandello

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

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
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 #19 - Aug 3rd, 2016 at 6:27pm
Print Post  
ACK!!! Smiley
New corrected 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 #18 - Aug 2nd, 2016 at 7:00pm
Print Post  
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
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #17 - Aug 2nd, 2016 at 4:55pm
Print Post  
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 (Attachment deleted | 25 Downloads )

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
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 #16 - Aug 1st, 2016 at 3:53pm
Print Post  
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
 
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 #15 - Aug 1st, 2016 at 2:01pm
Print Post  
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
 
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 #14 - Jul 31st, 2016 at 11:57pm
Print Post  
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 »  

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


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #13 - Jul 31st, 2016 at 11:32am
Print Post  
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.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
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 #12 - Feb 18th, 2016 at 6:10pm
Print Post  
Updated for 2.6.12.
  

advanced_timeban_6.zip (Attachment deleted | 34 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 #11 - Feb 18th, 2016 at 4:43pm
Print Post  
Advanced Time Ban is part of 2.7.00
  

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 #10 - Oct 29th, 2015 at 2:14pm
Print Post  
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
 
alqutob
New Member
*
Offline


I Love YaBBarabic!

Posts: 6
Location: Jordan
Joined: Dec 19th, 2014
Gender: Male
Re: Advanced Time Ban
Reply #9 - Apr 13th, 2015 at 9:06pm
Print Post  
Done !

Arabic version is done and tested

Thank you very much
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint