Custom add connection and send message buttons

10 years 5 months ago #236651 by Ntelos
Ok, i got that!

In the workflows module, the user will be able to manage his/her connections/friends?So, if i want to unfriend someone can i do this from this module?

Also, assume that i become friends with another contact. The delimiter field button which shows the add friend button again. So, i have to add inside [cb if] condition to check if there is a connection between the 2 users. Can you give a hint with that?

And also a url that could be used inside a button to unfriend someone?

Please Log in to join the conversation.

10 years 5 months ago #236670 by krileon

In the workflows module, the user will be able to manage his/her connections/friends?So, if i want to unfriend someone can i do this from this module?

Yes, assuming you're viewing a users profile other than your own you should be able to use the below URL.

index.php?option=com_comprofiler&act=connections&task=removeConnection&connectionid=[user_id]

Also, assume that i become friends with another contact. The delimiter field button which shows the add friend button again. So, i have to add inside [cb if] condition to check if there is a connection between the 2 users. Can you give a hint with that?

You'll need to use CB Query Field to query the database and see if they're connected. You can then use an IF substitution on the query field.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.184 seconds

Facebook Twitter LinkedIn