با این روش می توانید کاری کنید که کاربران سایت شما عکس در امضای خود قرار دهند.
فایل Engine/Inc/Parse.class.php رو باز کنید و به دنبال کدهای زیر بگردید:
if (!$this->safe_mode) {
$source = preg_replace( "#\[img\](.+?)\[/img\]#ie", "\$this->build_image('\\1')", $source );
$source = preg_replace( "#\[img=(.+?)\](.+?)\[/img\]#ie", "\$this->build_image('\\2', '\\1')", $source );
$source = preg_replace( "'\[thumb\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$1\$2\$3', '\$1\$2thumbs\$2\$3')", $source );
$source = preg_replace( "'\[thumb=(.*?)\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$2\$3\$4', '\$2\$3thumbs\$3\$4', '\$1')", $source );
$source = preg_replace( "#\[video\s*=\s*(\S.+?)\s*\]#ie", "\$this->build_video('\\1')", $source );
while ( preg_match( "#\[size=([^\]]+)\](.+?)\[/size\]#ies", $source ) )
{
$source = preg_replace( "#\[size=([^\]]+)\](.+?)\[/size\]#ies" , "\$this->font_change(array('tag'=>'size','1'=>'\\1','2'=>'\\2'))", $source );
}
while ( preg_match( "#\[font=([^\]]+)\](.+?)\[/font\]#ies", $source ) )
{
$source = preg_replace( "#\[font=([^\]]+)\](.+?)\[/font\]#ies" , "\$this->font_change(array('tag'=>'font','1'=>'\\1','2'=>'\\2'))", $source );
}
}
$source = preg_replace( "#\[img\](.+?)\[/img\]#ie", "\$this->build_image('\\1')", $source );
$source = preg_replace( "#\[img=(.+?)\](.+?)\[/img\]#ie", "\$this->build_image('\\2', '\\1')", $source );
$source = preg_replace( "'\[thumb\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$1\$2\$3', '\$1\$2thumbs\$2\$3')", $source );
$source = preg_replace( "'\[thumb=(.*?)\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$2\$3\$4', '\$2\$3thumbs\$3\$4', '\$1')", $source );
$source = preg_replace( "#\[video\s*=\s*(\S.+?)\s*\]#ie", "\$this->build_video('\\1')", $source );
while ( preg_match( "#\[size=([^\]]+)\](.+?)\[/size\]#ies", $source ) )
{
$source = preg_replace( "#\[size=([^\]]+)\](.+?)\[/size\]#ies" , "\$this->font_change(array('tag'=>'size','1'=>'\\1','2'=>'\\2'))", $source );
}
while ( preg_match( "#\[font=([^\]]+)\](.+?)\[/font\]#ies", $source ) )
{
$source = preg_replace( "#\[font=([^\]]+)\](.+?)\[/font\]#ies" , "\$this->font_change(array('tag'=>'font','1'=>'\\1','2'=>'\\2'))", $source );
}
}
تمامی این کدها را حذف کنید و کد زیر را بجای آن قرار دهید:
$source = preg_replace( "#\[img\](.+?)\[/img\]#ie", "\$this->build_image('\\1')", $source );
$source = preg_replace( "#\[img=(.+?)\](.+?)\[/img\]#ie", "\$this->build_image('\\2', '\\1')", $source );
$source = preg_replace( "'\[thumb\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$1\$2\$3', '\$1\$2thumbs\$2\$3')", $source );
$source = preg_replace( "'\[thumb=(.*?)\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$2\$3\$4', '\$2\$3thumbs\$3\$4', '\$1')", $source );
$source = preg_replace( "#\[img=(.+?)\](.+?)\[/img\]#ie", "\$this->build_image('\\2', '\\1')", $source );
$source = preg_replace( "'\[thumb\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$1\$2\$3', '\$1\$2thumbs\$2\$3')", $source );
$source = preg_replace( "'\[thumb=(.*?)\]([^\[]*)([/\\\\])(.*?)\[/thumb\]'ie", "\$this->build_thumb('\$2\$3\$4', '\$2\$3thumbs\$3\$4', '\$1')", $source );
حالا با استفاده از تگ زیر می توانید عکس در امضای خود قرار دهید:
[img]http://yoursite.com/example.gif[/img]