Может быть, стоит ещё посмотреть возможность апдейта мода prime_links - там есть почти всё необходимое для управления ссылками, даже приписываются все внутренние домены, - распознаются. Но не обрезаются (
Вот файл его настроек:
* @package phpBB3
* @version $Id: prime_links.php,v 1.2.12 2011/11/04 12:05:00 primehalo Exp $
* @copyright (c) 2007-2011 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* Include only once.
*/
if (!defined('INCLUDES_PRIME_LINKS'))
{
define('INCLUDES_PRIME_LINKS', true);
// Options
define('PRIME_LINKS_ENABLE', true); // Enable this MOD?
define('REMOVE_SUBDOMAINS', true); // Specify subdomains to be removed before checking the link, separated by semicolons (setting TRUE will remove all subdomains)
define('USE_TARGET_ATTRIBUTE', true); // The attribute "target" is not valid for STRICT doctypes.
define('HIDE_LINKS_FROM_GUESTS', false); // Hide external links from guests? If this is a string, then the text of the link will be replaced with this string.
define('EXTERNAL_LINK_PREFIX', ''); // Example: 'http://anonym.to?'
define('INTERNAL_LINK_DOMAINS', 'http://www.gaz-69.com;http://www.gaz-67.com;http://gaz-69.com;http://gaz-67.com'); // List of domains to be considered local, separated by semicolons. Example: 'http://www.alternate-domain.com'
define('FORBIDDEN_DOMAINS', ''); // List of domains for which links should be removed, separated by semicolons. Example: 'http://www.porn.com'
define('FORBIDDEN_NEW_URL', '#'); // URL to insert in place of any removed links. Example: 'http://www.google.com' or '#top'
define('TOP_LEVEL_DOMAIN_NAME', ''); // Recommended for domains with country codes. Example: '.co.jp'
// Link relationships
define('INTERNAL_LINK_REL', '');
define('EXTERNAL_LINK_REL', 'nofollow');
// Link targets (setting to FALSE will remove the link)
define('INTERNAL_LINK_TARGET', '');
define('EXTERNAL_LINK_TARGET', '_blank');
// Link classes
define('INTERNAL_LINK_CLASS', 'postlink-local');
define('EXTERNAL_LINK_CLASS', 'postlink');
// Link file types (separate file extensions with a vertical bar "|")
define('PDF_LINK_TYPES', 'pdf');
define('IMG_LINK_TYPES', 'gif|jpg|jpeg|png|bmp');
define('ZIP_LINK_TYPES', 'zip|rar|7z');
// Special cases for specific link types. Separate file extensions with a vertical bar (|).
define('FORCE_EXTERNAL_LINK', ''); // Example 1: 'pdf|gif|jpg|jpeg|png|bmp|zip|rar|7z'
define('FORCE_INTERNAL_LINK', ''); // Example 2: PDF_LINK_TYPES . '|' . IMG_LINK_TYPES . '|' . ZIP_LINK_TYPES
define('NO_EXTERNAL_LINK_PREFIX', ''); // Don't add an external link prefix for these file types
define('NO_LINK_PROCESSING', ''); // Don't process links to these file types