Open viewthread.php find
CodeDownload
if ($a_files) {
echo "<div class='emulated-fieldset'>n";
echo "<span class='emulated-legend'>".profile_link($data['user_id'], $data['user_name'], $data['user_status']).$locale['506'].($i_files > 1 ? $locale['506d'] : $locale['506c'])."</span>n";
echo "<div class='attachments-list'>".$a_files."</div>n";
echo "</div>n"
}
Replace with this
CodeDownload
if (iMEMBER) {
if ($a_files) {
echo "<div class='emulated-fieldset'>n";
echo "<span class='emulated-legend'>".profile_link($data['user_id'], $data['user_name'], $data['user_status']).$locale['506'].($i_files > 1 ? $locale['506d'] : $locale['506c'])."</span>n";
echo "<div class='attachments-list'>".$a_files."</div>n";
echo "</div>n"; }
} else {
echo "n<hr /><div style='color: #000;border: #ccc 1px solid;margin: 10px 0px;padding:15px 10px 15px 50px;background-color: #e1e1e1;background-image: url(".IMAGES."error.png);background-repeat: no-repeat;background-position: 10px center;'>".$locale['attachm001']."<br />".$locale['attachm002']."</div>";
}
Save and close viewthread.php
Go to locale/your_language/forum/ open main.php
Find
Add this bellow
CodeDownload
// Attachment messages
$locale['attachm001'] = "<strong>Acces denied!</strong>";
$locale['attachm002'] = "<a href='".BASEDIR."login.php' target='_blank'>Login</a> or <a href='".BASEDIR."register.php' target='_blank'>register</a> to download the attached file!";
Save and upload these files!
And upload this image to image folder
