Topic: Guests can't read closed topics--how hard?

How hard would it be to deny guests permission to read closed topics while still allowing them to read open topics?

Re: Guests can't read closed topics--how hard?

Very easy. Open up viewtopic.php and look up:

list($subject, $closed, $sticky, $subscribers, $num_replies, $forum_id) = $db->fetch_row($result);

After that, add:

if ($closed && $cookie['is_guest'])
    message($lang_common['No permission']);

Voila!

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Guests can't read closed topics--how hard?

Thanks!