MyBB Community Forums

Full Version: which file prompts the 404 Not Found message?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I wanna edit the message, cany ou tell me which file prompts the 404 Not Found message please?
it is from Google SEO plugin OR myBB's archive/index.php & archive.lang.php OR from your webhost
If Google SEO's 404 error page, this is what you need to edit:

./inc/plugins/google_seo/404.php (line 214-228):

/* ---  Custom 404 error page --- */

/**
 * Create a custom 404 error page for errors that occur outside of MyBB.
 *
 */
function google_seo_404_page()
{
    global $mybb, $lang;

    if($mybb->input['google_seo_error'] == 404)
    {
        error($lang->googleseo_404_notfound);
    }
}

./inc/languages/english/googleseo.lang.php (lines 3-5):

$l['googleseo_404_notfound'] = "404 Not Found";
$l['googleseo_404_widget'] = "<script type=\"text/javascript\">\nvar GOOG_FIXURL_LANG = 'en';\nvar GOOG_FIXURL_SITE = '{1}';\n</script>\n<script type=\"text/javascript\" src=\"http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js\"></script>";
$l['googleseo_404_wol'] = "Seeing an <a href=\"{1}\">Error Page</a>";
Thanks a lot.