Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
SpeedRazors's Avatar
SpeedRazors : ELiTE
SpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud ofSpeedRazors has much to be proud of
offline Joined: Sep 2007 Location: The Hague Posts: 646 Thanked: 129
  #1  
Thread Starter Unread 01-02-08
Digg Display & Digg Count

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:
<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:
<!-- 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
Attached Images You must register or login to view attachments.
Quote
The Following User Says Thank You to SpeedRazors For This Useful Post:
l337m4st3r's Avatar
l337m4st3r : 50+
l337m4st3r is on a distinguished road
offline Joined: Dec 2007 Posts: 59 Thanked: 1
  #2  
Unread 01-03-08
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?
speed2006's Avatar
speed2006 : Newbie
speed2006 is on a distinguished road
offline Joined: Apr 2008 Posts: 2 Thanked: 0
  #3  
Unread 04-06-08
Hi,
i need to put it beside this buttons can i !?
In fact I did, but I lost the title of the topic (for DIGG submission)

Last edited by speed2006; 04-06-08 at 09:14 PM.
speed2006's Avatar
speed2006 : Newbie
speed2006 is on a distinguished road
offline Joined: Apr 2008 Posts: 2 Thanked: 0
  #4  
Unread 04-07-08

now What !
please Reply
enteens's Avatar
enteens : Newbie +
enteens is on a distinguished road
offline Joined: Nov 2007 Posts: 15 Thanked: 1
  #5  
Unread 04-10-08
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.")
dose's Avatar
dose : Newbie +
dose is on a distinguished road
offline Joined: Nov 2007 Posts: 11 Thanked: 4
  #6  
Unread 04-15-08
Originally Posted by enteens View Post
Hover to view full quote
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 -->
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
digg, count, display
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021