PDA

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


ericgtr
29 Dec 2007, 16:39
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
30 Dec 2007, 00:59
neat idea, though it is showthread not forumdisplay :)

/me clicks install

SwollenCranium
30 Dec 2007, 01:06
neat idea, though it is showthread not forumdisplay :)

* BlizzardHQ clicks install


Indeed. :up:

ericgtr
30 Dec 2007, 01:12
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
02 Jan 2008, 03:10
thanks, amazing

Traxdata
03 Jan 2008, 16:54
good one, but is it possible to change white background?

ericgtr
03 Jan 2008, 17:05
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
03 Jan 2008, 22:16
thanks... :D

ericgtr
03 Jan 2008, 22:28
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...
09 Jan 2008, 13:26
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
11 Jan 2008, 22:43
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
14 Jan 2008, 01:19
Also works with 3.6.8 ;)

CoryHawk
14 Jan 2008, 23:06
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
14 Jan 2008, 23:30
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
15 Jan 2008, 20:18
I am searching showthread.php and i cant find this line...

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

ericgtr
15 Jan 2008, 22:42
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
16 Jan 2008, 16:53
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
16 Jan 2008, 22:50
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
21 Jan 2008, 17:05
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
22 Jan 2008, 04:33
Thanks Eric!

Should that be _SERVER[VBSEO_URL] or VBSEO_URI ?

PenPusher1000
12 May 2008, 01:26
Great idea!

Does it work on 3.7.0?

Thanks.

hotwheels
30 May 2008, 09:02
Very nice mod......

TheInsaneManiac
01 Jun 2008, 05:37
Uninstalled:
Looks horrible on a black background.

Alfa1
01 Jun 2008, 13:08
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
04 Jun 2008, 21:18
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
21 Jun 2008, 18:44
me too, tried search file as suggested but no cigar

Zacarias
17 Jul 2008, 22:08
Thanks for this!

paulvev
20 Jul 2008, 13:41
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
21 Jul 2008, 06:59
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
21 Jul 2008, 23:52
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
23 Jul 2008, 23:01
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
24 Jul 2008, 19:13
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
24 Jul 2008, 20:57
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
31 Jul 2008, 17:41
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
31 Jul 2008, 17:56
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
20 Aug 2008, 01:14
*Hammer clicks Installed*

Is there a way to change the font color?

nick-harper
20 Aug 2008, 13:53
Is there a way to get this to work with tfSEO?

masterweb
24 Aug 2008, 20:25
Installed and working, thanks :up:

SBlueman
01 Sep 2008, 02:18
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
01 Sep 2008, 19:50
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
19 Sep 2008, 00:23
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.