Change to Button Style

kristyb2008 - October 21, 2008 - 01:04
Project:Digg this
Version:5.x-1.3
Component:Code
Category:feature request
Priority:minor
Assigned:yaph
Status:closed
Description

Though hacking modules isn't recommended, if you would like to create your own custom style for this digg this button you can do the following. Simply replace the the following code in diggthis.module:

return '<div class="diggthis">'. $digg_js .'</div>';

with:

return '<div class="diggthis">'. l('digg this!', 'http://digg.com/submit?phase=2&url='. $url .'&title='. $title .'&bodytext='. $teaser .'&topic=business_finance') .'</div>';

Then simply theme the class "diggthiss".. which I added a button background.

#1

spiffyd - January 24, 2009 - 15:06

Since this takes out the script, wouldn't this make the DiggThis button static? (no longer displaying the # of diggs).

Also, no image is displayed...

#2

yaph - January 24, 2009 - 23:17
Assigned to:Anonymous» yaph
Status:active» closed

You can use the service links module, if you want to have static text or button.
Check out http://drupal.org/project/service_links

 
 

Drupal is a registered trademark of Dries Buytaert.