vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Digg Display & Digg Count (https://vborg.vbsupport.ru/showthread.php?t=166385)

ericgtr 12-28-2007 10:00 PM

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.

BlizzardHQ 12-29-2007 11:59 PM

neat idea, though it is showthread not forumdisplay :)

[high]* BlizzardHQ clicks install[/high]

SwollenCranium 12-30-2007 12:06 AM

Quote:

Originally Posted by BlizzardHQ (Post 1411654)
neat idea, though it is showthread not forumdisplay :)

[high]* BlizzardHQ clicks install[/high]


Indeed. :up:

ericgtr 12-30-2007 12:12 AM

Thanks for catching that, it's been changed. I've also added the URL so it will display the digg count on every page of a thread and automatically add the title.

zmmmzz 01-02-2008 02:10 AM

thanks, amazing

Traxdata 01-03-2008 03:54 PM

good one, but is it possible to change white background?

ericgtr 01-03-2008 04:05 PM

Yes, change it to this, you may define any background color you like

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_bgcolor = '#ffffff';
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 it.

Traxdata 01-03-2008 09:16 PM

thanks... :D

ericgtr 01-03-2008 09:28 PM

This integration has boosted the traffic on my site in a huge way both in guests and new members. Digg is an extremely popular site and when people see the actual diggs in their posts it boosts it that much more.

Jay... 01-09-2008 12:26 PM

is there anyway to make the background transparent or use a gradient as the bar where my digg button is has a gradient image in the background


All times are GMT. The time now is 07:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03261 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete