Birdie501 |
06-28-2002 01:09 PM |
Quote:
Originally posted by aidler
Is it confirmed that this hack works with 2.2.6?? I installed the hack and had the following problem: The reply button was gone even for users who have the permission to reply to other's posts.
in addition I use the quick reply box hack and would like to have the quick reply box vanish as well when a user has no permission to post.
|
hi i still have 2.2.5 and still test my board offline. I also have the same problem. If i am logged in as admin, i see both buttons!
if i log in as user, there is only the new thread button!???
I have the quick reply box installed as well.
What should i do?
i think there is something wrong with this code.
PHP Code:
-------------------------------------------------------------------------------------------------------------------
- - - - - - - - - - - - - - - = = = = = = = S H O W T H R E A D . P H P = = = = = = = - - - - - - - - - - - - - - -
-------------------------------------------------------------------------------------------------------------------
__Find around line 468__
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 = " ";
}
// ****** //
Thanks for any help!
:confused:
|