AlphaUA
Forum Replies Created
-
To make it select full image, not a thumbnail, do next:
1. Go to Plugins->editor
2. Select plugin to edit: Digg Digg
3. Select file digg-digg/include/dd-class.php
4. Find next strings:if(current_theme_supports(‘post-thumbnails’)) $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($postId), ‘thumbnail’ );
5. There is 2 of them, replace both with next string:
if(current_theme_supports(‘post-thumbnails’)) $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($postId), ‘full’ );
6. Update file
7. EnjoyForum: Plugins
In reply to: [Digg Digg] [Plugin: Digg Digg] How to set up XFBML facebook like buttonThey use invalid code for xfbml button. To make it work with floating bar you should do next:
1. Go to plugins->editor
2. Select plugin to edit: Digg Digg
3. Select file digg-digg/include/dd-class.php
4. Find next line:const BASEURL = “<script src=\”http://connect.facebook.net/FACEBOOK_LOCALE/all.js#xfbml=1\”></script><fb:like href=\”VOTE_URL\” FACEBOOK_SEND FACEBOOK_SHOW_FACE VOTE_BUTTON_DESIGN ></fb:like>”;
5. Replace it with next code:
const BASEURL = "<div style=\"position: relative; left: 6px;\"> <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/all.js#xfbml=1\"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <fb:like href=\"VOTE_URL\" FACEBOOK_SEND FACEBOOK_SHOW_FACE VOTE_BUTTON_DESIGN ></fb:like></div>";6. Update file
7. Important step !!! Go to digg digg panel -> floating display. Make sure you enabled “Facebook Like (XFBML)” option and press “Save changes” button. You should do this even if you had xfbml button enabled before.
8. EnjoyP.S. Tested on Digg Digg v5.2.7 in all major browsers