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

ericgtr 01-11-2008 09:43 PM

Quote:

Originally Posted by Jay... (Post 1418339)
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..

Code:

<!-- 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/offi...ed-escape.html

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




Thanks in advance.


Cory

ericgtr 01-14-2008 10:30 PM

Quote:

Originally Posted by CoryHawk (Post 1421539)
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..

Code:

<!-- 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/offi...ed-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...

Quote:

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

ericgtr 01-15-2008 09:42 PM

Quote:

Originally Posted by Andy92 (Post 1422091)
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-functi...sibility-1662/

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

ericgtr 01-16-2008 09:50 PM

Quote:

Originally Posted by CoryHawk (Post 1422566)
Here is a document on vBSEO's variables... could anyone with knowledge of this help me out?

http://www.vbseo.com/f2/vbseo-functi...sibility-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:

Code:

$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

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

Quote:

Originally Posted by youradhere4222 (Post 1580970)
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

Quote:

Originally Posted by vwdforum (Post 1583280)
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
[digg]http://www.tfproject.org/tfp/hall-fame/911-mass-media-mind-control-16.html#post2495425[/digg]
replacement code:
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:

Code:

<!-- 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...521&;entry=420

instead of:
http://gridironfans.com/forums/blogs...=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:
Quote:

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:
Quote:

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.


All times are GMT. The time now is 04:38 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.01457 seconds
  • Memory Usage 1,828KB
  • 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
  • (9)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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