I installed a digg plug-in for wordpress but I can't get it to work. Are you supposed to install the code in the article itself? or a sidebar? Here's the readme: (I don't understand this part: anywhere in your template (in “the loop”). What does they mean in "the loop"? I'd like to place the button near the end of the article so after they've read it they can digg. Thanks.
Plugin Name: Digg This
Version: 1.0.3
Plugin URI: » Digg This - Wordpress Plugin Aviran’s Place - The Technology Hangout
Author: Aviran Mordo
Author URI: Aviran’s Place - The Technology Hangout
Current version: 1.0 Updated: 18-Jul-2006
Digg this wordpress plugin is a plugin that detects incoming links from Digg.com to your wordpress post and automatically display a link back to the digg post, for people to digg your story.
When a digg is first recognized an email is sent to the site’s admin
The detection is based on the referrer URL, which has to come from digg.
In case there is more than one digg posts to your page, only the first one will be displayed.
How to install:
Copy Digg this plugin to wordpress plugin folder and activate it.
To use this, simply add <?php digg_this(); ?> or <?php digg_this_button(); < ? anywhere in your template (in “the loop”) you want to show the link back to digg.
Digg vote button
If all you want is the digg vote box all you need to use is the <?php digg_this_button(); ?> function. However if you want to use text links or to customize the box you’ll need to use <?php digg_this(); ?> function.
digg_this() can display both text link to digg and digg’s vote box and it is very customizable.
The function has 6 optional parameters:
$before - The text you want to output before the link. This can any HTML text, for instance a <span> or <div> tags
$link_text - The text that will link back to digg. The default is “Digg this story”. (This can also be an image tag or any other valid html tags)
$after - The text to output after the link back to digg. For instance the closing tags from the $before text.
$ping - This is a ping attribute (string) inside the <a href…> tag. The ping will be added at the end of the post URL.
$show_what_is_this - This is a boolean which indicates whether to show a question mark after the digg this link, which explains why this link is created and link to this plugin page.
$use_digg_button - This is a boolean which determins if you want to display Digg’s vote button or just a text link. Default is false which means display text link.
Examples:
<?php digg_this(); ?> will create a “Digg this story” link with a question mark which explains why this link is created and link to the plugin page.
<?php digg_this(”<p class=’digg’>”, “Digg this”, “<p>”); ?> will create a “Digg this” link like the previous example between <p> tags.
<?php digg_this(”<br/>”, “Digg this story”, “”, “ping”); ?> like before but adds a ping url to the digg link.
Note: if you are using url format such as yoursite.com?post=12 the ping string should be “&ping=SOMETHING”
<?php digg_this(”", “Digg this story”, “”, “ping”, false); ?> like the above but removes the ? link.
<?php digg_this_button(); ?> - Display the digg vote button
Plugin Name: Digg This
Version: 1.0.3
Plugin URI: » Digg This - Wordpress Plugin Aviran’s Place - The Technology Hangout
Author: Aviran Mordo
Author URI: Aviran’s Place - The Technology Hangout
Current version: 1.0 Updated: 18-Jul-2006
Digg this wordpress plugin is a plugin that detects incoming links from Digg.com to your wordpress post and automatically display a link back to the digg post, for people to digg your story.
When a digg is first recognized an email is sent to the site’s admin
The detection is based on the referrer URL, which has to come from digg.
In case there is more than one digg posts to your page, only the first one will be displayed.
How to install:
Copy Digg this plugin to wordpress plugin folder and activate it.
To use this, simply add <?php digg_this(); ?> or <?php digg_this_button(); < ? anywhere in your template (in “the loop”) you want to show the link back to digg.
Digg vote button
If all you want is the digg vote box all you need to use is the <?php digg_this_button(); ?> function. However if you want to use text links or to customize the box you’ll need to use <?php digg_this(); ?> function.
digg_this() can display both text link to digg and digg’s vote box and it is very customizable.
The function has 6 optional parameters:
$before - The text you want to output before the link. This can any HTML text, for instance a <span> or <div> tags
$link_text - The text that will link back to digg. The default is “Digg this story”. (This can also be an image tag or any other valid html tags)
$after - The text to output after the link back to digg. For instance the closing tags from the $before text.
$ping - This is a ping attribute (string) inside the <a href…> tag. The ping will be added at the end of the post URL.
$show_what_is_this - This is a boolean which indicates whether to show a question mark after the digg this link, which explains why this link is created and link to this plugin page.
$use_digg_button - This is a boolean which determins if you want to display Digg’s vote button or just a text link. Default is false which means display text link.
Examples:
<?php digg_this(); ?> will create a “Digg this story” link with a question mark which explains why this link is created and link to the plugin page.
<?php digg_this(”<p class=’digg’>”, “Digg this”, “<p>”); ?> will create a “Digg this” link like the previous example between <p> tags.
<?php digg_this(”<br/>”, “Digg this story”, “”, “ping”); ?> like before but adds a ping url to the digg link.
Note: if you are using url format such as yoursite.com?post=12 the ping string should be “&ping=SOMETHING”
<?php digg_this(”", “Digg this story”, “”, “ping”, false); ?> like the above but removes the ? link.
<?php digg_this_button(); ?> - Display the digg vote button