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
- Topsy
- Facebook Share / Like
- Polladium
- StumbleUpon
- Delicious
- Sphinn
- Post Comments
- Google Buzz buttons
- Designbump
- Designfloat
- The web blend
- BogEngage
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.2 (latest)
Digg Digg v4.2.1
Digg Digg v4.2
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 service 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","account"); ?> //Twitter, Normal or Compact
- <?php digg_digg_tweetmeme_generate("Normal", "twitter_username", "bit.ly" ,"API"); ?> //tweetmeme, 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.2 – 17/8/2010
- Add configuration for twitter account name.
- Updated twitter manual code to support account name.
- Bug fixed for twitter’s title.
Digg Digg v4.2.1 – 13/8/2010
- Add support for official twitter button
- Bug fixed for twitter and tweetmeme conflict issue
- Add show_face support for Facebook like
- Admin page redesigned
- Add changelog tab in wordpress.org
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.
- Java Core Technology - Java RegEx, Java XML, Java I/O, Java Misc
- J2EE Frameworks - Hibernate, Spring 2.5, Spring MVC, Struts 1.x, Struts 2.x
- Build Tools - Maven, Archiva
- Unit Test - jUnit, TestNG
- Client Scripts - jQuery


GREAT plug-in, thanks!
For some reason, Google Buzz is not displaying for me. I’ve got the buttons aligned as horizontal, set to “after_content” and using “compact” wherever possible. Facebook Like and TweetMeme are the only other buttons enabled. Any ideas?
Thanks!
Never mind – wasn’t loading the js properly (corrected). Sorry!
[...] sites that supports button/badge for vote/share. I was inpired by the wordpres plugin “Digg Digg WordPress Plugin” which I am using in my blog for many days. So I decided to make one for joomla and passed [...]
[...] das beliebte Digg Digg Plugin für WordPress unterstützt nun den neuen Twitter Button. Digg Digg erweitert [...]
I love this plugin too much and I am also using it on my blog. But, I have one request if you can correct the error in BlogEngage (It does not submit the post when we click on ‘Vote’ button).
Thank you.
Few things…
1. Somthing is wrong with the twitter count. When I click to post it adds 1 to the counter and when I refresh the page the counter goes back to zero. Check my twitter account and it did post.
2. For some reason it doesn’t like to scroll back to the initial position. Rather slightly above it.
3. Would like the option to add our own button.
I do have the latest version installed.
1. Try download the official twitter plugin to test whether it work, often times, it’s caused by the twitter’s script itself, diggdigg has no control of it.
2. You need to configure the top value to suit your theme, refer FAQ above.
3. You are freely to hack the diggdigg code to suit your need.
Hope help.
Hi there. really nice plugin thanks a bunch! One thing I’d like to tweak for this French website I’ve done: I’d like to implement the facebook ‘partager’, which is the French localized equivalent to the facebook ‘share’, instead of the FB share. The link to it is http://fr.facebook.com/facebook-widgets/share.php
Could you please tell me what to tweak in your files to achieve that?
Thanks in advance!
Hello! Just installed your plugin and ran into a few issues. Firstly, when submitting to Digg, it doesn’t seem to pull the entire URL. It ends up being “http://www.weareindy.com/?p” instead of, say, “http://www.weareindy.com/?p=59″. Do I perhaps need to change the formatting of the permalink structure?
Also, is there a way to center the buttons at the bottom of the content when NOT using ajax float? If so, could you point to the code?
Thanks!
[...] It’s called Digg Digg. Like most wp plugins, it’s available for free install from the backend of your WordPress blog or site. Simply search “Digg Digg” under the plugin section. Select it from the results, install it, and then activate it. You can read more about it here. [...]
Just an FYI- Now the digg counts are not updating and it can’t seem to find the URL’s submitted. I’ll wait as I’m sure its on their end.
[...] Digg Digg [...]