Hello there,
I have created a delimiter field. Inside this i use a Friend Request button. I also use a cb content module where i show this field like this:
Code:
[cb:if user="#displayed" user_id!="myid"][cb:userfield field="cb_friendrequest" user="#displayed" /][/cb:if]
So, if one user is not a friend of mine (and of course i am not in my profile), then this button is shown and i can click to send a friend request.
In this procedure i need to do this:
During the acceptance or the decline of the friend request, i can still see this button. So, i somehow need to know, how to control (hide/show) fields when the request is sent and before the user declines or accepts the request. So in this case i can show an image saying that the friend request has been sent.
The second thing to do is to control (show/hide) fields when one user is friend with another. So, i want to use a Remove from friends button and i need this button to be shown only when 2 users are friends.
Thank you in advance