Skip to Content Skip to Menu

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

Add Facebook Gadgets to Profile!

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267087 by krileon
Replied by krileon on topic Add Facebook Gadgets to Profile!
That's all out of date. We've already started on our new website and will be sure to properly archive all the out of date information.


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.

9 years 3 months ago #267547 by matthewdavey
Replied by matthewdavey on topic Add Facebook Gadgets to Profile!
I cant seem to get this to work I have selected comment link developers.facebook.com/docs/plugins/comments/ to replace the old comments that had previously worked as discussed in this forum.

I am not a programmer where do I put what code I made a custom html field and added it to the facebook tab that previously worked.

1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

what is the JavaScript SDK where do I put this? DONT YOU ALREADY HAVE THIS CODE EMBEDDED IN CB connect?

This code from ttps://developers.facebook.com/docs/plugins/comments/ THEN GET CODE BUTTON
shows
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Then the next bit of code
<div class="fb-comments" data-href=" developers.facebook.com/docs/plugins/comments/ " data-numposts="5">

2. Place the code for your plugin wherever you want the plugin to appear on your page.
Do I put that code in the custom html?
Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267579 by krileon
Replied by krileon on topic Add Facebook Gadgets to Profile!
Ideally you should put the fb-root div and the <script in your Joomla template directly or load it using CB Auto Actions, but yes you place that in a Custom HTML 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 or Create an account to join the conversation.

9 years 3 months ago - 9 years 3 months ago #267759 by matthewdavey
Replied by matthewdavey on topic Add Facebook Gadgets to Profile!
Which would be the file to put this code I have joomla 3.41 WOULD IT BE THE TEMPLATE.PHP FILE?
or the index.php file in the template I am using?
or is there some documentation on loading it using CB Auto Actions
and you said but yes you place that in a Custom HTML field. should i do this as well?
Thanks
Last edit: 9 years 3 months ago by matthewdavey.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267776 by krileon
Replied by krileon on topic Add Facebook Gadgets to Profile!
The index.php of your Joomla template.

or is there some documentation on loading it using CB Auto Actions

A code action on the after profile display trigger with method set to JS then supply all the contents inside of the <script>CONTENTS</script> to the code parameter. This would load the JS for you at least.

and you said but yes you place that in a Custom HTML field. should i do this as well?

You can, but you may have to whitelist script elements within CB > Configuration > User Profile.


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