The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can add the facebook comment to the forum?

View previous topic View next topic Go down

Solved How can add the facebook comment to the forum?

Post by congdantoancau on June 3rd 2015, 11:43 pm

Technical Details

Forum version : #phpBB2
Position : Administrator
Concerned browser(s) : Google Chrome
Screenshot of problem : http://i18.servimg.com/u/f18/18/03/95/66/facebo10.png
Who the problem concerns : Yourself
Forum link : http://learn.forumvi.com

Description of problem

Hello!

I want to add a facebook comment box to everywhere under my post in my forum.
I already got the code from Facebook

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

<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_GB/sdk.js#xfbml=1&version=v2.3&appId=678288118968632";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

2. Place the code for your plugin wherever you want the plugin to appear on your page.

<div class="fb-comments" data-href="http://learn.forumvi.com" data-width="600" data-numposts="5" data-colorscheme="light"></div>

But I don't know how to add it into my forum. Where is the body tag I can mod?

Thank!

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by brandon_g on June 3rd 2015, 11:59 pm

Hello,

Is that a javascript? Or html? If its javascript it can be added in ACP (Admin panel)-->Modules-->Javascript management . If it is html, try adding it in ACP-->Modules-->HTML Pages management.

Regards,
-Brandon


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5140
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 12:08 am

@brandon_g wrote:Hello,

Is that a javascript? Or html? If its javascript it can be added in ACP (Admin panel)-->Modules-->Javascript management . If it is html, try adding it in ACP-->Modules-->HTML Pages management.

Regards,
-Brandon
Thank for reply!

That is the HTML.



I were try to add it to the HTML Pages management but it become only the comment frame in my forum.



My forum contents had lose

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by SLGray on June 4th 2015, 12:11 am

You will need to add both codes to the viewtopic_body template. Make sure that you add the code in the right spot you want.

I believe this will not post on your forum.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 12:19 am

What is theviewtopic_body template?


I want to add it to any under post in my forum. How can I make it? Please help me. I didn't know where I should paste it to.


Thank!

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by SLGray on June 4th 2015, 12:20 am

Administration Panel > Display > Templates > General > viewtopic_body


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 12:29 am

I found it. Added but it not work. Can you take a teamview for me? Please!

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by SLGray on June 4th 2015, 12:35 am

Did you publish the template?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 12:38 am

Yes I did

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by SLGray on June 4th 2015, 12:40 am

Did you add the numbers and text? All you need is the codes.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 12:44 am

Number? I have been had the code and added it in theviewtopic_body template.

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by brandon_g on June 4th 2015, 12:54 am

Where in the template did you add it?


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5140
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 12:57 am

At the end ofviewtopic_body template.

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 1:02 am

Ok. Done, I were not publish it soon. Thank to all! bwi cheers salut

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by SLGray on June 4th 2015, 1:04 am

So this is solved after you published the template?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by congdantoancau on June 4th 2015, 1:05 am

Yes Very HappyI make the mistaken from you mean that publish is accept button. Now it is solved. Thank you very much!

congdantoancau
Forumember

Male Posts : 63
Reputation : 3
Language : Vietnamese
Location : Vietnam

http://learn.forumvi.com

Back to top Go down

Solved Re: How can add the facebook comment to the forum?

Post by SLGray on June 4th 2015, 1:09 am

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum