############################################################## ## MOD Title: Easy No BBcode Links ## MOD Author: Mittineague < N/A > (N/A) http://www.mittineague.com ## MOD Description: Removes the ability to use URL BBcode. ## Removes "make clickable" text URLs. ## Removes URL BBcode button and it's "alt-key" help. ## MOD Version: 1.0.0 ## ## Installation Level: Easy ## Installation Time: ~ 1 Minute ## ## Files To Edit: language/lang_english/lang_main.php ## includes/bbcode.php ## templates/subSilver/posting_body.tpl ## language/lang_english/lang_bbcode.php ## ## Included Files: N/A ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ## URLs - not links - can still be entered in posts and ## will be seen as non-clickable text (which can still ## be changed by using the ACP "word censors"). ## ############################################################## ## MOD History: ## ## 2007-01-08 - Version 1.0.0 ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------ # $lang['bbcode_w_help'] = 'Insert URL: [url]http://url[/url] or [url=http://url]URL text[/url] (alt+w)'; # #-----[ REPLACE WITH ]------------------------------------ # $lang['bbcode_w_help'] = 'No links in posts - Admin'; $lang['link_replacement_text'] = '<SNIP/> No links in posts - Admin '; # #-----[ OPEN ]------------------------------------------ # includes/bbcode.php # #-----[ FIND ]------------------------------------------ # $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\3', $bbcode_tpl['url4']); # #-----[ AFTER, ADD ]------------------------------------ # $bbcode_tpl['no_links'] = $lang['link_replacement_text']; $bbcode_tpl['url1'] = $bbcode_tpl['no_links']; $bbcode_tpl['url2'] = $bbcode_tpl['no_links']; $bbcode_tpl['url3'] = $bbcode_tpl['no_links']; $bbcode_tpl['url4'] = $bbcode_tpl['no_links']; # #-----[ FIND ]------------------------------------------ # $ret = ' ' . $text; # #-----[ AFTER, ADD ]------------------------------------ # /* # #-----[ FIND ]------------------------------------------ # // Remove our padding.. $ret = substr($ret, 1); # #-----[ BEFORE, ADD ]------------------------------------ # */ # #-----[ OPEN ]------------------------------------------ # templates/subSilver/posting_body.tpl # #-----[ FIND ]------------------------------------------ #