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: 5329

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


NC for Hire
SweetPotato replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"I don't think I was critiquing your site. Not even looked at it to tell the truth. Eye of the…"
24 minutes ago

NC for Hire
SweetPotato replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"I hope paid access Ida bit more fleshed out them the previous iteration. Supporting multiple…"
34 minutes ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"You know what, I figured this was in the making along with several other developments. Pricing is…"
1 hour ago
Profile IconNora Roste, Marisa, Cigdem Kobu and 4 more joined Creators
1 hour ago
Allison Leahy replied to soaringeagle's discussion '3.0 priority fix list'
"Great. Thanks!"
1 hour ago
Allison Leahy replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"Thanks for these extensibility and feature requests, Elshara. Expanding and improving social…"
1 hour ago
Jelena replied to soaringeagle's discussion '3.0 priority fix list'
"Very good points"
1 hour ago
Jelena replied to soaringeagle's discussion '3.0 priority fix list'
"oghhhhhhhhhhhhhhhhh yes "
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service