What it does ?
Disallows visitors to see the images in the Forum
++++++++
----------
++++++++
in the functions_bbcodeparse.php find :
PHP Code:
$link = strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(' ', '', $link);
return '<img src="' . $link . '" border="0" alt="" />';
replace it with :
PHP Code:
global $bbuserinfo;
$link = strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(' ', '', $link);
if($bbuserinfo[userid] != 0){
return '<img src="' . $link . '" border="0" alt="" />';
}else{
return "
<b><font color='#FF0000' face='Microsoft Sans Serif' size='2'>
<a target='_blank' href='register.php'><font color='#FF0000'>
<span style='text-decoration: none'>[<span lang='ar-kw'>
</span>Sorry you can</font><font color='#FF0000' face='Tahoma' size='2'>'</font><font color='#FF0000' face='Microsoft Sans Serif' size='2'>t see this image before </font>
</span></font></a><a target='_blank' href='register.php'>
<span style='text-decoration: none'>
<font color='#008000' face='Microsoft Sans Serif' size='2'>registering</font><font color='#FF0000' face='Microsoft Sans Serif' size='2'><span lang='ar-kw'>
</span>]</font></span></a></b>
";
}
all done
don't forget to click install*