vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   New Posting Features - Digg.com System Integration (https://vborg.vbsupport.ru/showthread.php?t=139462)

Devil Woman 04-17-2007 08:20 PM

Hi there.

As you can see in the picture I have the digg image and it tells me how many diggs I have, now when I click on digg it nothing happens and then I get an error on my page after clicking digg it.

Any help is appreciated

Thanks

General BAM 04-17-2007 08:39 PM

quick question... is there a way to get the initial digg link to ONLY be in the first post of a thread? it seems silly to allow people do digg individual posts...

thanks in advance...

bplinson 04-18-2007 07:36 AM

Installed. Works good. Instruction for install need quite a bit of help.

Michael2 05-25-2007 04:56 AM

Quote:

Originally Posted by General BAM (Post 1229973)
quick question... is there a way to get the initial digg link to ONLY be in the first post of a thread? it seems silly to allow people do digg individual posts

thanks in advance...

I'm not a coder but I've fooled around with it and this seems to work for me (replace XXXXX with your url)...

Code:

<if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<A HREF="http://digg.com/submit?phase=2&url=http://www.XXXXX.com/boards/showthread.php?$session[sessionurl]p=$post[postid]&title=$post[title]" target="_blank">
<img src="http://digg.com/img/badges/91x17-digg-button-alt.gif" border="0" width="91" height="17" alt="Digg!" />
</A>
</if>


dope15gd 05-25-2007 06:52 AM

going to be trying this.

thanks

dope15gd 05-25-2007 06:03 PM

Quote:

Originally Posted by ATVMX (Post 1201092)
How to i add this code and make it work? i cant seem to figure it out

Can someone post the entire code with this added in?

Thanks a lot
Rob

probably figured it out by now, but I'll post it anyway. Remember to change url.net to your url

Code:

<if condition="is_member_of($bbuserinfo, 5,6)"><b><u><a href="http://digg.com/submit?phase=2&url=http://www.url.net/forum/showthread.php?$session[sessionurl]p=$post[postid]&title=$post[title]" target="_blank"><img src="IMAGEHERE" border=0></a></u></b></if>

Here's the full code I am using. It makes it so only admin/supermod can see it and puts it in the first post only.
Code:

<!-- Start Digg Button -->
<if condition="is_member_of($bbuserinfo, 5,6) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])"><b><u><a href="http://digg.com/submit?phase=2&url=http://www.silvercarclub.com/forums/showthread.php?$session[sessionurl]p=$post[postid]&title=$post[title]" target="_blank"><img src="images/misc/digg_this.gif" border=0 alt="Digg This"></a></u></b></if>&nbsp;
<!-- end digg button -->

Where it says "$bbuserinfo, 5,6" you can add whatever usergroup there you want to be able to see/use the digg button. Just add another comma and add the number.
Be sure to change www.silvercarclub.com to your forum.


Thanks to Michael2 and ZomgStuff

Monyet 06-12-2007 05:18 AM

beautiful, thanx :)

GuaRRand 06-26-2007 12:28 PM

i uninstalled it ... but the WRAPP in a newreply/newpost isnt gone (see attachement)

Where do i have to look to remove this?
i checked newreply.php and the templates, but cant find it..

ZomgStuff 06-26-2007 05:18 PM

Quote:

Originally Posted by GuaRRand (Post 1276898)
i uninstalled it ... but the WRAPP in a newreply/newpost isnt gone (see attachement)

Where do i have to look to remove this?
i checked newreply.php and the templates, but cant find it..

Did you remove it from bbcode manager?

dg0896 06-28-2007 04:35 AM

Can somebody look at my code? I am a n00b at template editing, and need help. I want it where the demo has it, next to the report button.


All times are GMT. The time now is 10:05 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.01240 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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