Edited: If you use the old code then only members can see the facebook plug-in comment box and they can comment. Please use the new code, both members and non-members can see the facebook plug-in comment box and both members and non-members can comment using facebook account. 

Hey NCs,

Hope you will be very happy after  successfully using my killer tip.

Instruction is very simple: Just copy and paste the  following code into Custom Code. You may want to change data-width follow jay's instruction here.

The Old Code

<script type="text/javascript">
x$(document).ready(function(){
x$("div.texteditor").after('<div id="fb-root"></div><div class="fb-comments"></div>');
});
</script>

The New Code

<script type="text/javascript">
x$(document).ready(function(){
x$("div#discussionReplies").before('<div id="fb-root"></div><div class="fb-comments"></div>');
});
</script>

 

 

Want to give a different look to your ning site?  Mail me at bernardmax2@gmail.com

 

Live Preview: Here

Example:

 

Tags: Add, FACEBOOK, Killer, Tip:, box, comment, every, forum, page., to

Views: 5326

Reply to This

Replies to This Discussion

how can i do that in blogs?

<script type="text/javascript">
x$(document).ready(function(){
if (x$(".xg_widget_profiles_blog_list").length > 0)
x$("p#add-comment").after('<div id="fb-root"></div><div class="fb-comments" data-width="733"></div>');
});
</script>

Thanks, please could be kind enough to Direct me where to add this if you please ?

Paste it into Custom code. You are welcome.

Thanks for the Help,, but it does not seem to show up anywhere though !!

Is your site customized with lots of scripts? If so then probably one code is conflicting with another code.

Where do i have to paste the code to works in blogs?

this is all what i have including yours

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-3994476-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

<script type="text/javascript">
    x$(document).ready(function(){
    if (x$(".xg_widget_profiles_blog_list").length > 0)
    x$("p#add-comment").after('<div id="fb-root"></div><div class="fb-comments" data-width="733"></div>');
    });
    </script>

Why you do not make one good for the 3 cases. CUrrently you have one for posts, other for Photos and now one for Bloggers.

You yourself create the problem, just trying to help. I have the First and Second one. Although I have not tested the one for Photos.

The one for Bloggers just brake down as you say.

Pasted into custom code, doesn't seem to work, anything else that needs to be done?

This custom code you speak off....

there is a Visual button...and a htm- button for when you get ready to share a blog......I have also tired to use this one, to get this to work...seems to be a waist of time, I will not do it again...

not at this site but some where else...I like Ning the way it is...

Same here :(

RSS

Latest Activity

Suzie Nielsen replied to Janettee McCrary's discussion 'Any Other Oklahoma NC's?'
"I pray that NC's are safe and sound... I thought I would share some words of Prayer from my…"
4 minutes ago
Corey replied to Maythureinko's discussion 'may I know fixeddate about mid-summer:'
"Hi Maythureinko, Ning is based out of California (Western United States), so mid-summer for us is…"
36 minutes ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Hi SP, Yes, several, and all private. I have one who gave release to add to our portfolio, and it…"
1 hour ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Boy, do I hear you. I feel like I regained my sanity, just knowing I wasn't alone on this.…"
1 hour ago

NC for Hire
SweetPotato replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Same here. Jen, are any of your sites live yet? SP"
1 hour ago
Skye replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"It's certainly isn't anything you have done but cumulative issues are beginning to weigh…"
1 hour ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Hi Skye, Sorry, didn't mean to add to any unsettledness, truly. I'm not crazy about this…"
1 hour ago
Alexander replied to Alexander's discussion 'Move header image to top!'
"Thanks again anyway!"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service