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

Reply to This

Replies to This Discussion

Until you mentioned it, I had never heard of the sdk code. Reading all of these comments here, I just wanted to see if it worked on my site, and it does. It took me seconds, I didn't do anything special, just copy/paste.

it couldnt be a 3 collumn vs 2 collumumn thing or a flat style vs threaded style right i mean it adds it below every text editor on your site right?

Don't know. Might be a script conflict thing. Just noticed I have a problem with a few right now. Too tired to fix it. it's taking every ounce of strength I've got to focus not to type like you. LOL Bed time.

Be well, bro.

I have updated the code please read my post again and use the code.

Since the textbox can be only see by members who logged in

Why not make it public to anyone to comment 

Code: 

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

Live Preview

Well I've already updated the code.

how the hell did u get this to work?

btw i was told this to[ips  nothing byt troubke wil cause site to run real slow will cause browser crashes etc

but i would still like to know how any of u actualy got it to work

is this code suppoed to be added to the Custom Code section, or at the Design Studio ?

Custom code of design studio

i dont know where is that...in custom code...can you sent me a print screen?

add this 

data-width="575"> after  class="fb-comments"

so that you have 

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

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

do what suits your site.... Thanks Bernard!! 

RSS

Latest Activity

Paul Crane replied to Paul Crane's discussion '3.0 customizing content' in the group The Sandbox
"Yes it is. Thanks Kos. That is alot better customizing ability."
4 minutes ago
Kos replied to Paul Crane's discussion '3.0 customizing content' in the group The Sandbox
"Oh wait, I see what you're saying.  You want certain "parts" of a page…"
4 minutes ago
Fire-Tech replied to Fire-Tech's discussion 'Ning 3.0 First Accessment' in the group The Sandbox
"Update 5-19-2013: If you edit an existing image in an HTML box and try to change it to a new image…"
6 minutes ago
Kos replied to Paul Crane's discussion '3.0 customizing content' in the group The Sandbox
"In 3.0  you set the privacy for each individual page - not just network wide; so I can have…"
13 minutes ago
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/19/13)' in the group The Sandbox
"Edit to add: text editor not responsive vertically or horizontally on Samsung SIII"
33 minutes ago
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/19/13)' in the group The Sandbox
"Edited to add iPhone 5 view and a little housekeeping."
1 hour ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Oye it's back again.  smh  SP would you take a look for me purdy puhleeease and see…"
1 hour ago
Kos replied to Kos's discussion 'What's The Best Width When Designing A Header in 3.0?' in the group The Sandbox
"I ended up just designing/uploading a logo and moving my tabs up to the right side.  No CSS…"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service