Вариант обхода проблемы - вместо картинки с народ.ру на форум помещается ссылка на это изображение.
Код: Выделить всё
##############################################################
## MOD Title: No Images From Hosts With Hotlink Protection
## MOD Author: Coagulant < baryshev@gmail.com > (Baryshev Ilya) http://coagulant.com.ru
## MOD Description: Images hosted on narod.ru are displayed as links to avoid hotlink protection
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: includes/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:
##
## Example of work: [img]http://mysite.narod.ru/images/photos/me.jpg[/img]
## will look like if it was [url]http://mysite.narod.ru/images/photos/me.jpg[/url]
##
## You can add hosts with hotlink protection others than narod.ru to
## $hot_link_sites variable (hosts must be in name.zone format separated by spaces)
##
##############################################################
## MOD History:
##
## 2006-07-29 - Version 1.0.1
## - Multiple domains instead of narod.ru only
## 2006-07-28 - Version 1.0.0
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
define("BBCODE_UID_LEN", 10);
#
#-----[ BEFORE, ADD ]------------------------------------
#
$hot_link_sites = "narod.ru"; // Add hosts with hotlink protection separating by spaces
$hot_link_regexp = implode('|', explode(' ', preg_quote($hot_link_sites)));
#
#-----[ FIND ]------------------------------------------
#
$patterns[] = "#\[img:$uid\]([^?](?:[^\[]+|\[(?!url))*?)\[/img:$uid\]#i";
$replacements[] = $bbcode_tpl['img'];
#
#-----[ BEFORE, ADD ]------------------------------------
#
$patterns[] = "#\[img:$uid\]((?:http://[\w\#$%&~/.\-;:=,?@+]+?\.($hot_link_regexp)/[^\[]+|\[(?!url))*?)\[/img:$uid\]#i";
$replacements[] = $bbcode_tpl['url1'];
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM