Jump to content

Information hidden by User


LostKobrakai
 Share

Recommended Posts

Hi,

for my current project I'm building userprofiles, where the user has the ability to deny infos to be shown to other users. What would be the best way to build this. Currently I simply plan to use a textareas field which each field names and true or false as string, to save the visibility options. But it would be quite a pain to write all those if statements to check for the current setting all over the templates. 

For profile images I have a function which either returns the user image or the image from the global default settings ("getProfileImage($user);"). But writing and maintaining 20-30 more of those is also a way I would like to avoid. 

So does somebody have a idea to solve this a litte more automated?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...