Awesome! Thanks for the quick response. I have installed it but have a problem. I have vB 2.2.5.
Your instructions state:
Quote:
---------------------------------------------------------------
= = = = = = = S H O W T H R E A D . P H P = = = =
---------------------------------------------------------------
__Find__
updateuserforum($thread['forumid']);
__Right after that add__
// ****** //
$showthreadbutton = 1;
if (!$getperms['canpostnew']) {
$showthreadbutton = 0;
}
$showreplybutton = 1;
if (!$getperms['canreplyown'] or (!$getperms['canreplyothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid'] == 0))) {
$showreplybutton = 0;
}
if (!$thread['open'] == 0 and ($bbuserinfo['userid'] == 0 or $bbuserinfo['usergroupid'] != 6 or !ismoderator($thread['forumid']))) {
$showreplybutton = 0;
}
if ($showthreadbutton == 1) {
eval("\$threadbutton = \"".gettemplate("showthread_threadbutton")."\"; ");
} else {
$threadbutton = " ";
}
if ($showreplybutton == 1) {
eval("\$replybutton = \"".gettemplate("showthread_replybutton")."\";" );
} else {
$replybutton = " ";
}
// ****** //
|
In showthread.php there are two occurances of
updateuserforum($thread['forumid']);. The first on line ~86 the second on line ~468.
I placed the code after the first one I came across, saved/uploaded the file and checked the result. The buttons were gone from the top of the thread but not the bottom. So I inserted the code after the second occurance, saved/uploaded and tried again. Same result, the buttons are still at the bottom of the thread.
Any ideas? Thanks again.