Forum link in Group directory

I'm trying to implement these instructions in BP Scholar, but when I put in functions.php it doesn't work? Should I put somewhere else?