Functionality
The extension provides the following core functionalities:
Customizable 404 Page:
- Replaces the default phpBB 404 error page with a custom template (custom404.html) that displays a user-defined title, message, and image.
- Handles HTTP 404 errors triggered by non-existent pages, ensuring a consistent and branded error experience.
[ACP Configuration Module]
- Adds a dedicated settings page in the ACP under the extension’s module (Custom 404 Page Settings).
- Allows administrators to configure:
- Page Title: A custom title for the 404 page (e.g., "404 Not Found").
- Message: A customizable message supporting BBCode for rich text formatting (e.g., bold, italic, links, lists).
- Image: Selection of an image from a predefined directory or upload of a new image.
- Image Alt Text: Alternative text for accessibility.
Image Management:
- Supports image selection from the extension’s image directory (ext/mundophpbb/custom404/styles/all/theme/images/).
- Allows uploading new images with restrictions (PNG, JPG, JPEG, GIF; max 2 MB).
- Provides a default image (404_error.png) if no custom image is set or if the selected image is invalid.
Multilingual Support:
- Dynamically loads language files based on the user’s selected language (via $user->lang_name).
- Falls back to English (en) if the user’s language file is missing.
- Supports translations for all ACP interface elements and front-end 404 page content.
BBCode Support:
-Enables BBCode formatting in the 404 page message, supporting tags like
- Integrates with phpBB’s SCEditor for rich text editing in the ACP, if available.
Event Listener for 404 Errors:
- Uses a Symfony event listener to intercept NotFoundHttpException events and render the custom 404 page.
- Sets appropriate HTTP headers (e.g., HTTP/1.1 404 Not Found, Content-Type: text/html; charset=UTF-8).
Demo: https://mundophpbb.com.br/phpBB3/error
Download: https://mundophpbb.com.br/suporte/viewtopic.php?t=18
The extension provides the following core functionalities:
Customizable 404 Page:
- Replaces the default phpBB 404 error page with a custom template (custom404.html) that displays a user-defined title, message, and image.
- Handles HTTP 404 errors triggered by non-existent pages, ensuring a consistent and branded error experience.
[ACP Configuration Module]
- Adds a dedicated settings page in the ACP under the extension’s module (Custom 404 Page Settings).
- Allows administrators to configure:
- Page Title: A custom title for the 404 page (e.g., "404 Not Found").
- Message: A customizable message supporting BBCode for rich text formatting (e.g., bold, italic, links, lists).
- Image: Selection of an image from a predefined directory or upload of a new image.
- Image Alt Text: Alternative text for accessibility.
Image Management:
- Supports image selection from the extension’s image directory (ext/mundophpbb/custom404/styles/all/theme/images/).
- Allows uploading new images with restrictions (PNG, JPG, JPEG, GIF; max 2 MB).
- Provides a default image (404_error.png) if no custom image is set or if the selected image is invalid.
Multilingual Support:
- Dynamically loads language files based on the user’s selected language (via $user->lang_name).
- Falls back to English (en) if the user’s language file is missing.
- Supports translations for all ACP interface elements and front-end 404 page content.
BBCode Support:
-Enables BBCode formatting in the 404 page message, supporting tags like
[b], [i], [url], [list]
, and more.- Integrates with phpBB’s SCEditor for rich text editing in the ACP, if available.
Event Listener for 404 Errors:
- Uses a Symfony event listener to intercept NotFoundHttpException events and render the custom 404 page.
- Sets appropriate HTTP headers (e.g., HTTP/1.1 404 Not Found, Content-Type: text/html; charset=UTF-8).
Demo: https://mundophpbb.com.br/phpBB3/error
Download: https://mundophpbb.com.br/suporte/viewtopic.php?t=18
Statistics: Posted by Chico Gois — Sun Jun 08, 2025 7:03 am