DiggButton Reference

This article is correct as of version 1.0.0.1 and was last updated 6th April 2008.

« Back to application page
Email Image

Assemblies

Digg.Com
 public class DiggButton

DotNetKicks.Com
 public class DNKImage
 public class DNKLink

Tr3v.RSS
 public class Category
 public class Channel
 public class Enclosure
 public class Guid
 public class Image
 public class Item
 public class Languages
 public class MimeTypes
 public class Source

Tr3v.Web.UI
 public class TableBuilder
Requirements
Namespace: Digg.Com
Assembly: Digg.Com (in Digg.Com.dll)

Digg.Com.DiggButton
public class DiggButton : System.Web.UI.Control

DiggButton Constructors
Initializes a new instance of the DiggButton class.

public method public DiggButton();
public method public DiggButton(string url); The url to be dugg!

DiggButton Properties
public property public Bgcolor {get; set;} The digg_bgcolor option can take any valid CSS color and is used only to change the background color around the outer edge of the button. If omitted, the default color is white.
public property public Bodytext {get; set;} The Description of the submission, maximum length is 350 characters
public property public Media {get; set;} This specifies the type of media being linked to, it should be news, video, or image. If not set, Digg.com defaults to news.
public property public Skin {get; set;}

The digg_skin option controls the look at the button.

If omitted the button defaults to a standard digg button (much like the one you see on Digg itself).

If specified as 'compact', then a smaller horizontal visual design is used that will fit better into a list of links.

If specified as 'icon', then only a 16x16 digger icon is returned.

This 'icon' skin obviously doesn't have room for a digg button, but will still automatically choose whether to take the user to a submit page, or to the permalink of the story.

It also will provide the current digg count of the story when the cursor hovers over it.

public property public Thumbnails {get; set;} Disable the option to choose a thumbnail during submission. Works no matter which media type is specified.
public property public Title {get; set;} The Title of the digg submission, maximum length is 75 characters
public property public Topic {get; set;} Each story must be submitted into one and only one topic. Please reference the list of allowed topics at http://digg.com/tools/integrate
public property public Url {get; set;} Story URL should be unique and devoid of session or user-specific data, maximum length is 255 characters
public property public Window {get; set;} The Window option can be set to 'new' if you wish any clicks to open in a new window, as opposed to the default which is to open links in the same browser window.