###
Feel free to delete this post. Turns out the theme I'm using uses the_content to simulate the_excerpt and that's why the option to let DiggDigg modify the excerpt did not seem to have any effect. Sorry for jumping the gun.
###
Hello there. Thanks for the great plugin: looks like I'll be able to use it on my blog, saving me a lot of time!
I'm using:
WP 3.1.3
DD 4.5.3.1
I'm also using a slightly modified version of the AutoFocus+ Theme ( http://fthrwght.com/autofocus/ )
When displaying a single post, the theme includes navigation to the previous and next posts. For each of these two, it presents the post excerpt.
eg: http://blog.rizzif.com/2011/06/18/home-of-the-gods/ Scroll down to "Browse" section and you'll see the links.
Then I enable DD (on my local dev environment - haven't pushed it live yet), with the following options:
Normal Display:
Enabled
Buttons displayed in Horizontal mode
Buttons displayed in Post, Page
Enable DiggDigg to modify your post excerp [sic]: OFF
The social buttons are included below my post content (good) but ALSO below the excerpt (BAD).
*I thought the suggestion below was a good idea, but 3 seconds later I noticed it removes the social links from the content of the main post displayed as well, so it seems I _don't_ have a good suggestion (yet)*
If I may suggest a patch:
digg-digg.php
function dd_hook_wp_content($content = '') {
/* ... get to line 46 ... */
$ddNormalDisplay = get_option(DD_NORMAL_DISPLAY_CONFIG);
$content = process_normal_button_display($ddNormalDisplay, $content, $url, $title, $id, $commentcount, $dd_global_config);
Could be modified as:
$ddNormalDisplay = get_option(DD_NORMAL_DISPLAY_CONFIG);
if($ddNormalDisplay[DD_EXCERP_OPTION][DD_EXCERP_OPTION_DISPLAY]==DD_DISPLAY_ON){
$content = process_normal_button_display($ddNormalDisplay, $content, $url, $title, $id, $commentcount, $dd_global_config);
}
Similar change a few lines later for the call to process_floating_button_display.
Of course, an alternative would be to let process_normal_button_display and process_floating_button_display know if they are working with the content from an excerpt, and then they could directly check the DD_EXCERP_OPTION_DISPLAY option in the given $ddNormalDisplay/$ddFloatDisplay
Or, upon saving the DD options, if the option to modify the excerpt is turned off, you could remove the filter that was added via
add_filter('the_excerpt', 'dd_hook_wp_content');
Anyways, figured I'd let you know to see what you think (boy, I'd rather hear of a patch than push my modded version and have to maintain every time you have an update :)
Thanks in advance,
F.R.