Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Advanced Maintenance Alert (Read 5696 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 Maintenance Alert
Reply #10 - Feb 18th, 2016 at 4:34am
Print Post  
Works for 2.6.12
  

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 Maintenance Alert
Reply #9 - Jan 4th, 2015 at 4:08pm
Print Post  
Batchman wrote on Jan 4th, 2015 at 2:33am:
Yowza! That's hard to miss!


We wanted it REALLY hard to miss.  Cheesy
  

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 Maintenance Alert
Reply #8 - Jan 4th, 2015 at 2:33am
Print Post  
Yowza! That's hard to miss!

Installed smoothly and seems to work fine on my new 2.6.11 test forum.
  

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
Re: Advanced Maintenance Alert
Reply #7 - Dec 12th, 2014 at 4:00pm
Print Post  
New Zip in first post. Checked against 2.6.11
  

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 Maintenance Alert
Reply #6 - Dec 6th, 2014 at 5:14am
Print Post  
Code
Select All
<edit file>
Languages/German/Main.lng
</edit file>

<search for>

1;
</search for>

<add before>
$load_txt{'maint'} = 'Wartung';

</add before>

<edit file>
Languages/German/Post.lng
</edit file>

<search for>

1;
</search for>

<add before>
$post_txt{'616c'} = q~ Das Forum ist im Wartungsmodus! ~;

</add before> 






Code
Select All
<edit file>
Languages/German_Du/Main.lng
</edit file>

<search for>

1;
</search for>

<add before>
$load_txt{'maint'} = 'Wartung';

</add before>

<edit file>
Languages/German_Du/Post.lng
</edit file>

<search for>

1;
</search for>

<add before>
$post_txt{'616c'} = q~ Das Forum ist im Wartungsmodus! ~;

</add before> 

  

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
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Advanced Maintenance Alert
Reply #5 - Dec 6th, 2014 at 5:11am
Print Post  
Dandello wrote on Dec 5th, 2014 at 5:50am:
I suspect Advanced Maintenace Alert needs to be installed before the Slider Mod.


Works.
  

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 Maintenance Alert
Reply #4 - Dec 5th, 2014 at 5:50am
Print Post  
I suspect Advanced Maintenace Alert needs to be installed before the Slider Mod.
  

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 Maintenance Alert
Reply #3 - Dec 5th, 2014 at 5:41am
Print Post  
Ooops, I have now forgotten. The message comes in the Post.pm. Then remove the entry in the package? I think it is better to make the mod again.
  

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 Maintenance Alert
Reply #2 - Dec 5th, 2014 at 5:27am
Print Post  
Assuming I understood the question. In Advanced Maintenance Mod find
Code
Select All
<search for>
        else if (isError == 5) theForm.message.focus();
        return false;
    }
    return true;
</search for>

<replace>
        else if (isError == 5) theForm.message.focus();
        return false;
    }~;
    if ( ( $iamadmin || $iamgmod ) && $maintenance ) {
        $post_alert = qq~    var maintmsg = "$post_txt{'616c'}\\n";
    alert(maintmsg);~;
    }
    $my_q_quote .= $post_alert
    . q~return true;
</replace> 



replace with
Code
Select All
<search for>
        else if (isError == 6) theForm.slider.focus();
        return false;
    }
    return true;
</search for>

<replace>
        else if (isError == 6) theForm.slider.focus();
        return false;
    }~;
    if ( ( $iamadmin || $iamgmod ) && $maintenance ) {
        $post_alert = qq~    var maintmsg = "$post_txt{'616c'}\\n";
    alert(maintmsg);~;
    }
    $my_q_quote .= $post_alert
    . q~return true;
</replace> 

  

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 Maintenance Alert
Reply #1 - Dec 5th, 2014 at 4:04am
Print Post  
Problem with Slider captcha.
Can you solve or otherwise is handmade hot?       

Code
Select All
        alert(msgError);
        if (isError == 1) imWin();
        else if (isError == 2) theForm.name.focus();
        else if (isError == 3) theForm.email.focus();
        else if (isError == 4) theForm.subject.focus();
        else if (isError == 5) theForm.message.focus();
        else if (isError == 6) theForm.slider.focus();
        return false; 

  

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
Advanced Maintenance Alert
Oct 31st, 2014 at 3:58am
Print Post  
For Big Boards with easily confused multiple admins.
This adds the Maintenance message into the header, alert icons into the tabmenu and an alert notice into the post message/post IM process.

0.1 - First release - October 31, 2014
0.2 - bug fixes  Embarrassed December 11, 2014
Now works for 2.6.11

Instructions:

Apply the mod and upload (in ASCII mode):

cgi-bin/yabb2/Admin/Modlist.pm
cgi-bin/yabb2/Languages/English/Main.lng
cgi-bin/yabb2/Languages/English/Post.lng
cgi-bin/yabb2/Sources/Post.pm
cgi-bin/yabb2/Sources/Subs.pm
« Last Edit: Dec 12th, 2014 at 3:36pm by Dandello »  

advanced_maintenance_alert_1611.zip (Attachment deleted | 49 Downloads )

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