Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Connect Link Buttons in cb-profile-edit ?

  • barker
  • barker
  • OFFLINE
  • Posts: 7
  • Thanks: 1
  • Karma: 0
8 years 2 months ago #284953 by barker
I have the link functionality enabled but I am not seeing buttons to create the link?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48457
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago - 8 years 2 months ago #284984 by krileon
Replied by krileon on topic CB Connect Link Buttons in cb-profile-edit ?
They don't display anywhere but in the CB Login module (Linking and Sign Up are both done from login module). If you want them in profile edit you'll have to add the HTML for that in a Custom HTML field. Could be useful to have the Link buttons show in profile edit though and have added a feature ticket for it.

forge.joomlapolis.com/issues/6157


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: 8 years 2 months ago by krileon.

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

  • barker
  • barker
  • OFFLINE
  • Posts: 7
  • Thanks: 1
  • Karma: 0
8 years 2 months ago #285015 by barker
Works for me:

In getField @ line 190 of `components/com_comprofiler/plugin/user/plug_cbconnect/cbconnect.php`:
Code:
} elseif (!$value && ($user->get('id') == Application::MyUser()->get('id'))) { $values = array(); global $_CB_framework; $return = null; $connect = new Connect($connect->id); $return .= $connect->button(1); if ($return) { static $CSS = 0; if (!$CSS++) { $_CB_framework->document->addHeadStyleSheet($_CB_framework->getCfg('live_site') . '/components/com_comprofiler/plugin/user/plug_cbconnect/css/cbconnect.css'); } $return = '<div class="content-spacer text-center cb_template cb_template_' . selectTemplate('dir') . ' cbConnectButtons">' . $return . '</div>'; } }

YMMV

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48457
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #285058 by krileon
Replied by krileon on topic CB Connect Link Buttons in cb-profile-edit ?
Do not modify core code. You will lose your changes on update of CB Connect. If we do install reviews we will update your install so please keep this in mind. You can output the buttons to profile edit using a Custom HTML field with a link to the below URLs for example.

Facebook:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbconnect&provider=facebook

Google:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbconnect&provider=google

Twitter:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbconnect&provider=twitter


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