Hi there,
I tried this following code:
function get_comments() {
$buffy = '';
if (td_util::get_option('tds_p_show_comments') != 'hide') {
$buffy .= '<div class="td-post-comments">';
$buffy .= '<fb:comments-count href="' . get_comments_link($this->post->ID) . '"></fb:comments-count><i class="td-icon-comments"></i>';
$buffy .= fb-comments-count($this->post->ID);
$buffy .= '';
$buffy .= '</div>';
}
return $buffy;
}
and it shows count to -1 and the correct number is 2.
Here is the screenshot: http://prnt.sc/bvs1e6
Regards
Hi Catalin,
Thanks and would glad if you can provide the correct syntax code in order to achieve that Facebook Counter that will replace the Theme built-in one.
This is the code for Facebook Comment Counter:
<fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments
This it the Theme code for Comment Counter if I am not wrong /wp-content/themes/Newspaper/includes/wp_booster:
function get_comments() {
$buffy = '';
if (td_util::get_option('tds_p_show_comments') != 'hide') {
$buffy .= '<div class="td-post-comments">';
$buffy .= '<a>post->ID) . '"><i class="td-icon-comments"></i>';
$buffy .= get_comments_number($this->post->ID);
$buffy .= '</a>';
$buffy .= '</div>';
}
return $buffy;
}
Please advise the correct syntax code after that, is it possible?
Please?
So it will show facebook number of comments to the following: http://prnt.sc/bvkje6, http://prnt.sc/bvkjut
Regards
-
This reply was modified 10 years by
ilnegozio.
Hi there,
Is this possible in the Theme?
Firs of all, please visit this screenshot http://prnt.sc/bvkil4 – this is the number of facebook comments on our website, everything are working fine and no issues implementing it.
1. http://prnt.sc/bvkje6, http://prnt.sc/bvkjut – as you can see those are the counter of the Theme base on the number of built-in comments. We wanted to replace that number of built-in comments to the number of this http://prnt.sc/bvkil4 facebook comments counter. Please advise how to achieve that any shortcode to replace the default comment-count or correct syntax code to call the fb-count?
2. If serial 1 is possible, are things will reflect by calling “Most Commented” and will show also to “Recent Comments” as widgets by default once Serial 1 is implemented on the following link http://prnt.sc/bvkmht Screenshot?
Please advise
Regards
Hi Andrei,
Thanks to all of this, it works perfectly!
I use this way:
.fb{
border: 1px solid #ddd;
}
as #f3f3f3; is not visible to me.
Regards
Hi Andrei,
My setup doesn’t have any border line or box declared base on the code above.
Currently this is my setup: http://prntscr.com/bloo2e
I want to achieve this box with border line: http://screencast.com/t/i8iOhvgZ
Regards
Hi Andrei,
First of all, I am not using any Facebook plugin for WordPress, I took the idea from you and Chris only on how to implement these codes without using a WordPress plugin and thanks for all of these idea.
I wanted to achieve this: http://prntscr.com/bksntv where “Facebook Page Plugin” and “Facebook Comments” are inside the box in one place, source for “Facebook Page Plugin” base on this link here: Click Here and source for “Facebook Comments” base on this link here: Click Here
1. I place a code to my header.php base on you and Chris idea
<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_US/sdk.js#xfbml=1&version=v2.6&appId=(I place my APP id here)";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
2. I place code also for FB Page and FB comments on loop-single-12.php this is the Style I am using
<div class="td-post-content">
<?php echo $td_mod_single->get_content();?>
<div class="fb-page" data-href="https://www.facebook.com/(I place my Page URL here)/" data-tabs="Page" data-width="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="true"><blockquote cite="https://www.facebook.com/(I place my Page URL here)/"><a href="https://www.facebook.com/(I place my Page URL here)/">(I place my Page Name here)</a></blockquote></div>
<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="5"></div>
</div>
3. I don’t have any issue on implementing that code above mentioned as it works perfectly. I wanted to achieve that both of them as you can see on the screenshot they are wrapped inside a box with a thin border and its responsive also to any device, I want to know if I declared it correctly and proper syntax code on how to wrapped both of them inside the box with a thin border line, what to declare and where can I place it.
Regards
-
This reply was modified 10 years by
ilnegozio.
Hi guys,
Anyone here knows how to add this Facebook Page showing on top of the Facebook comment box? Same on this screenshot:
Please share how to achieve that.
Regards
-
This reply was modified 10 years by
ilnegozio.
Hi Marto,
Just to share mine using Newspaper Theme, I have less thousand of user came across facebook.
My site is hosted mainly at this domain, I am not going to mention the name but here is the link:
Click Here or here: https://goo.gl/RICDft
They offer a 24/7 excellent support, any code implementation within cPanel they helped me out and some WordPress troubleshooting, even plugin conflicts and all. Overall recommended and they won’t leave you without resolving the problem.
Specs of my hosting visit this link: Click Here or https://goo.gl/7kpOSF
-
This reply was modified 10 years by
ilnegozio.
@claus – glad you made it, welcome to the club Newspaper 7 🙂 Congrats…
Guys if you follow all steps down to 9 you won’t experience any problem. I’ve done it again on the latest update of the Theme. 🙂
Hi guys,
Since its tagdiv team weekend, so sorry to bump this up instead your stuck out there waiting for an answer, guys I tried this and tested as safe updating of the Theme and plugins which comes from the Files we just downloaded from Themeforest, read it carefully on how to update the Theme and Plugins Slider Revolution, tagDiv Social Counter and tagDiv Speed Booster only.
Enjoy!
Hi Bogdan,
Now its all clear to me, thank you so much and also for that gradient color.
Regards
@Catalin – you are most welcome.
@aktifje – glad you made it, Welcome to the club Newspaper 7 :D, hope people will see this before attempting to update version 7.0, I made this after I revert back to Version 6.7.2 when my first attempt to update Version 7 my site are totally broken, it was a big headache, luckily I have a FullBackUp to revert back before the update was made.
Hi Catalin,
I manage now to update my site to 7.0 without having a problem and I am proud to share it to the community.
Please help me to implement back the following:
1. Please advise if this is correct for Facebook comments and USERPRO Author Box – I manage to set this properly on the previous version 6.7.2 I am using loop-single-12.php style
<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
- - - This is what I inserted a shortcode to show a USERPRO Author Box Card - - -
<?php echo do_shortcode('[userpro template=card user=author]');?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
- - - This is what I inserted a code to show Facebook Comment - - -
<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="5"></div>
<?php echo $td_mod_single->related_posts();?>
For Facebook comment – I place a code in header.php
<body <?php body_class() ?> itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WebPage">
<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_US/sdk.js#xfbml=1&version=v2.5&appId=XXXXXX”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
<?php /* scroll to top */?>
2. http://prnt.sc/b2jo8d – I want to know the exact gradient color of that in the screenshot.
Regards
Hi frank,
I support and like that idea.. 🙂 :thumbsup:
+1 for this!!!
Regards
Hi Bogdan,
A million thanks to you.
1. You are a amazing, I manage to put Facebook Comments now without having a Facebook plugin.
Guys I wanna share this to you anybody out there who tried to put FB comment instead of the default one.
Source: Link Here
Here’s what I did:
1. In order to implement facebook comments, you have to disable the theme comments and then place the facebook comments shortcode in the template files.
You have to do this for every post style you use on your site. every post style has it’s own file.
Theme Panel > Post Settings > ENABLE COMMENTS ON POSTS
Enable or disable the posts’ comments, for the entire site. > Disable – Credits to Bogdan B.
2. Add the following code to header.php located /wp-content/themes/Newspaper
after this line: <body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>
add this code:
<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_US/sdk.js#xfbml=1&version=v2.5&appId=XXXXXX”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
end to before this line: <?php //this is closing in the footer.php file ?> – Credits to Chris S.
3. Add the following code to loop-single.php style and this depends what style number you are using, know or add it to all
styles. My style is loop-single-12.php
add this code:
<div class=”fb-comments” data-href=”<?php echo get_permalink($td_mod_single->post->ID); ?>” data-width=”100%” data-numposts=”5″></div>
end to before this line: <?php echo $td_mod_single->related_posts();?> – Credits to Andrei L.
4. If you are facing this issue “Only one issue–the comment count is appearing twice on our site (www.alaskapublic.org), once in the body of the post and once below. I’d like to delete the upper one. Our comment count is disabled in the theme panel.
Screenshot: http://www.alaskapublic.org/wp-content/uploads/2016/04/Screen-Shot-2016-04-12-at-4.12.41-PM.png” – @sarahglaser
Soln:
Try this css in theme panel > custom code > custom css to hide the first comment counter: http://screencast.com/t/ZyTOiRdT
.fb_comments_count{
display: none;
}
– Credits to Andrei L.
Note to tagdiv staff/admin: Please feel free to remove this comment if not allowed here.
Regards
Hi Bogdan,
1. I just want to add this code beside the Author Name option 1 or under the Profile Pic option 2: http://prnt.sc/b0vf43
<?php
echo userpro_show_badges($user_id);
?>
2. Is it possible to replace default comments as Facebook comments? if possible what is the correct syntax code? and where to put code? and we decided to go for this Facebook comment option to avoid spam comment on our site.
3. I will send you my credentials via Mail, subject: Login on the mobile version
Regards
Hi Bogdan,
Please allow me to ask how to achieve the following:
1. Comments section – you can use it to show the badge in his comments beside his name.
With this code:
<?php
echo userpro_show_badges($user_id);
?>
2. How to replace this in Comment section Click Here instead of entering “Name and Email” field to be you need to Register to Post a comment using USERPRO format.
3. How to show login/join on any devices aside from Desktop?
Btw Author Box now is working fine, thanks Bogdan.
Regards
Hi Bogdan,
Thanks for the info.
So now its clear to me and please allow me to suggest of adding a Maintenance or Coming Soon features with On/Off button returning 200 HTTP or 503 HTTP on the Theme whichever the best option for it, an awesome Page which is related to each demo, instead of doing some tricky things then the developer itself will build that feature without any conflict to the theme as they would know better than us.
And also, way possible to add our plugin on the compatible list.
Regards.
Hi Alin,
Thanks for the response, just adding up and to clear up things regarding this issue.
1. “If you want to always enable speed booster, delete this code from speed booster file: http://screencast.com/t/RZLIOPUNdqh” – if I do this the Speed Booster plugin will work as normal with or without that comment? and there will be no issue at all adding some other plugins which are not listed to the tested one’s?
Please advise.
Regards.
Congrats tagDiv!! Best Theme ever!!! 🙂
Hi there,
Any update on this issue please, as we are stuck and we didn’t install yet a demo, waiting for any advice to avoid error or conflict with the theme.
Regards.
