Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Digg.com System Integration Details »»
Digg.com System Integration
Version: 1.00, by ZomgStuff ZomgStuff is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.4 Rating:
Released: 02-14-2007 Last Update: Never Installs: 57
 
No support by the author.

Well I haven't seen this posted yet so I'll give it a crack.
Digg.com will bring your site huge traffic, trust me.
A friend and I made this where you can click "digg this" in a thread and then embed the "digg me" button in a thread.

Screenshots are below.


Admin CP -> Custom BB Code -> Add New BB Code

Code:
Title: Digg

Tag: digg

Replacement: <script>
digg_url = '{param}';
</script>
<script src="http://digg.com/api/diggthis.js"></script>

Example: [digg]http://digg.com/programming/Xfire_Game_Spoofing[/digg]

Description: [digg]URL TO ARTICLE[/digg]. Allows you to enter a counter for digg.


Button Image: You can borrow mine. http://www.zomgstuff.net/forum/images/techtwo/editor/digg.gif
Now for the template edit for your submit link to be on the thread.
Admin CP -> Styles and Templates -> Style Manager -> Edit Template -> postbit_legacy.
and
Admin CP -> Styles and Templates -> Style Manager -> Edit Template -> postbit
Code:
<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>
You can get the images for the thread here:
http://digg.com/tools/buttons

Screenshot:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 06-29-2007, 07:23 AM
GuaRRand GuaRRand is offline
 
Join Date: Oct 2005
Posts: 337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZomgStuff View Post
Did you remove it from bbcode manager?
i did now thanks
Reply With Quote
  #63  
Old 07-27-2007, 04:46 PM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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



I hope someone finds this useful.

Best regards,
Val.
Reply With Quote
  #64  
Old 07-28-2007, 03:50 PM
nikki712 nikki712 is offline
 
Join Date: Sep 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #65  
Old 07-28-2007, 04:08 PM
nikki712 nikki712 is offline
 
Join Date: Sep 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #66  
Old 07-28-2007, 10:03 PM
taheri6 taheri6 is offline
 
Join Date: Jan 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #67  
Old 07-28-2007, 10:21 PM
nikki712 nikki712 is offline
 
Join Date: Sep 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taheri6 View Post
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.
Reply With Quote
  #68  
Old 08-10-2007, 01:45 AM
Mag1c Mag1c is offline
 
Join Date: Jul 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

valdet! thank you so much it works perfectly now!!!!! please pm me asap we need to talk!
Reply With Quote
  #69  
Old 10-02-2007, 08:54 AM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taheri6 View Post
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
Reply With Quote
  #70  
Old 10-25-2007, 12:53 AM
bulletinboard bulletinboard is offline
 
Join Date: Oct 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great thinking, thanks.
Reply With Quote
  #71  
Old 11-08-2007, 10:16 PM
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Location: Texas
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 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.05407 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete