I am building an educational web site. One element of the site is that all users must write comments on certain pages. However, I only want these comments to be actually visible to admin (me), and one other user (this user would be different on every page).
I am trying to tweak comments.php so that the comments area is only shown to specified users (using user_ID).
This is the 'if' statement I am using (on this page, I need user ID #2 to be able to see the comments):
<?php if($user_ID == 2 || $user_ID == 1): ?>
COMMENTS ARE HERE
<?php endif; // end if $user_ID ?>
That works, but the problem is that on other pages I need a different user_ID in the 'if' statement.
Of course I can't create a different comments.php for every page! ~ so my question is:
How can I easily change the user_ID value in the 'if' statement, depending on the page?