Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] button added to my friends in CB

  • janvan
  • janvan
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 0
13 years 8 months ago - 13 years 8 months ago #159712 by janvan
Hello everyone,
I am looking how to create my own button added to my friends in CB I would have the right link or the proper way to do it.
or
Maybe you know a good plugin that could handle this ....?

Thank you in advance for your help ...!!!

January
Last edit: 13 years 8 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • janvan
  • janvan
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 0
13 years 8 months ago #159713 by janvan
Replied by janvan on topic Re: button added to my friends in CB
I created a button I'm missing the exact link to bring up the window that is used to send a message over the invitation request.

Please Log in or Create an account to join the conversation.

  • janvan
  • janvan
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 0
13 years 8 months ago #159775 by janvan
Replied by janvan on topic Re: button added to my friends in CB
somebody can help me please...?

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
13 years 8 months ago #159779 by nant
Replied by nant on topic Re: button added to my friends in CB

janvan wrote: somebody can help me please...?


When posting over the weekend please allow some time for reply.

Please Log in or Create an account to join the conversation.

  • janvan
  • janvan
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 0
13 years 8 months ago #159780 by janvan
Replied by janvan on topic Re: button added to my friends in CB
ok i know now for later

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
13 years 8 months ago #159789 by krileon
Replied by krileon on topic Re: button added to my friends in CB
If understanding correctly, you're wanting an Add Connection (Friend) button? This really can't be done without a new integration because the CB Menu link is dynamic to the situation. For example if already connected it becomes a Remove Connection, if not logged in then is not visible at all, etc.. At any rate the below HTML is used by the add connection link which you could paste directly to a delimiter field (required as you need substitutions for this to work).
Code:
<a name="cbAddConn" onclick="return overlib('Personalize your invitation to connect by adding a message that will be included with your connection.&lt;br /&gt;&lt;form action=&quot;index.php?option=com_comprofiler&amp;act=connections&amp;task=addConnection&amp;connectionid=[user_id]&quot; method=&quot;post&quot; id=&quot;connOverForm&quot; name=&quot;connOverForm&quot;&gt;Message:&lt;br /&gt;&lt;textarea cols=&quot;40&quot; rows=&quot;8&quot; name=&quot;message&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;input type=&quot;button&quot; class=&quot;inputbox&quot; onclick=&quot;cbConnSubmReq();&quot; value=&quot;Submit&quot; /&gt;&nbsp;&nbsp;&lt;input type=&quot;button&quot; class=&quot;inputbox&quot; onclick=&quot;cClick();&quot; value=&quot;Cancel&quot; /&gt;&lt;/form&gt;', STICKY, CAPTION,'Connect to [username]', CENTER,CLOSECLICK,CLOSETEXT,'CLOSE',WIDTH,350, ANCHOR,'cbAddConn',CENTERPOPUP,'LR','UR');" href="javascript:void(0)">Request Connection</a>


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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum