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


All times are GMT. The time now is 11:00 PM.

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.01066 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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