If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
mta_digg_it
This plug-in implements a single tag (mta_digg_it
) which will embed a smart, JavaScript “Digg This” button (with submit capability) in your article. The first time someone clicks on the “Digg This” button, they’ll be brought to digg.com’s link submission page with most of the information about the link already filled out (you can provide more or less information using various attributes). Any subsequent clicks will be brought to digg.com to “digg” the article.
Syntax
The mta_digg_it
tag has the following syntactic structure:
<txp:mta_digg_it />
Attributes
The mta_digg_it
tag will accept the following attributes (note: attributes are case sensitive):
digg_url="string"
When passed a url string, the URL of the article submitted to digg.com will be set to said string. When this attribute is not present (default), the current article’s permlink URL will be used.
title="string"
When passed a string, the title (short description) of the article sumbitted to digg.com will be set to said string. When this attribute is not present (default), the current article’s title will be used.
bodytext="string"
When passed a string, the body text (long description) of the article submitted to digg.com will be set to said string. If passed ‘@excerpt@’, the article’s excerpt will be submitted. When this attribute is not present (default), no body text will be submitted and the user can specify their own.
digg_topic="string"
When passed a string, the topic of the article submitted to digg.com will be set to said string. When left blank or the attribute is not present (default), no topic will be submitted and the user will have to select one of the above manually. Acceptable values: 2008_us_elections
, apple
, arts_culture
, autos
, baseball
, basketball
, business_finance
, celebrity
, comedy
, comics_animation
, design
, educational
, environment
, extreme_sports
, food_drink
, football
, gadgets
, gaming_news
, general_sciences
, golf
, hardware
, health
, hockey
, linux_unix
, microsoft
, mods
, motorsport
, movies
, music
, nintendo
, odd_stuff
, other_sports
, pc_games
, people
, pets_animals
, playable_web_games
, playstation
, political_opinion
, politics
, programming
, security
, soccer
, software
, space
, tech_news
, television
, tennis
, travel_places
, world_news
, xbox
.
media="string"
When passed a string, the media type of the article submitted to digg.com will be set to said string. Acceptable values: news
(default), image
, or video
.
bgcolor="string"
When passed a string (any valid CSS color), the background color around the “Digg It” button will be set to said color. When the attribute is not present (default) the background color will be set to white.
compact="integer"
(DEPRECATED)
When set to 1, a smaller, horizontal “Digg It” button will be used instead of the standard, larger, vertical “Digg It” button. Available values: 1 or 0 (default).
skin="string"
When passed a string, the skin/theme of the “Digg It” button will be set to that named skin. An empty or unrecognized string will result in the standard, larger, vertical “Digg It” button with digg count. Acceptable values: compact
or icon
. ‘compact’ is a “smaller horizontal [“Digg It” button] is used that will fit better into a list of links”) and
‘icon’ is a 16×16 pixel “Digg It” button will be used which “also will provide the current digg count of the story when the cursor hovers over it.”
Examples
<txp:mta_digg_it />
<txp:mta_digg_it skin="compact" bgcolor="#000"/>
<txp:mta_digg_it bodytext="excerpt" />
Change Log
v0.3 Addition of ‘media’ & ‘skin’ attributes (deprecated the ‘compact’ attribute), optional except insert for ‘bodytext’ attribute, updated list of acceptable topics, and updated documentation.
v0.2 Correctly escapes apostrophes, quotes, etc. found in title
and/or bodytext
attributes. Also now resets all variables to better support multiple “Digg This” buttons per page when certain attributes are used.
v0.1 Initial release.