What’s Digg Digg

Digg Digg is a WordPress plugin, which is used to generate social shared / voted buttons :

  1. Digg
  2. Reddit
  3. Dzone
  4. Yahoo Buzz
  5. TweetMeme (twitter)
  6. Facebook Share / Like
  7. Polladium
  8. StumbleUpon
  9. Delicious
  10. Sphinn
  11. Post Comments
  12. Google Buzz buttons
  13. Designbump
  14. Designfloat
  15. The web blend
  16. BogEngage
  17. Topsy

Digg Digg Features

  1. Buttons Integration Types
    • Left Float
    • Right Float
    • Before
    • After
  2. 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
  3. Buttons Weight
    • Sorting, make buttons display in order, where heavy weight will display in higher priority.
  4. 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.
  5. 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 :

  1. Use lazy load for Delicious, as it will use different mechanism to get the total number of counts.
  2. Assign proper permission, need consult your hosting provider.
  3. 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.

  1. <?php digg_digg_generate("Normal"); ?> //Digg , Normal or Compact
  2. <?php digg_digg_reddit_generate("Normal"); ?> //Reddit, Normal or Compact
  3. <?php digg_digg_dzone_generate("Normal"); ?> //Dzone, Normal or Compact
  4. <?php digg_digg_ybuzz_generate("Normal"); ?> //Yahoo Buzz, Normal or Compact
  5. <?php digg_digg_twitter_generate("Normal", "twitter_username", "bit.ly" ,"API"); ?> //Twitter, Normal or Compact
  6. <?php digg_digg_fbshareme_generate("Normal"); ?> //Fbshare.me, Normal or Compact
  7. <?php digg_digg_fbshare_generate("Normal"); ?> //Facebook, Normal or Compact
  8. <?php digg_digg_fblike_generate("Like"); ?> //Facebook Like, Like, Like + Text, Recommend, Recommend + Text
  9. <?php digg_digg_poll_generate("Normal"); ?> //Polladium, Normal or Compact
  10. <?php digg_digg_stumbleupon_generate("Normal"); ?> //Stumbleupon, Normal or Compact
  11. <?php digg_digg_delicious_generate("Normal"); ?> //Delicious, Normal
  12. <?php digg_digg_sphinn_generate("Normal"); ?> //Sphinn, Normal
  13. <?php digg_digg_post_comments_generate(); ?> //Post Comments
  14. <?php digg_digg_gbuzz_generate("Normal"); ?> //Google Buzz, Normal or Compact
  15. <?php digg_digg_designbump_generate("Normal"); ?> //Design Bump, Normal
  16. <?php digg_digg_designfloat_generate("Normal"); ?> //Design Float, Normal & Compact
  17. <?php digg_digg_webblend_generate("Normal"); ?> //The Web Blend, Normal
  18. <?php digg_digg_blogengage_generate("Normal"); ?> //BlogEngage, Normal
  19. <?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 :

  1. Select the buttons you want to display
    Digg Digg Ajax Floating Image
  2. Check the “Enable Ajax Left float feature” option to enable this Ajax left float feature. (Disabled by default)
    Digg Digg Ajax Floating Image
  3. 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.

      digg-digg-ajax-float-initial-position
      digg digg 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.

      digg digg ajax float scrolling position

      Scrolling back to initial position : The buttons will move back to the initial position while user scrolling up to the top of the page.

      digg-digg-ajax-float-scrolling-back to initial position

      See this “scrolling values” picture to understand how it work.

      digg digg scrolling position

      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.

Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world\'s largest enterprise software company.
Publisher : Oracle Corporation