1
I am building a site using XOOPS 2.0.14. This site is in the genre of "social networking" sites like Facebook.com. The site owners want to restrict the ability to view member profiles to only registered users.
So, for instance, if I see a post in a Forum on a Comment in a News Article, I would be able to click the link to the user's profile page (/userinfo.php?uid=x) only if I'm a registerd user. If I'm not registered, I get a gentle message telling me that I must register to view this page.
I see two ways of doing this:
1. Edit the news and forum templates so that usernames are hyperlinked for registered users only.
2. Change the permissions (somehow) on userinfo.php (and other files I imagine) so that anonymous users cannot access member profiles.
QUESTIONS:
A. Are there other solutions to this problem that I'm not thinking of?
B. Is there already a solution to this that I don't know of?
C. Given the use case, what is the preferred method, or best practice for implementing this functionality?
-Robert