Thanks for your reply. I don’t mind editing home.php because I’m doing it in my theme file. I’ve figured out a way to prevent the friends tab to other users. Just trying to figure out the way it’s done for messages, so that I’m not reinventing anything.