INTRODUCTION:
MyBB Internal/SQL Errors can be quite scary. You usually come for help as you have no idea what to do. Fixing the error is definitely important but something even more important is the user. What will a user think if he sees that kind of message while he was happily browsing through your forum? Not all users will know what it means or what to do. The message in the footer asks you to contact the MyBB Group for support. Well I think it's pretty obvious that if something is operating incorrectly then you should ask for support and fix it. So instead, it should be telling users what's happening and what can they do to help. And that's what I will be teaching you in this tutorial.
TUTORIAL:
1. Open the file /inc/class_error.php.
2. Find the following piece of code in line 542:
3. Replace what's inside <p id="footer"></p> with your own custom message. (You can use HTML or PHP here)
4. Find the following piece of code in line 564:
5. Replace what's inside <p id="mybb_error_footer"></p> with the same custom message from step 3.
CONCLUSION:
If you did everything correctly you should end up with something like the example below. And even though I only talked about editing the footer message, you can do a lot more. You can edit colors, edit fonts, replace the logo and even move things around.
MyBB Internal/SQL Errors can be quite scary. You usually come for help as you have no idea what to do. Fixing the error is definitely important but something even more important is the user. What will a user think if he sees that kind of message while he was happily browsing through your forum? Not all users will know what it means or what to do. The message in the footer asks you to contact the MyBB Group for support. Well I think it's pretty obvious that if something is operating incorrectly then you should ask for support and fix it. So instead, it should be telling users what's happening and what can they do to help. And that's what I will be teaching you in this tutorial.
TUTORIAL:
1. Open the file /inc/class_error.php.
2. Find the following piece of code in line 542:
<p id="footer">Please contact the <a href="http://mybb.com">MyBB Group</a> for support.</p>
3. Replace what's inside <p id="footer"></p> with your own custom message. (You can use HTML or PHP here)
4. Find the following piece of code in line 564:
<p id="mybb_error_footer">Please contact the <a href="http://mybb.com">MyBB Group</a> for support.</p>
5. Replace what's inside <p id="mybb_error_footer"></p> with the same custom message from step 3.
CONCLUSION:
If you did everything correctly you should end up with something like the example below. And even though I only talked about editing the footer message, you can do a lot more. You can edit colors, edit fonts, replace the logo and even move things around.