Hi - I wanted to implement the following requirement:
Requirement:
1) If the avatar picture of the logged in user (e.g. Cleo: ID = 3129) has been approved, he is allowed to see also the approved avatars pictures of other registered useres (in userlist search and corresponding profiles as well).
2) If the avatar picture of the logged in user (e.g. Cleo: ID = 3129) has
NOT been approved yet, he is not allowed to see the avatar pictures of the other users (in userlist seearch and corresponding profiles as well).
3) The profile visibility of the logged in user himself (e.g. Cleo: ID = 3129) should not be affected by the rules 1) und 2)
In order to implement this, I set up the conditional rules of the the avatar field:
Used Plugin: CB Conditional
Used Field: avatar field
******************************************************************
Display: Field conditional hide
Condition 1:
Field: Value
Custom Value: [cb:userdata field="user_id" user="#displayed"/]
Translate Custom Value: No
Operator: Not Equal To
Value: [cb:userdata field="user_id" user="#me"/]
Translate Value: No
Locations:
Registration: No
Profile Edit: No
Profile View: Yes
UserList Search Yes
Userlist View: Yes
AND
Condition 2:
Field Value
Custom Value: 1
Translate Custom Value: No
Operator: Not Equal To
Value: [cb:userdata field="avatarapproved" user="#me"/]
Translate Value: No
Locations:
Registration: No
Profile Edit: No
Profile View: Yes
UserList Search Yes
Userlist View: Yes
Now lets discuss the results of the above two conditions in Detail:
….If the logged in user (Cleo) looks as his own profile (ps: his avatar has not yet been approved) it looks like the following which is 100% correct:
...If the logged in user (Cleo) does a user list search …..it looks as follows….. the result is partially correct….Cleo can't see the (available) avatars of the other users, but the problem is, Cleo can also not see the (black) icon of his own profile (which represents the pending approval)
…If the logged in user (Cleo) does a user list search, and chooses one of the available profiles the result is partially correct....Cleo can't see the (available and approved) avatar of the selected user (Mery) ...which is correct ..., but the problem is again, that the (black) icon of this own profile has disappeared again
Can you please tell me how to set up the conditions correctly? Regards