Quote:
Originally Posted by Elemental
No, this doesn't appear to work with 2.3.5 at all. The second line of the first chunk of code to replace, doesn't seem to exist at all in showthread.php. As nobody appears to have answered the queries on the previous page, can somebody please point me in the right direction?
|
Try this (taken from
here):
1. Find in showthread.php:
Code:
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
2. Insert this after in the following line:
Code:
if (ismoderator($thread['forumid'],'canopenclose')) {
if ($thread['open']) {
$closeopenstatus='Close';
} else {
$closeopenstatus='Open';
}
eval("\$closeopenthread = \"".gettemplate("newthread_closeopen")."\";");
} else {
$closeopenthread='';
}
// FireFly's hack
if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else {
if ($bbuserinfo['emailnotification']) {
$emailchecked = 'yes';
} else {
$emailchecked = '';
}
$textareacols=gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
} // End