Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Advanced Maintenance Alert (Read 3567 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 Maintenance Alert
Oct 31st, 2014 at 3:58am
Mark & QuoteQuote  
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 » 
Reason: new zip file 

advanced_maintenance_alert_1611.zip ( 1 KB | 143 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 Maintenance Alert
Reply #1 - Dec 5th, 2014 at 4:04am
Mark & QuoteQuote  
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; 

  

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 Maintenance Alert
Reply #2 - Dec 5th, 2014 at 5:27am
Mark & QuoteQuote  
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
 
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 Maintenance Alert
Reply #3 - Dec 5th, 2014 at 5:41am
Mark & QuoteQuote  
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.
  

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 Maintenance Alert
Reply #4 - Dec 5th, 2014 at 5:50am
Mark & QuoteQuote  
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
 
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 Maintenance Alert
Reply #5 - Dec 6th, 2014 at 5:11am
Mark & QuoteQuote  
Dandello wrote on Dec 5th, 2014 at 5:50am:
I suspect Advanced Maintenace Alert needs to be installed before the Slider Mod.


Works.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
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 Maintenance Alert
Reply #6 - Dec 6th, 2014 at 5:14am
Mark & QuoteQuote  
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> 

  

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

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 Maintenance Alert
Reply #8 - Jan 4th, 2015 at 2:33am
Mark & QuoteQuote  
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
 
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 Maintenance Alert
Reply #9 - Jan 4th, 2015 at 4:08pm
Mark & QuoteQuote  
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
 
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 Maintenance Alert
Reply #10 - Feb 18th, 2016 at 4:34am
Mark & QuoteQuote  
Works for 2.6.12
  

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

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