MyBB Community Forums
[How To?] Change text of warning button - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Change text of warning button (/thread-206270.html)



Change text of warning button - Jorrit - 2016-11-29

Hi lads,

Tried to search the forums but couldn't find the solution. 

Does anyone know how I can change the text of the warning button?

[Image: oxSwaMm.jpg]

Many thanks in advance!


RE: Change text of warning button - metulburr - 2016-11-30

in /inc/languages/english/global.lang.php

$l['postbit_button_warn'] = 'Warn';
Change Warn to whatever you want.


RE: Change text of warning button - sarisisop - 2016-11-30

I prefer this way.

AdminCP > Configuration > Languages > English (American) > Options > Edit language variables > global.lang.php > Edit > postbit_button_warn.

Change the text and save.


RE: Change text of warning button - Ben - 2016-11-30

(2016-11-30, 01:51 AM)metulburr Wrote: in /inc/languages/english/global.lang.php

$l['postbit_button_warn'] = 'Warn';
Change Warn to whatever you want.

This would be the recommended way.


RE: Change text of warning button - sarisisop - 2016-12-01

(2016-11-30, 08:59 PM)Ben Wrote:
(2016-11-30, 01:51 AM)metulburr Wrote: in /inc/languages/english/global.lang.php

$l['postbit_button_warn'] = 'Warn';
Change Warn to whatever you want.

This would be the recommended way.


Hello Ben can I ask why you say this is the recommended way?

I have often read that it is best make changes in the AdminCP as much as possible.

Thank you.


RE: Change text of warning button - Lunorian - 2016-12-01

(2016-12-01, 01:31 PM)sarisisop Wrote:
(2016-11-30, 08:59 PM)Ben Wrote:
(2016-11-30, 01:51 AM)metulburr Wrote: in /inc/languages/english/global.lang.php

$l['postbit_button_warn'] = 'Warn';
Change Warn to whatever you want.

This would be the recommended way.


Hello Ben can I ask why you say this is the recommended way?

I have often read that it is best make changes in the AdminCP as much as possible.

Thank you.

File edits should always be a last resort, by doing things in the admin CP, you ensure that your input is validated, and severe issues are avoided (I.e. editing a php file could cause loading issues if you make an error, the admin panel, if I recall correctly, avoids this issue altogether).


RE: Change text of warning button - sarisisop - 2016-12-02

(2016-12-01, 02:41 PM)Deatives Wrote: File edits should always be a last resort, by doing things in the admin CP, you ensure that your input is validated, and severe issues are avoided (I.e. editing a php file could cause loading issues if you make an error, the admin panel, if I recall correctly, avoids this issue altogether).


Yes that's what I thought too.

Be interesting to know how others make changes as I always try to do as much as possible from AdminCP


RE: Change text of warning button - Lunorian - 2016-12-02

(2016-12-02, 12:04 PM)sarisisop Wrote:
(2016-12-01, 02:41 PM)Deatives Wrote: File edits should always be a last resort, by doing things in the admin CP, you ensure that your input is validated, and severe issues are avoided (I.e. editing a php file could cause loading issues if you make an error, the admin panel, if I recall correctly, avoids this issue altogether).


Yes that's what I thought too.

Be interesting to know how others make changes as I always try to do as much as possible from AdminCP

You can use the AdminCP or if you feel comfortable you can do direct language file edits. It's your personal preference. That being said if you do direct language file edits, please understand the possible issues that can occur. Let us know if you have any further questions Smile


RE: Change text of warning button - sarisisop - 2016-12-02

(2016-12-02, 02:51 PM)Deatives Wrote:
(2016-12-02, 12:04 PM)sarisisop Wrote:
(2016-12-01, 02:41 PM)Deatives Wrote: File edits should always be a last resort, by doing things in the admin CP, you ensure that your input is validated, and severe issues are avoided (I.e. editing a php file could cause loading issues if you make an error, the admin panel, if I recall correctly, avoids this issue altogether).


Yes that's what I thought too.

Be interesting to know how others make changes as I always try to do as much as possible from AdminCP

You can use the AdminCP or if you feel comfortable you can do direct language file edits. It's your personal preference. That being said if you do direct language file edits, please understand the possible issues that can occur. Let us know if you have any further questions Smile


Yes I know. I wasn't asking the question.

The OP asked how to change the text and got two answers, then Ben said it was recommended to do it in core files. I was trying to get clarification on why he said it was best as he is on MyBB Staff.

But thank you anyway.


RE: Change text of warning button - Lunorian - 2016-12-02

(2016-12-02, 03:05 PM)sarisisop Wrote:
(2016-12-02, 02:51 PM)Deatives Wrote:
(2016-12-02, 12:04 PM)sarisisop Wrote:
(2016-12-01, 02:41 PM)Deatives Wrote: File edits should always be a last resort, by doing things in the admin CP, you ensure that your input is validated, and severe issues are avoided (I.e. editing a php file could cause loading issues if you make an error, the admin panel, if I recall correctly, avoids this issue altogether).


Yes that's what I thought too.

Be interesting to know how others make changes as I always try to do as much as possible from AdminCP

You can use the AdminCP or if you feel comfortable you can do direct language file edits. It's your personal preference. That being said if you do direct language file edits, please understand the possible issues that can occur. Let us know if you have any further questions Smile


Yes I know. I wasn't asking the question.

The OP asked how to change the text and got two answers, then Ben said it was recommended to do it in core files. I was trying to get clarification on why he said it was best as he is on MyBB Staff.

But thank you anyway.

Oh I see. Hopefully @Ben can provide some clarity on why he recommends file edits over using the AdminCP soon Smile