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)

Spinball 03-12-2007 08:18 AM

Hello,
I think this could be a very important hack. I want to put the digg button down the bottom near the edit button. I have edited postbit_legacy and put the code in there (available only to moderators) but it appears after PMs as well as posts. What am I doing wrong?

I think both the main digg it button and the bbcode counter and button should be placable only by mods, supermods and admin. How would you edit the bbcode so normal users can't see the bbcode button?

I think the OP needs to put a little help with template editing in there for utter newbies so this hack is a little more accessible.

I have attached a diggit button I made.

fishhub 03-13-2007 03:27 PM

would be great if there could be a forum id to view all digg threads.:)

The Bish 03-13-2007 04:01 PM

This interests me very much but I am wondering if anyone would be able to help me integrate Digg with vBArticles. I really have no interest in having my members "Digg" the posts on my site and to be honest I am not sure I have the traffic to compete with the items on the Digg site. What does interest me, and what I do think will get "Dugg" :confused: the most, are the Blogs on my site.

http://prosper-living.com

Thoughts anyone?

The Bish

ZomgStuff 03-14-2007 03:20 AM

Sorry I've been extremely busy lately dealing with the end of 3rd quarter in high school and setting up my new forum. Thursday I'll post a very detailed tutorial on how to get it where you want.

The Bish 03-14-2007 03:17 PM

Quote:

Originally Posted by ZomgStuff (Post 1203024)
Sorry I've been extremely busy lately dealing with the end of 3rd quarter in high school and setting up my new forum. Thursday I'll post a very detailed tutorial on how to get it where you want.


Thank you Sir!

afmarko99 03-22-2007 11:16 PM

Ok so when I use the digg embed tags I put the article name there but it doesnt show the correct amount of digs.

http://www.thepublicenemy.net/showthread.php?t=436

The story = http://www.digg.com/gaming_news/Batt...25_Update_Beta

Devil Woman 04-15-2007 08:02 PM

Hi there, I have just installed this on my forum and when I add the digg url into the thread when I go to click to digg it, it comes up with error on the page and will not allow me to digg it.

Could this be something I have done wrong?

Thanks.

Prince 04-17-2007 05:07 PM

What wold the link code be if you have vbSEO installed?

I don't like using their version of "digg", I just want a simple image and link like this.

anywares 04-17-2007 05:17 PM

I dont use Digg on my board.

ZomgStuff 04-17-2007 06:53 PM

Quote:

Originally Posted by EaglezEye (Post 1209984)
Ok so when I use the digg embed tags I put the article name there but it doesnt show the correct amount of digs.

http://www.thepublicenemy.net/showthread.php?t=436

The story = http://www.digg.com/gaming_news/Batt...25_Update_Beta

If the name of the article is too long, sometimes it wont show right and will be an error. I don't know why, but it's something to do with digg.

Quote:

Originally Posted by Devil Woman (Post 1228550)
Hi there, I have just installed this on my forum and when I add the digg url into the thread when I go to click to digg it, it comes up with error on the page and will not allow me to digg it.

Could this be something I have done wrong?

Thanks.

Can you provide a screenshot? I'm not realyl following what you are saying.

Quote:

Originally Posted by Prince (Post 1229833)
What wold the link code be if you have vbSEO installed?

I don't like using their version of "digg", I just want a simple image and link like this.

I don't have this installed, but you would somehow have to know the link of the thread. I don't know how the name of the URL is formed, or how it can be found using variables.

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.

GuaRRand 06-29-2007 07:23 AM

Quote:

Originally Posted by ZomgStuff (Post 1277079)
Did you remove it from bbcode manager?

i did now thanks :D

valdet 07-27-2007 04:46 PM

Since this one wasn't working for me, I simply used the easy way that Digg offers

One very simple edit in postbit/postbit_legacy

Find
Code:

<!-- controls -->
and just above that add this

Code:

<div><if condition="is_member_of($bbuserinfo,1,2,3,4,5,6,7) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></if></div><br />

Thanks for few helpful tips over here..
Here is the result with URL being automatically submitted on Digg, and counter increases after a digg..

https://vborg.vbsupport.ru/

I hope someone finds this useful.

Best regards,
Val.

nikki712 07-28-2007 03:50 PM

I have private forums and don't want any of those threads "dugg". Since they're private, I assume that even if someone did "digg it", it wouldn't show up anywhere, right?

nikki712 07-28-2007 04:08 PM

Is there any way to for administrators to be able to just digg the FIRST post in CERTAIN forums, and then allow other members to digg that same post?

taheri6 07-28-2007 10:03 PM

Hi,

I cant get this to work well, the diggit.gif link works fine, but the embeded bbcode always shows 0 diggs even when its been submitted. Also, when you click on digg in the post it says that the URL is invalid. The first link itself works fine to submit the post however.

So I did what the person above mentioned, and used the following after the controls line

Code:

<div><if condition="is_member_of($bbuserinfo,1,2,3,4,5,6,7) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></if></div><br />

I get the same result there, it always says 0 diggs even when there are some, when you click on digg there it doesnt say that its an invalid URL at least, but it doesnt populate the title, etc like the other digg link did.

here is an example
http://www.pleskhosts.com/forum/showthread.php?t=30

nikki712 07-28-2007 10:21 PM

Quote:

Originally Posted by taheri6 (Post 1304232)
Hi,

I cant get this to work well, the diggit.gif link works fine, but the embeded bbcode always shows 0 diggs even when its been submitted. Also, when you click on digg in the post it says that the URL is invalid. The first link itself works fine to submit the post however.

So I did what the person above mentioned, and used the following after the controls line

Code:

<div><if condition="is_member_of($bbuserinfo,1,2,3,4,5,6,7) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></if></div><br />

I get the same result there, it always says 0 diggs even when there are some, when you click on digg there it doesnt say that its an invalid URL at least, but it doesnt populate the title, etc like the other digg link did.

here is an example
http://www.pleskhosts.com/forum/showthread.php?t=30

Same here.

Mag1c 08-10-2007 01:45 AM

valdet! thank you so much it works perfectly now!!!!! please pm me asap we need to talk!

Skyline_GT 10-02-2007 08:54 AM

Quote:

Originally Posted by taheri6 (Post 1304232)
Hi,

I cant get this to work well, the diggit.gif link works fine, but the embeded bbcode always shows 0 diggs even when its been submitted. Also, when you click on digg in the post it says that the URL is invalid. The first link itself works fine to submit the post however.

So I did what the person above mentioned, and used the following after the controls line

Code:

<div><if condition="is_member_of($bbuserinfo,1,2,3,4,5,6,7) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></if></div><br />

I get the same result there, it always says 0 diggs even when there are some, when you click on digg there it doesnt say that its an invalid URL at least, but it doesnt populate the title, etc like the other digg link did.

here is an example
http://www.pleskhosts.com/forum/showthread.php?t=30

This is awesome.
Thanks

bulletinboard 10-25-2007 12:53 AM

Great thinking, thanks.

StonePilot 11-08-2007 10:16 PM

Two things: 1) I also can't get the # of Diggs to show properly. I get "0" on each page. 2) I'm a noob to BBC code, I coudlnt' get it to work at all, any suggestions?

newguy 12-09-2007 09:29 AM

Quote:

Originally Posted by valdet (Post 1303218)
Since this one wasn't working for me, I simply used the easy way that Digg offers

One very simple edit in postbit/postbit_legacy

Find
Code:

<!-- controls -->
and just above that add this

Code:

<div><if condition="is_member_of($bbuserinfo,1,2,3,4,5,6,7) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></if></div><br />

Thanks for few helpful tips over here..
Here is the result with URL being automatically submitted on Digg, and counter increases after a digg..

https://vborg.vbsupport.ru/

I hope someone finds this useful.

Best regards,
Val.

Thanks valdet:up:

valdet 12-09-2007 10:39 AM

Quote:

Originally Posted by newguy (Post 1397801)
Thanks valdet:up:

I dugg one of your articles, and I am glad that it is working on your site as well.

Regards,
Val.

jdbnsnobal.net 01-19-2008 03:00 AM

My boards were banned from Digg because they went a bit Digg happy after it was installed. Does anyone know of a way to get this resolved because I love this mod and want to keep it, but Digg does not seem to return emails too well. Anyone know how to actuallt contact them?

oninuva 01-19-2008 03:09 AM

The digg counter does not work.

oninuva 01-19-2008 03:14 AM

Installed, you can view it here.

se_p800 02-02-2008 12:45 PM

I added this and it al appears ok, but when you click the "Digg this story button" I added, it takes you to the digg page and says: "This link does not appear to be a working link. Please check the URL and try again." any ideas?

Dorign 03-07-2008 02:50 AM

Using Vlad's version, thanks :)

AzzidReign 03-24-2008 08:13 PM

Quote:

Originally Posted by valdet (Post 1303218)
Since this one wasn't working for me, I simply used the easy way that Digg offers

One very simple edit in postbit/postbit_legacy

Find
Code:

<!-- controls -->
and just above that add this

Code:

<div><if condition="is_member_of($bbuserinfo,1,2,3,4,5,6,7) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></if></div><br />

Thanks for few helpful tips over here..
Here is the result with URL being automatically submitted on Digg, and counter increases after a digg..

http://img236.imageshack.us/img236/4901/diggvb5.jpg

I hope someone finds this useful.

Best regards,
Val.

Thanks bro! I used your code! It's working great right now!

nick! 05-23-2011 01:58 PM

I want to try this MOD, but I have VB 3.6.8 - Will it still work? Thankyou.


All times are GMT. The time now is 11:00 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.01777 seconds
  • Memory Usage 1,840KB
  • 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
  • (12)bbcode_code_printable
  • (13)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
  • (39)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