Author: ___Martin
Extension Description: Modifies external links (i.e. links to a resource outside of your board) to open in a new browser window by default.
Extension Version: 1.0.1 (release candidate, submitted to extension database: https://www.phpbb.com/customise/db/exte ... ew_window/)
Requirements: phpBB 3.2
Features:
Works without JavaScript (which may be ignored by bots or disabled by users), the needed attributes are injected into the HTML output. Also adds the ability to add the rel=nofollow attribute to external links.
The extension can be configured in the Admin Control Panel:
- Allow users to choose for themselves if they would like to open external links in a new window.
- Or force external links to be opened in a new window for registered users.
- Open external links in new window for guests.
- Open external links in new window for bots.
The extension only modifies these links when displaying a message (post, private message, etc.). It does not alter the messages that are stored into the database.
Development Repository: https://github.com/Mar-tin-G/ExternalLinkInNewWindow
Extension Download:
Download at the development repository linked above via the "Download ZIP" button, or use this direct link: https://github.com/Mar-tin-G/ExternalLi ... /1.0.1.zip
Create the following folder structure in your board, and extract the files and folders from the downloaded ZIP file there:
/ext/martin/externallinkinnewwindow
.Activate the extension in the Admin Control Panel (ACP) on the Customise > Manage Extensions page.
Configure the extension in the ACP on the Extensions > External Link In New Window > Settings page.
User option can be found in the UCP on the Board Preferences > Edit global settings page.