Home :: Forums :: Register :: Sign In :: Links :: Downloads :: Shop
You are not signed in. Please sign in. If you have not registered, please click here.

Resrtict images in Signatures Mod

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb   More...
#1Sun Aug 01, 2004 1:49 pm   Resrtict images in Signatures Mod
Soldier
CZ Newbie
Soldier has been a member for over 4 year's 4 Year Member
Website: www.rabidclan.com
Status: Offline
Joined: Aug 01, 2004
0.01 posts per day
Posts: 13
Points: 5,201
   
I have installed this mod in my forums, When a member places in a image and clicks ok they get this message ....

Warning: Compilation failed: missing terminating ] for character class at offset 41 in /home/rabidcl/public_html/home/includes/usercp_register.php on line 405

no matter what size the image is.


here is the code for includes/usercp_register.php


}

else
{

if( preg_match_all("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\
[/img\]#sie", $signature, $matches) )
{

if( count($matches[0]) > $board_config['sig_images_max_limit'] )
{

$error = TRUE;

$l_too_many_images = ( $board_config['images_max_limit'] == 1 ) ? sprintf($lang['Too_many_sig_image'],
$board_config['sig_images_max_limit']) : sprintf($lang['Too_many_sig_images'], $board_config
['sig_images_max_limit']);

$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $l_too_many_images;
}

else
{

for( $i = 0; $i < count($matches[0]); $i++ )
{

$image = preg_replace("#\[img\](.*)\[/img\]#si", "\\1", $matches[0][$i]);

list($width, $height) = @getimagesize($image);

if( $width > $board_config
['sig_images_max_width'] || $height > $board_config['sig_images_max_height'] )

{
$error = TRUE;

$l_image_too_large = sprintf($lang['Sig_image_too_large'],
$board_config['sig_images_max_width'], $board_config['sig_images_max_height']);

$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) .
$l_image_too_large;
break;

}
}
}
}


This is line 405 and 406

if( preg_match_all("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\
[/img\]#sie", $signature, $matches) )


can anyone help me on this problem
Thanks for your time




_________________
[RC]Soldier|Owner| [ Register or login to view links on this board. ]

Image
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb   More...
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum