Digg Digg WordPress Plugin
What’s Digg Digg
Digg Digg is a WordPress plugin, which is used to generate social shared / voted buttons :
- Digg
- Dzone
- Yahoo Buzz
- TweetMeme (twitter)
- Facebook Share / Like
- Polladium
- StumbleUpon
- Delicious
- Sphinn
- Post Comments
- Google Buzz buttons
- Designbump
- Designfloat
- The web blend
- BogEngage
- Topsy
Digg Digg Features
- Buttons Integration Types
- Left Float
- Right Float
- Before
- After
- Buttons Display Control
- Display at Home page
- Display at Static page
- Display at Post Page
- Display at Category Page
- Display at Archive Page
- Display at certain categories
- Buttons Weight
- Sorting, make buttons display in order, where heavy weight will display in higher priority.
- Ajax Floating
- Make the buttons show at the left side of the post or page, scroll down as the people read the post, Mashable.com scrolling effect cloned.
- Lazy Loading
- Delay 5 seconds to load the buttons, so that the page will load more faster.
Download Here
Digg Digg v4.2 (latest)
Digg Digg v4.1
Digg Digg v4.0.9
Digg Digg v4.0.8
Digg Digg v4.0.7
Digg Digg v4.0.6
Digg Digg v4.0.5
Digg Digg v4.0.4
Digg Digg v4.0.3
Digg Digg v4.0.2
Digg Digg v4.0.1
Digg Digg v4.0
FAQ
Q : During the plugin activation, it hits
Parse error: syntax error, unexpected T_CLASS in yourdomain.com/wp-content/plugins/digg-digg/dd.class.php
A : Digg Digg is required the PHP 5 to support abstract class features. Make sure your hosting provides PHP version at least 5.
Parse error: syntax error, unexpected T_CONST,
expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’A : Digg Digg is required the PHP 5 to support the “const” features. Make sure your hosting provides PHP version at least 5.
Q : It hits file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration?
A : Delicious is used the PHP file_get_contents() to get the total number of bookmark counts. You can try the following options :
- Use lazy load for Delicious, as it will use different mechanism to get the total number of counts.
- Assign proper permission, need consult your hosting provider.
- Disable the Delicious button.
Q : Is there a way to customize the shared icons or images?
A : All the images or icons are generated by the social site themselves, Digg Digg has no control of it. Digg Digg is just doing the integration work, which group all the social site images into a single unit and display it.
Q : The buttons are slow to load, it impact my website performance?
A : Digg Digg is doing the “integration work” only, has no control of the buttons performance. Make sure do not select all the buttons , only select few buttons that are work in your site content. Alternatively, you can enable the lazy load in some buttons to significantly increase your website performance.
Q : How to disable Digg Digg on certain post or page?
A : Put “<!-- Digg Digg Disabled -->” in the pages or posts that you do not want Digg Digg to display.
Q : Why Facebook icon has no shared count available?
A : Read the Facebook statement.
http://wiki.developers.facebook.com/index.php/Facebook_Share
Note: While the data for the number of times users share a URL is in real time, the data for the count of Likes is delayed by 10 minutes or so while the data for the count of clicks is delayed by 20 minutes.
Also, the count doesn’t display on your page until users share the page three times.
Q : Can i display the buttons other than the four pre-defined display options (before/after content ,and letf/right float).
A : You can use the manual code code to generate the specified buttons, and place the code below to where you want the button to display.
- <?php digg_digg_generate("Normal"); ?> //Digg , Normal or Compact
- <?php digg_digg_reddit_generate("Normal"); ?> //Reddit, Normal or Compact
- <?php digg_digg_dzone_generate("Normal"); ?> //Dzone, Normal or Compact
- <?php digg_digg_ybuzz_generate("Normal"); ?> //Yahoo Buzz, Normal or Compact
- <?php digg_digg_twitter_generate("Normal", "twitter_username", "bit.ly" ,"API"); ?> //Twitter, Normal or Compact
- <?php digg_digg_fbshareme_generate("Normal"); ?> //Fbshare.me, Normal or Compact
- <?php digg_digg_fbshare_generate("Normal"); ?> //Facebook, Normal or Compact
- <?php digg_digg_fblike_generate("Like"); ?> //Facebook Like, Like, Like + Text, Recommend, Recommend + Text
- <?php digg_digg_poll_generate("Normal"); ?> //Polladium, Normal or Compact
- <?php digg_digg_stumbleupon_generate("Normal"); ?> //Stumbleupon, Normal or Compact
- <?php digg_digg_delicious_generate("Normal"); ?> //Delicious, Normal
- <?php digg_digg_sphinn_generate("Normal"); ?> //Sphinn, Normal
- <?php digg_digg_post_comments_generate(); ?> //Post Comments
- <?php digg_digg_gbuzz_generate("Normal"); ?> //Google Buzz, Normal or Compact
- <?php digg_digg_designbump_generate("Normal"); ?> //Design Bump, Normal
- <?php digg_digg_designfloat_generate("Normal"); ?> //Design Float, Normal & Compact
- <?php digg_digg_webblend_generate("Normal"); ?> //The Web Blend, Normal
- <?php digg_digg_blogengage_generate("Normal"); ?> //BlogEngage, Normal
- <?php digg_digg_topsy_generate("Normal","twitter_username","theme"); ?> //Topsy, Normal or Compact
Q : What is Ajax floating?
A : Make the buttons show at the left side of the post or page, scroll down as the people read the post, Mashable.com scrolling effect cloned.
Q :How to configure the Ajax floating?
A : Please follow the steps :
- Select the buttons you want to display
- Check the “Enable Ajax Left float feature” option to enable this Ajax left float feature. (Disabled by default)
- Change the buttons position
Due to the different theme layout design, high chance the pre-defined settings are not suitable. So, you have to configure the initial position and scrolling position or scrolling back to initial position (optional).
-
Initial position
The buttons first load and locate at this initial position.
Try change he default “margin-left:-92px;” or “margin-top:10px” to other values (-90px, -100px, 50px…) to suit your theme layout.
-
Scrolling…
Scrolling position : The buttons will move down while user scrolling down the page.
Scrolling back to initial position : The buttons will move back to the initial position while user scrolling up to the top of the page.
See this “scrolling values” picture to understand how it work.
Change the “top” value to suit your need.
P.S Do not put the “px” behind the top value, for example “top:10” is working fine, but “top:10px” will failed.
-
Q : Ajax floating, scrolling causes the sidebar to jump into the middle (or some unexpected position) of the post?
A : Upgrade to Digg Digg version 4.2, it’s fixed by changing the top value only.
For version < 4.2, consult this
The default “scrolling position” is not suit your theme, you need to change the marginLeft (refer to the scrolling values picture).
if ( scrollY > descripY && !fixedShare ) { $postShare.stop().css({ position: 'fixed', left: '50%', top: 20, marginLeft: -310 // <----- change this value. }); }
Q : Ajax floating, buttons are disappear when scrolling back to the initial position?
A : Upgrade to Digg Digg version 4.2, it’s fixed by changing the top value only.
For version < 4.2, consult this
The default “scrolling back to initial position” is not suit your theme, you may need to change few values here. (refer to the scrolling values picture).
} else if ( scrollY < descripY && fixedShare ) { $postShare.css({ position: 'relative', // <-----may change this left: 0, // <-----may change this top: 0, // <-----may change this marginLeft: pullX }); }
There are many possibilities here (too many different theme layout design), one of the solution is change to the following pattern :
} else if ( scrollY < descripY && fixedShare ) { $postShare.css({ position: 'absolute', marginLeft: pullX }); }
Q : I follow your steps, but the Ajax left float is still not working?
A : Please drop me an email with the not working URL and steps to simulate it.
Q : What is Lazy loading?
A : Make buttons delay 5 seconds to load, so that the page will load more faster.
Future development
- Configure the lazy load seconds for each buttons.
- lazy load for manual code.
- LinkedIn sharing button
- Support in excerpt
- iframe lazy load caused Google chrome scroll down (no idea, R&D)
- Add email support
- Planning a forum for digg digg
- Let user choose lazy load icon
- Add support for ShareIt
- Delicious image preload issue, with lazy load enabled. (R&D)
Changed Logs
Digg Digg v4.2 – 25/7/2010
- Add support for topsy button
- In admin setup, Link change log to changed-log.txt
- Add Announcement block
- Bug Fixed, ajax float scrolling back, push down images or content issue (major script changed).
- Update Digg Digg FAQ to explain the new changed.
Digg Digg v4.1
- Add change log tab
Digg Digg v4.0.9
- Bug fix for tweetmeme, urlshorten and new contructor
- Add floating issue in FAQ
Digg Digg v4.0.8
- Admin UI Redesign
- Bug fix for tweetmeme
- Add URL shorten api for tweetmeme
Digg Digg v 4.0.7 – 22/6/2010
- Add option to disable the credit link
Digg Digg v 4.0.6 – 8/6/2010
- Add fbshare back
Digg Digg v 4.0.5 – 3/6/2010
- Bug fixed delicious img css
- Bug fixed for unexpected ‘”‘ error.
Digg Digg v 4.0.4 – 1/6/2010
- Bug fixed twitter source is not working
Digg Digg v 4.0.3 – 27/5/2010
- Bug fixed for unexpected ‘”‘ error.
(Not sure what’s root cause, just delete all the ‘”‘ code, but delicious)
- Add version display for debug
Digg Digg v 4.0.2 – 25/5/2010
- Bugs fixed for manual code, missing the postId argument.
- CSS fixed for delicious.
Digg Digg v 4.0.1 – 25/5/2010
- Bug fixed for manual code (Compact is not working), twitter, GBuzz.
- dZone bug fixed.
Digg Digg v 4.0 – 24/5/2010
- Add Lazy loading feature to improve the performance.
- Remove abstract class from base class.
- Ajax float enable in page.
- enable the jQuery library in WordPress
- add shared count for delicious
- Refactor (front-end and back-end), many fixes
Digg Digg v 3.9.6 – 13/5/2010
- Hot fixed for checkbox is not work properly.
Digg Digg v 3.9.5 – 7/5/2010
- Hot fixed, disable the debugging mode.
Digg Digg v 3.9.4 – 7/5/2010
- Add facebook like function
- Refactor the DiggDigg button display option
- Many minor bugs fixed
Digg Digg v 3.9.3 – 6/5/2010
- Fixed for WordPress 3.0 beta , “You do not have sufficient permissions to access this page message” – add file name to add_submenu_page()
Digg Digg v 3.9.2 – 28/4/2010
- Fix for jQuery conflict issue
- Do not display Digg Digg Ajax script in home page
Digg Digg v 3.9.1 – 23/4/2010
- Enable or disable ajax left float totally.
Digg Digg v 3.9 – 14/4/2010
- upgrade Google Buzz button.
- add support for BlogEngage.com
- change the dzone height to 52px
Digg Digg v 3.8.1 – 13/4/2010
- Ajax float setup refactor
- Add option to load Google’s jQuery to avoid jQuery conflict.
- add validation for variable to avoid offset hit null.
Digg Digg v 3.8 – 10/4/2010
- float like Mashable.com scrolling effect (testing, get feedback)
- add change log adsense daemon link
- upgrade reddit button
- change google buzz to iframe to control d width and height
Digg Digg v 3.7 – 4/4/2010
- Google Buzz changed to Buzrr for shared count support
- CSS fixed for no border in image.
- Exclude display buttons in excerpt() mode.
Digg Digg v 3.6 – 25/3/2010
- Digg upgrade to smart digg button
- Customize the Facebook icon width and height
- Replace split with explode
- Add buttons display in certain category only
- Bug fix for stumbleupon custom url
Digg Digg v 3.5.1 – 16/3/2010
- Change the buttons layout to div holder
Digg Digg v 3.5 – 15/3/2010
- upgrade to new Stumble upon button
- upgrade to new Facebook share button
- add support for designbump
- add support for designfloat
- add support for web blend
- add hook to the_excerpt()
- fixed for line-up, right float problem, compact
- Admin UI redesign
Digg Digg v 3.4 – 20/2/2010
- add support Google buzz
- addon to disable DiggDigg buttons on select pages
- fixed for contact me broken link
- fixed for css background image
- fixed for broken comment link in main page
Digg Digg v 3.3.1 – 9/2/2010
- Add options to choose ul or table layout
- Append version number behind css file to avoid css cache
- hot fixed – plugin descript and post count error
Digg Digg v 3.3 – 8/2/2010
- Add support for post comments
- Add confirm message for reset button
- CSS align change from table to ul
- add replace & with & for delicious button
Digg Digg v 3.2.4 – 2/1/2010
- W3c validate for 1.0 xhtml
- Add support for sphinn
- CSS fixed ,add vertical align for table td
Digg Digg v 3.2.3 – 7/12/2009
- CSS fixed for stumbleupon and delicious image border
Digg Digg v 3.2.2 – 3/12/2009
- WordPress website causing error
Digg Digg v 3.2.1 – 3/12/2009
- Hot fix for stumbleupon & delicious image
Digg Digg v 3.2 – 1/12/2009
- Add support for StumbleUpon & Delicious
- Fix CSS bug
Digg Digg v 3.1 – 30/11/2009
- Refactor the reset and initial function to keep the existing user settings
- Change all buttons’ class name to avoid name conflict with other plugins
- All buttons’ border default to none
Digg Digg v 3.0 – 24/11/2009
- Architeture refactor (front end and back end)
- Digg Digg no longer display in feed URL
- Allow buttons to display in priority order
- Core funtions changed to OO structure, for easy maintenance
Digg Digg v 2.3 – 11/10/2009
- add support for polladium
Digg Digg v2.2 – 08/10/2009
- Custom CSS style for the button’s table container
Digg Digg v2.0 – 25/09/2009
- Add Support for fbshare.me (sharecount for facebook)
Digg Digg v1.9 – 17/09/2009
-Replace htmlspecialchars() with urlencode() method
-Buf fixed for typo error
1)$dd_twiter_display to $dd_twitter_display,
2)$dd_twiter_buttonDesign to $dd_twitter_buttonDesign
-Refactor twitter API
Digg Digg v1.8 – 30/06/2009
-Add Support for TweetMeme (twitter) button
Digg Digg v1.7 – 12/03/2009
-Add support for line up horizontal or vertical
Digg Digg v1.6 – 08/02/2009
-Add Support for Yahoo Buzz button
-Add dd_ybuzz for all YBuzz’s variables
Digg Digg v1.5.1 – 22/12/2008
-Make Digg digg plugin w3c complient, Thanks Pross
-Bug fix Bug fix digg_digg_generate() button design is not display correctly.
Digg Digg v1.5 – 23/11/2008
-Add Support for dZone me button
-Add dd_reddit for all dzone’s variables
-Bug fix Bug fix for “Button Allow Display Options” is not working for reddit and dzone
Digg Digg v1.4.1 – 15/11/2008
-Bug fix for Display Right float , append “&” in button
-Bug fix for “Button Allow Display Options” is not working, button is not display in right position
Digg Digg v1.4 – 14/11/2008
- Add Support for Reddit me button
- Bug fix for digg submit, when click digg button, open a new windows.
- Add dd_digg for all digg’s variables
- Add dd_reddit for all reditt’s variables
- Modify digg_digg_generate () method to generate digg button only
- Add digg_digg_reddit_generate () method to generate reddit button only
Digg Digg v1.3 – 01/11/2008
- Bug fix for digg submit, didnt include post title (thanks Byron)
- Add digg_digg prefix to every variables and methods
- Choose Digg Button Design – normal, compact or icon
Digg Digg v1.2 – 05/09/2008
Add Digg Button Control Display function Setup Screen.
– Display at Home page
– Display at Static page
– Display at Post Page
– Display at Category Page
– Display at Archive Page
Digg Digg v1.1 – 31/07/2008
Add Setup screen (Setting–>DiggDigg) to let user choose where user want to display Digg button.
1. Append Digg Button with Left Float Content
2. Append Digg Button with Right Float Content
3. Append Digg Button Before Content
4. Append Digg Button After Content
How to Install
1. Download and extract it
2. Copy digg-digg folder to the “/wp-content/plugins/” directory
3. Activate the plugin through the ‘Plugins’ menu in WordPress
4. Done
Contributors
- Eric Hansel – Provide custom css to override the Facebook’s default icon width and height.
If you have any ideas , please share it to me if you do not mind.




[...] 4. Digg Digg [...]
I am wondering about a way to have the stumbleupon button link to the post that it is referring to. As you can see on the main page of my blog http://blog.stevofc.com the stumbleupon button doesn’t act like the other ones. It is linking directly to my blog main page, and not the link of the post the way the other buttons do. Is there a way to fix this?
Sorry for 2 consecutive posts, but i went to the stumbleupon page and got their code. Instead of using your plugin for stumble, i coded it using their custom url function and called “the_permalink()” for the url instead of the default current page. I think your plugin would work better if you coded it to use that rather than the page you are clicking from.
thanks for it, will fix in next release
The delicious compact icon is missing in version 3.5.1.
Thanks in advance.
digg digg does not provide any delicious compact version, did you notice it in previous version?
[...] 5 – DiggDigg [...]
Anything in the works for the new “smart” digg button?
Please update with new digg Buttons.
please upgrade to Digg digg v3.6
For some reason the “Settings” option doesn’t come up for me, just the activate or delete, so I have no way to configure this plug-in. I have version 2.9.2 of WordPress, and your latest version of Digg-Digg. Any ideas?
Tania
[...] and get more traffic from those sites, here are 5 top social media WP plugins you should look at:Digg Digg: one of the best social media plugins for WordPress platform. It covers almost any social network [...]
[...] comments, Google Buzz, Designbump, Designfloat and ThewebblendVersion 3.5.1 | By Yong Mook Kim | Visit plugin siteExecutable PHP widgetLike the Text widget, but it will take PHP code as well. Heavily derived from [...]
[...] Digg Digg is a WordPress plugin that is used to generate social vote button, which include Digg , Reddit , Dzone , Yahoo Buzz , TweetMeme (twitter) , fbShare (facebook), Polladium, StumbleUpon, Delicious, Sphinn, Post comments and Google Buzz buttons. [...]
Thanks very much for the wonderful plugin.
Possible bug: When I click the Facebook button, it generates a link/post to Facebook that has a Google Buzz This icon. Is this intentional?
Hi!
Just a request for some kind of manual insertion for each individual post. I tend to start all my posts with an image, so I’d like to control where the social buttons go (e.g. aligned right but inline with the text, *below* the image), instead of it automatically being inserted at the very start of the post.
So maybe letting us insert something like or where we want it in the post might be good, while the rest of the settings (alignment, twitter source) are still set on the options page.
Digg Digg is support the manual insertion, please see the advance usage. You can put DD button to anywhere you want.
Hi mkyong, thanks for the reply!
I’m aware of the Advanced Usage, however I’m not looking to hard code it into the PHP files. Doing so would make it show up on every single post (if in single.php) or page (if in page.php) etc. Plus, it would still show up either before all of the_content or after all the_content.
I’m trying to find a solution that allows for these share buttons to be placed only on specific posts that I deem appropriate, and in a specific place in the middle of the content. Thus, it would need to be done in-post rather than by hard coding it into the PHP files.
ok, noted, will review in next release
Hey,
I am using a webpage with PHP 5.3.2 and get the error that the function split() is deprecated in digg-digg.php on line 406. (http://de2.php.net/split)
Cya
Thanks , will review in next release
[...] Digg Digg 3.4 [...]
An option for buttons that work on a black background would be great.
I have a dark background which doesn’t work with the compact Twitter or Digg button. Buttons for dark backgrounds would be great. Also, the Google Buzz compact button acts differently than the other compact buttons. My template applies a default border around images and therefore it applies a border around the Google Buzz compact button, but not the other compact buttons. How can I design a table for the buttons and give the table a light background and place the buttons within the table?
Nice plugin, but what was wrong with the old FBShare button?
Woot, mini stumble button.
[...] Download Plugin [...]
[...] DiggDigg- An awesome tool that displays social buttons on your website/blog. [...]
Ya sure, see the screenshot here: http://i38.photobucket.com/albums/e150/meetjal/Capture-2.png
As you can see, I have selected normal buttons but the Facebook button appears small. Any fix for that would be highly appreciated.
Thanks
Yes, I have actually the same issue with the facebook counts. Although I have some people who shared my content through Facebook, the count will disappear if you refresh the page.
You can see it here: http://blog.phone-deals-uk.co.uk/new-nokia-c6-leaked-lacks-luster
This is how new facebook icon look like, it only show the big icon, if there are share count.
http://wiki.developers.facebook.com/index.php/Facebook_Share
http://www.facebook.com/facebook-widgets/share.php
Let me simplify. When I select ‘Normal’ sized buttons in Digg-Digg plugin, the FB icon should show this button –> http://i38.photobucket.com/albums/e150/meetjal/fb-big-button.png
But, the currently it is showing “small” FB button in both the settings (“normal” and “compact”)
If you post is shared by at least once, it will show the big icon, else it will just show the small icon with no share count available, as i mention in the Digg Digg setup screen, this is how it work in new Facebook share , Digg Digg is just integrate the function from Facebook, we have no control of how it work like..too bad.
I would like to have the opportunity to align the buttons right and after the content.
Thanks for the great plugin!
Thanks for this great add on. However, I have a row on my page that highlights a certain category, in my case, “Television” and it shows posts under this title.
With these new buttons they show up on that list and makes it look wrong! Help! How can I exclude?
Sorry if this question is worded wrong! I tried to describe the problem the best I could.
Thank you!
Would you mind send me a print screen?
Hey thank you very much for the update. However, I would like to let you know that Facebook icon remains small (compact) in both the settings. I have selected normal icons (not compact ones) and every icons appears normal but the Facebook icon remains compact. Please have a look.
Thanks!
Facebook icon is bigger than the others, it messes up the horizontal alignment with compact buttons as shown on my place.
Plz fix it!
[...] DiggDigg- An awesome tool that displays social buttons on your website/blog. [...]
The facebook icon is a different width than the other ones. This messes up the vertical alignment.
Samething happened to the Facebook. I have to disable the FB icon for now. It’s wider than other button and mess up our vertical alignment.
Just want to note that this is the 3.5 latest version
[...] Digg Digg by Yong Mook Kim This is the best looking of these social buttons apps. Easy to install and [...]
[...] Here you can find some stats for the tool. And one link to the developer. [...]
One more thing I have way too many posts within category D to go in and add the manually to every single posts within category D.
Good plugin!
But anyways how do I make it so that it appears on every single post within certain categories only? So I want it to appear on every single post in category A, B, C, but I want to exclude it from the posts in category D. Is there a way to do this?
Mkyong, Thank you so much for the great plugin!
I just have one query,
How do I go about setting the Stumbleupon button to open a new window / tab, instead of opening in the current window?
Many Thanks for your work on this.
xD
Stumbleupon button will be replace bu new style soon, see jal request.
Be patient for the next release