Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes, with the above auto action when you add a connection type of SPGROUP to the user they are given the usergroup SELECT_GROUPS_HERE.Is your example for adding a usergroup by setting a connection type?
Ok, my above suggestion won't do that. Sorry, misunderstood what you were asking.But I need following auto action:
- the joomla system has the usergroup SPGROUP
- the connection type SPGROUP is available (same name)
- the user1 who requested the connection with user2 has the usergroup SPGROUP
- by accepting the request by user2 the connection type shall be set to SPGROUP automatically
Yes, you can use the trigger onAfterAcceptConnection to add behavior on accepting a connection request. [var1] is user1 user id and [var2] is user2 user id using your example above. You can use that information to modify the connection in the database directly. The below should work.Is that possible? Excuse me to write my need not clear enough in first post.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes, the variables available to triggers is documented in the trigger documentation below.is there a documentation available about using the variables? I don't understand how to use them.
It's not hardcoded to a specific user. It fires and establishes the connection type when one user accepts the connection request from another user. So if user2 accepts a connection request from user1 it will work for that situation as well.But how can I manage it, that user2 gets also the connection type of user1 to his connection with him? User1 can also belong to different usergroups.
Please Log in or Create an account to join the conversation.