Hi, thanks for your reply! I don't know what I was thinking, that's not the right page at all.
The correct page is class_postbit.php and the relevant code is:
Code:
// hide edit button if they can't use it
$forumperms = fetch_permissions($this->thread['forumid']);
if (
!$this->thread['isdeleted'] AND !$this->post['isdeleted'] AND (
can_moderate($this->thread['forumid'], 'caneditposts') OR
can_moderate($this->thread['forumid'], 'candeleteposts') OR
(
$this->thread['open'] AND
$this->post['userid'] == $this->registry->userinfo['userid'] AND
($forumperms & $this->registry->bf_ugp_forumpermissions['caneditpost']) AND
( $this->post['dateline'] >= (TIMENOW - ($this->registry->options['edittimelimit'] * 60)) OR
$this->registry->options['edittimelimit'] == 0
)
))
)
Also shouldn't that be AND instead of OR? And I can't figure out how to insert the "AND $threadinfo['forumid'] == 20" part, it does what I want but the code doesn't seem to be in the right syntax. Any help would be appreciated.
edit: I think I figured it out!
Code:
AND $this->thread['forumid'] != XXX
Can't get the userid thing to work though.