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

Reply
 
Thread Tools
diggTopic - Full Integration with Digg (OMG) Details »»
diggTopic - Full Integration with Digg (OMG)
Version: 1.08, by Coders Shack Coders Shack is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.7 Rating:
Released: 05-26-2007 Last Update: 05-31-2007 Installs: 133
DB Changes Uses Plugins
 
No support by the author.

[hr]value[/hr]
. . . . . . . . Brought to you by

. . . http://www.Scriptasy.com
[hr]value[/hr]
Installation Time: [error] number too small
Products: 1
VB Version: 3.6.X
  • v1.02
    • added on/off in admincp
    • added digg image/link if you haven't added the url to the thread
    v1.04
    • forgot to add the database field
    • forgot a hook/plugin
    v1.05
    • checks HTTP_REFERER, for digg.com then looks up the thread URL if it returns a digg_url then it will add it to the thread.
    • threadadmins can also manually add the url. The manual edit overrides the auto add url.
    v1.06
    • enable/disable users digg counts
    • disable per-forum option
    • enable/disable auto add digg url option
    v1.07
    • custom placements
    • custom digg image
    v1.08
    • fixed autoadd (which will make user counts work)
Example: [live demo]

Description:
[hr]value[/hr]
This has evolved into full digg integration, when someone diggs someone elses topic. And someone on digg.com clicks on the link, the thread poster gets credited with 1 digg. Plus the digg button with the current digg count gets added to the threads postbit.


Installation:
[hr]value[/hr]
  • Install product

Upgrading:
[hr]value[/hr]
if your upgrading from a version less than 1.06 you will need to uninstall the product then re-install it. If the version is 1.06 then you can just install the product with Allow Overwrite on.


Custom postbit placements:
[hr]value[/hr]
  • <!-- diggTopic_diggit --> - For the digg button
  • <!-- diggTopic_userdiggcount --> - For the user digg count
[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

Show Your Support

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

Comments
  #102  
Old 06-17-2007, 05:04 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jamsgra View Post
Also I have a suggestion - if you add "&name=" to the query string of the digg submit URL you can automatically add the thread title to the digg submit. Speed the submission up a bit.
Has ^^ this suggestion been added yet?

Quote:
Originally Posted by Chennai Style View Post
When I click the DIGG IT, it opens in the same page.
Is there any way to open in a new window ?
I'd also like this feature.

Quote:
Originally Posted by Fireproof View Post
Tried the latest version, but on one of my threads, I get the following Error on Page. See screenshot.
Quote:
Originally Posted by Billspaintball View Post
I get the same error with the last version in some forums.
I havent tried tried this version yet, but looks like the problem still exists.
Quote:
Originally Posted by Fireproof View Post
Okay, it's still not working quite right for me.

And here's the link to the thread that is not getting a "digg this thread" button (but the others are):
I also get this error - but only on some threads. When the error appears, no Digg button is displayed. If the page (thread) loads without an error, I get the digg button displayed.

I would conclude from this that there is an error processing the code to display the digg button.

This occurs even with the default vBulletin style.
Reply With Quote
  #103  
Old 06-17-2007, 06:22 PM
duckdodger duckdodger is offline
 
Join Date: Feb 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to have the digg button displayed on the news module of vbadvanced? I would like it to appear next to the reply and/or sendtofriend button.

Link to my site
Reply With Quote
  #104  
Old 06-17-2007, 09:17 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
I also get this error - but only on some threads. When the error appears, no Digg button is displayed. If the page (thread) loads without an error, I get the digg button displayed.

I would conclude from this that there is an error processing the code to display the digg button.

This occurs even with the default vBulletin style.
The error is

Code:
Expected: ')'
This is the line generating the error (from View Source):

Code:
document.write('<A HREF="http://digg.com/submit?phase=2&url=' + location.href +'&title=Deadly twist at the chiropractor's office"><img src="./images/100x20-digg-button.gif" width="100" height="20" alt="Digg!" border="0"/></a>');
and as you can see the title= part contains an apostrophe:

Code:
'&title=Deadly twist at the chiropractor's office
I don't know if this is characteristic of other threads that don't display the button but this should be handled with a "replace" to add a \ before the apostrophe. It's basically a parsing problem.

Alternatively, leave out the thread title from the URL but have the URL open in a new window so that the individual can cut-and-paste into the Digg window from the forum. I would actually prefer this solution for several reasons.
Reply With Quote
  #105  
Old 06-18-2007, 02:24 AM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
The error is

Code:
Expected: ')'
This is the line generating the error (from View Source):

Code:
document.write('<A HREF="http://digg.com/submit?phase=2&url=' + location.href +'&title=Deadly twist at the chiropractor's office"><img src="./images/100x20-digg-button.gif" width="100" height="20" alt="Digg!" border="0"/></a>');
and as you can see the title= part contains an apostrophe:

Code:
'&title=Deadly twist at the chiropractor's office
I don't know if this is characteristic of other threads that don't display the button but this should be handled with a "replace" to add a \ before the apostrophe. It's basically a parsing problem.

Alternatively, leave out the thread title from the URL but have the URL open in a new window so that the individual can cut-and-paste into the Digg window from the forum. I would actually prefer this solution for several reasons.

Good find! :up: That's where the error is occurring for me - on my threads where there's an apostrophe in the title (as in "FP's beginner's guide...").
Reply With Quote
  #106  
Old 06-21-2007, 11:18 AM
GuaRRand GuaRRand is offline
 
Join Date: Oct 2005
Posts: 337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #107  
Old 06-22-2007, 12:16 AM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GuaRRand View Post
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..
wrong mod... this hack has nothing to do with a wrap.
Reply With Quote
  #108  
Old 06-23-2007, 04:10 PM
777connect 777connect is offline
 
Join Date: Apr 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed and it seems to be working fine. Very easy install. My question is that the "digg this story" button does not show up on my GARS threads. Is there a fix for this?
Reply With Quote
  #109  
Old 06-23-2007, 05:10 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you try using the custom replacement:

<!-- diggTopic_diggit -->

place that where you want it to show up in your template.
Reply With Quote
  #110  
Old 06-24-2007, 07:09 AM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to add an "Include" list in addition to the "Exclude" list? I only want this on a few forums and that means typing out a huge list of forums to Exclude.

I thought maybe I could just wrap a conditional around the <!-- diggTopic_diggit --> code in the postbit, but I haven't tried that and I'm not positive it would work.
Reply With Quote
  #111  
Old 06-25-2007, 01:47 PM
skepticality skepticality is offline
 
Join Date: Mar 2007
Location: Roswell, GA
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool!


Quote:
Originally Posted by Coders Shack View Post
if theres still active intrest in this modification ill be releasing the new addition that displays the diggs on forum display:

demo: http://codersshack.com/forums/php_11/
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 01:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04787 seconds
  • Memory Usage 2,328KB
  • 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
  • (6)bbcode_code
  • (9)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
  • (4)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