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 #159815 by janvan
Replied by janvan on topic Re: button added to my friends in CB
yes you understand my request.
I do not know what is required substitutions
I use comprofile pro and I created a layout profile where I put a button added to my friend.
and I put the link you provided me above but it does not work.

can you explain what is required substitutions and how do I do to make it 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)"><img src="templates/123wd-j15-9/images/profil/coup-coeur.png" width="118" height="30" border="0"></a>

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 - 13 years 8 months ago #159825 by krileon
Replied by krileon on topic Re: button added to my friends in CB
Substitutions allow [user_id] for example to be replace with the users actual ID (62 for example). Substitutions are only supported where we add support for them. For example you could use the code given in a Delimiter field create via Field Management and it'll have the appropriate data. This assumes the appropriate JS is present which it is when viewing CBs profiles through CB it self. I can not speak for profile pro. If profile pro supports substitution then the above should work, but you should be contacting the developer of profile pro concerning support of its usage.


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.
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 #159828 by janvan
Replied by janvan on topic Re: button added to my friends in CB
thank you i go to ask him...!!!

And if they don't find solution can you do this...? and what is your price...?

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 #159874 by krileon
Replied by krileon on topic Re: button added to my friends in CB
No we can not do this, we're not a contract development site; you should check joomlancers for respective contract developers or other similar sites.


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.

  • janvan
  • janvan
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 0
13 years 8 months ago #159877 by janvan
Replied by janvan on topic Re: button added to my friends in CB
Ok thank you i continious to search...!!!

:dry:

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 #160311 by janvan
i find the solution.
that is the good code to you are button:
Code:
<?php global $_CB_framework; ?> <a title="Request a Connection to that user" 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;connect ionid=<?php echo $_CB_framework->displayedUser(); ?>&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 Community', CENTER,CLOSECLICK,CLOSETEXT,'CLOSE',WIDTH,350, ANCHOR,'cbAddConn',CENTERPOPUP,'LR','UR');" href="javascript:void(0)">Request Connection</a>
insert it with magic window and tab "code"

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

Moderators: beatnantkrileon
Powered by Kunena Forum