It would be great to have the ability to have "DiggThis" appear in the // ($links): // section specified in the "node.tpl.php" - as opposed to the weight value system. That way all the "links" are together - - easy formating and styling with

tags.

For example. . . make it so "DiggThis" provides webmasters two methods to display. First method via the "weight value" which you already have. And a second method which outputs the correct code in which we can then insert where we want into "node.tpl.php".

Comments

yaph’s picture

Status: Active » Closed (fixed)

The Diggthis button is not an HTML link. Through JavaScript an iframe is integrated in the site.

cybermache’s picture

Currently I am using this solution with version 6.x. I think it can be applied to version 5.x the call might be named something different. Within my tpl files I place this code where ever I want the digg button to be displayed.

<?php if ($node->content['diggthis_button']['#value']) { ?>
<div class="digg-button"><?php print $node->content['diggthis_button']['#value'] ?></div>
<?php }; ?>

I'm wrapping the button in another div tag so that I can use css to display:none for the .diggthis_button and display:block for the .digg-button .diggthis_button. This will hide where the module is putting the button and display where the tpl code is located. Then you can use css to fine tuned it's placement.

like so

.diggthis_button {
display:none;
}
.digg-button .diggthis_button {
display:block;
}

It would be nice to be able to select which array the button is being inserted in not just having it go into the node content.