Posts: 1
Threads: 1
Joined: Nov 2016
Reputation:
0
2016-11-29, 04:27 PM
(This post was last modified: 2016-11-29, 04:29 PM by Jorrit.)
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?
Many thanks in advance!
Posts: 1,082
Threads: 334
Joined: Oct 2012
Reputation:
21
2016-11-30, 01:51 AM
in /inc/languages/english/global.lang.php
$l['postbit_button_warn'] = 'Warn';
Change Warn to whatever you want.
Posts: 807
Threads: 65
Joined: Sep 2011
Reputation:
41
2016-11-30, 02:44 PM
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.
Posts: 3,061
Threads: 212
Joined: Nov 2014
Reputation:
148
2016-11-30, 08:59 PM
(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.
-Ben
Please do not PM me for support. I am looking to be hired for paid services.
You can view my paid services here.
Posts: 807
Threads: 65
Joined: Sep 2011
Reputation:
41
2016-12-01, 01:31 PM
(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.
Posts: 714
Threads: 130
Joined: May 2016
Reputation:
27
2016-12-01, 02:41 PM
(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).
Software Engineer specializing in C# Program Development
Posts: 807
Threads: 65
Joined: Sep 2011
Reputation:
41
2016-12-02, 12:04 PM
(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
Posts: 714
Threads: 130
Joined: May 2016
Reputation:
27
2016-12-02, 02:51 PM
(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
Software Engineer specializing in C# Program Development
Posts: 807
Threads: 65
Joined: Sep 2011
Reputation:
41
2016-12-02, 03:05 PM
(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 
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.
Posts: 714
Threads: 130
Joined: May 2016
Reputation:
27
2016-12-02, 03:08 PM
(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 
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
Software Engineer specializing in C# Program Development
|