PDA

View Full Version : Show Thread Enhancements - Digg Display & Digg Count


ericgtr
12-28-2007, 10:00 PM
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:

<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)

<!-- 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 :)

* BlizzardHQ clicks install

SwollenCranium
12-30-2007, 12:06 AM
neat idea, though it is showthread not forumdisplay :)

* BlizzardHQ clicks install


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


<!-- 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

ericgtr
01-11-2008, 09:43 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
Unfortunately not, that's one of the disadvantages and I have also not been able to find a way to change the text color.

993ti
01-14-2008, 12:19 AM
Also works with 3.6.8 ;)

CoryHawk
01-14-2008, 10:06 PM
Greetings..

Was wondering 2 things.. First.. is this possible.. and second.. can someone help me with the variables..


I have installed a snippet of code on my vbseo 1.0 template for vb 3.7beta3

The code is the following..


<!-- Digg -->
<td class="vbmenu_control" id="digg" nowrap="nowrap">
<script type="text/javascript">
digg_url = 'http://forums.prisonofficer.org/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 -->


In the digg_url code.. it works be uses the old VB urls and not the seo-friendly vbSEO urls.. I was wondering if there was variables for vbSEO to have the same effect but with the correct SEO rewrote URLs.

The button works to digg the post (which is already a function in vbSEO) however I would like it to show the digg count which will not work since the URLs get rewritten.


Does that make sense or am I babbling?

Example URLs Below


vbSEO url = http://forums.prisonofficer.org/officer-down-news/543-texas-co-killed-escape.html

VB Normal URL = http://forums.prisonofficer.org/showthread.php?t=543




Thanks in advance.


Cory

ericgtr
01-14-2008, 10:30 PM
Greetings..

Was wondering 2 things.. First.. is this possible.. and second.. can someone help me with the variables..


I have installed a snippet of code on my vbseo 1.0 template for vb 3.7beta3

The code is the following..


<!-- Digg -->
<td class="vbmenu_control" id="digg" nowrap="nowrap">
<script type="text/javascript">
digg_url = 'http://forums.prisonofficer.org/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 -->


In the digg_url code.. it works be uses the old VB urls and not the seo-friendly vbSEO urls.. I was wondering if there was variables for vbSEO to have the same effect but with the correct SEO rewrote URLs.

The button works to digg the post (which is already a function in vbSEO) however I would like it to show the digg count which will not work since the URLs get rewritten.


Does that make sense or am I babbling?

Example URLs Below


vbSEO url = http://forums.prisonofficer.org/officer-down-news/543-texas-co-killed-escape.html

VB Normal URL = http://forums.prisonofficer.org/showthread.php?t=543




Thanks in advance.


Cory
I have tried to find an answer to this but cannot and have ended up disabling Zoints SEO on my site because of it, which has really hurt my search engine results. For each SEO system the have a replacement variable, it's a matter of locating it.

Andy92
01-15-2008, 07:18 PM
I am searching showthread.php and i cant find this line...

<td class="vbmenu_control" id="threadtools" nowrap="nowrap">

ericgtr
01-15-2008, 09:42 PM
I am searching showthread.php and i cant find this line...
What version of vB are you using? Either way just looking for
id="threadtools"
should work.

CoryHawk
01-16-2008, 03:53 PM
Here is a document on vBSEO's variables... could anyone with knowledge of this help me out?

http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/

I have no idea what needs to be replaced in the code.

ericgtr
01-16-2008, 09:50 PM
Here is a document on vBSEO's variables... could anyone with knowledge of this help me out?

http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/

I have no idea what needs to be replaced in the code.
I'm not exactly sure what the replacement variables are for VBSEO because I don't have it otherwise I would mess with it for you, ultimately though you are after replacements for:


$thread[threadid]

and

$threadinfo[title]


Maybe they can give these to you over there.

ericgtr
01-21-2008, 04:05 PM
CoryHawk, I have figured out how to get this to work with vBseo as I have it installed now. Here is the code


<!-- Digg -->
<td class="vbmenu_control" id="digg" nowrap="nowrap">
<script type="text/javascript">
digg_url = 'http://www.yoursite.com$_SERVER[VBSEO_URI]';
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 -->

CoryHawk
01-22-2008, 03:33 AM
Thanks Eric!

Should that be _SERVER[VBSEO_URL] or VBSEO_URI ?

PenPusher1000
05-12-2008, 12:26 AM
Great idea!

Does it work on 3.7.0?

Thanks.

hotwheels
05-30-2008, 08:02 AM
Very nice mod......

TheInsaneManiac
06-01-2008, 04:37 AM
Uninstalled:
Looks horrible on a black background.

Alfa1
06-01-2008, 12:08 PM
A great idea. I wish this was available for stumbleupon as well. Digg is great, but stumbleopun has sent many more people to my site.

codybohnhead
06-04-2008, 08:18 PM
I have the latest version of vBulletin; 3.7.1. When I look in "showthread.php" I can't seem to find that line. I am looking in the right fille, correct? Any ideas?

Please Help,
Cody

tangerinebreem
06-21-2008, 05:44 PM
me too, tried search file as suggested but no cigar

Zacarias
07-17-2008, 09:08 PM
Thanks for this!

paulvev
07-20-2008, 12:41 PM
I have 3.7.2 installed but when i put the code in, its missing from the location at the top of the thread. i.e i cant see it.

Any idea how to make this compatible with 3.7.1 and 3.7.2. A few people before me have asked this too. Thanks.

cynthetiq
07-21-2008, 05:59 AM
works fine for me on a 3.7.2 installation; trying to work on the background color thing; shame that it can't match the skins better.

youradhere4222
07-21-2008, 10:52 PM
When an article is dugg, the link to the diggs is dark blue on my dark red color (#990000)

Is there anyway to fix this? Thanks.

TheInsaneManiac
07-23-2008, 10:01 PM
When an article is dugg, the link to the diggs is dark blue on my dark red color (#990000)

Is there anyway to fix this? Thanks.
Weird mine is dark grey?

vwdforum
07-24-2008, 06:13 PM
I've added this to my forum and it does work however the forum post page now takes about 10 seconds to load when it was only about 1 second before adding this.

is there any way to improve this?

cynthetiq
07-24-2008, 07:57 PM
I've added this to my forum and it does work however the forum post page now takes about 10 seconds to load when it was only about 1 second before adding this.

is there any way to improve this?

I did the same thing...

vwdforum
07-31-2008, 04:41 PM
Is this mod supported at all now as I was hoping I would receive a reply regarding if its possibly to speed up the thread appearing,.

cynthetiq
07-31-2008, 04:56 PM
I'm not sure how someone would support this as looking at the code it is no different than the widget you can put in your blog/myspace/facebook. In other words, I think that it is a process of how the digg code works and not how the mod works.

I settled my needs by creating a digg bbcode that I use by placing the URL into a redited button.

name: digg
bbcode tag: digg
http://www.tfproject.org/tfp/hall-fame/911-mass-media-mind-control-16.html#post2495425
replacement code:<script>
digg_url = '{param}';
digg_window = 'new';
</script>
<script src="http://digg.com/api/diggthis.js"></script>

no for all selections

this spead up my showthread response and only slowed down the ones where the digg code was embeded.

Brother Malachi
08-20-2008, 12:14 AM
*Hammer clicks Installed*

Is there a way to change the font color?

nick-harper
08-20-2008, 12:53 PM
Is there a way to get this to work with tfSEO?

masterweb
08-24-2008, 07:25 PM
Installed and working, thanks :up:

SBlueman
09-01-2008, 01:18 AM
Any way to get this to work with vblogetin? This is what I have been able to do so far:

<!-- Digg -->
<td class="vbmenu_control" id="digg" nowrap="nowrap">
<script type="text/javascript">
digg_url = '$entry[url]';
digg_title = "$entry[title]";
digg_skin = 'compact';
digg_window = 'new';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</td>
<!-- / Digg -->

but the urls are coming out:
http://gridironfans.com/forums/blogs/viewblog.php?userid=521&;entry=420

instead of:
http://gridironfans.com/forums/blogs/viewblog.php?userid=521&entry=420

It seems to be throwing a ";" between the user id and entry id.

SBlueman
09-01-2008, 06:50 PM
Hmmm....seems like I am having issues with Digg...

Some members are getting this message:An unknown fatal exception has occurred
Whoa! Something blew up. If you think you reached this error in error please do not hesitate to contact support.

And others are getting:This domain has been consistently flagged as violating the Digg Terms of Service and cannot be submitted at this time. Please refer to our Terms of Service (digg.com/tos) for more information.

Azonaco
09-18-2008, 11:23 PM
This mod single handedly slowed my Forum down for days before I figured out what it was. The average load time increased for showthread by about 2 seconds. Any reason why?

For now, uninstalled.