Digg Display & Digg Count

SpeedRazors

New Member
Get your users to Digg more threads with this simple modification. It's more visible and will promote more Diggs.

What this does differently from the stock Bookmarks is put the Digg button on top of the post in a nice little box and displays how many diggs the post has gotten. This uses javascript provided by Digg. The background color can also be defined.

Update: Fixed the javascript so it will now show the thread title if it has special characters in it.

In SHOWTHREAD find:
Code:
Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
Add this just above: (be sure to add your forum URL so it Digg can grab the title, you may optionally remove that line if you have an SEO mod installed but the title will have to be submitted manually)
Code:
Code:
<!-- Digg -->
<td class="vbmenu_control" id="digg" nowrap="nowrap">
<script type="text/javascript">
digg_url = 'SITE URL/showthread.php?t=$thread[threadid]';
digg_title = "$threadinfo[title]";
digg_skin = 'compact';
digg_window = 'new';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</td>
<!-- / Digg -->
Please click install if you use this.

Download Now

No Files Uploaded.

Screenshots
 
what does it mean if i have this digg??? please tell me and do i just need to do this or must have more things or somethig?
 
Hi,
i need to put it beside this buttons
quote.gif
quickreply.gif
can i !?
In fact I did, but I lost the title of the topic (for DIGG submission)
 
gets error
javascript:alert("Digg.com Digg This Button Error\n\nThe code implemented by the creator of this page has the following problem:\n\nThe URL does not appear to be a properly formed hostname.\n\nVisit Digg / Tools / Integrate for more help in debugging.")
 
enteens said:
gets error
javascript:alert("Digg.com Digg This Button Error\n\nThe code implemented by the creator of this page has the following problem:\n\nThe URL does not appear to be a properly formed hostname.\n\nVisit Digg / Tools / Integrate for more help in debugging.")

you need to edit digg_url = 'SITE URL/showthread.php?t=$thread[threadid]';

replace SITE URL with your sites url. ex. http://yoursite.com/showthread.php?t=$thread[threadid]';

<!-- Digg -->
<td class="vbmenu_control" id="digg" nowrap="nowrap">
<script type="text/javascript">
digg_url = 'SITE URL/showthread.php?t=$thread[threadid]';
digg_title = "$threadinfo[title]";
digg_skin = 'compact';
digg_window = 'new';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</td>
<!-- / Digg -->
 
Back
Top