Facebook Comments, manual insert

Posted in: Newspaper
Post count: 58

I need to put manual facebook comments into the code.

o know it should be placed in td_module_blog_1

this is facebook code:
<div class=”fb-comments” data-href=”<?php echo get_permalink(); ?>” data-width=”470″></div>

now.. how to transform? this solution doesn’t work

$buffy .= ‘<div class=”fb-comments” data-href=”‘ . get_permalink() . ‘” data-width=”470″></div>’;

can you help me?

Post count: 3343

Hello,
unfortunately we cannot offer custom work anymore. We would have gladly made it for you but we work very hard on the updates and features for all the users. You can always get a freelancer from sites like: http://www.microlancer.com/

I am very sorry for this, we would have gladly do it if we had more free time.

Thanks for understanding!

Post count: 161

Marius,

This might be custom work, but the fact that this code doesn’t work has everything to do with how you guys coded the post templates. The code provided by facebook works on every other theme that uses the single.php file to set up the post lay-outs. The fact that the code that Zelatech mentioned doesn’t work does not mean that you can hide behind the fact that it’s custom coding, seeing as it is a normal piece of coding that can be implemented on every other site without any problems.

I’m having the same problem, and i suggest you help us out and provide us with the code that should make the comment box work.

Thanks!

Post count: 161

zelatech, I posted this problem on Stackoverflow and one those guys provided me with the right code:

$buffy .= '<div class="fb-comments" data-href="' . get_permalink() . '" data-colorscheme="light" data-numposts="5" data-mobile="false" data-width="700"></div>';

The problem was caused by the apostrophes (‘), as you can read here:

Marius, as far as not providing us with this simple piece of coding, it would literally have cost less time to post this code than to tell us you don’t have time to answer these kind of questions!

Post count: 3343

Hello,
Great @r1kay, I’m glad you find the right code and I’m sorry about that, I’m not a coder, i tried to do the best.

Thank for the message and for solution.
Happy New Year!!!

Post count: 161

Hi Marius,

Happy New Year to you too!!

You said you are not a coder, but isn’t it a little weird that support members from tagdiv who are here to answer these kind of question don’t have basic php coding skills?

Post count: 780

Hello,
Marius is the main designer and a founder… we don’t have support members, it is just us – the people that made the theme. A lot of the support requests are css related and basic questions. The coding stuff usually gets to me and the other Radu.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.