digg Integrator v1.1


The new version of this plugin is v1.2 visit here

Description

This page covers information pertaining to the digg Integrator plugin v1.1 for WordPress 2.0. Previous versions are listed in the FAQ section found at the end of this post.

The digg Integrator plugin is designed to help WordPress users more easily integrate digg features and functions into their posts and pages. This plugin has two main functions that will benefit users.

First, the plugin is set to use digg's submission API to provide a link for automatically submitting stories to digg. Through use of the wjt_diggThisPost function a customizable button can be displayed on any post. This button, when clicked, will submit the story to digg or show a link to the existing story if the page has already been submitted.

The second usage incorporates the digg Javascript button into a post allowing visitors to digg the story directly from the page. By using the wjt_diJavaButton function the server will look for incoming traffic and automatically create the Java Button used for digging.

Screenshots can be seen below:

Options Page
Topic Dialogue

diggIntegrator Plugin (as .zip)

Pages: 1 2 3 4

61 Responses to “digg Integrator v1.1”

  1. August 2nd, 2006 at 11:48 am

    Keep getting a fatal error whenever I put the wjt_diggImp line in the loop on your version. Otto’s version works, but you can’t pick the button.

    - Kevin Baggs
  2. August 2nd, 2006 at 12:54 pm

    So regarding the 3 functions above. What is supposed to be done with them. If I have put the wjt_diggImp call in the loop, is there something else that is supposed to be done for the above 3 functions?

    - Kevin Baggs
  3. August 2nd, 2006 at 2:52 pm

    Kevin,
    wjt_diggImp is not something that can be used in this plugin. That’s the previous “digg Implementor” plugin that is no longer being maintained. The correct three plugins are listed on the page titled “usage,” they are “wjt_diggThisPost,” “wjt_diJavaButton,” and “wjt_Check.”

    “wjt_diggImp” is not a part of this plugin.

    Regarding placement, you can place these functions anywhere in the loop so long as you remember to style them to fit your theme properly.

    Hope this helps.

    - WildBil
  4. August 3rd, 2006 at 8:34 pm

    I upgraded to 1.1 and now it seems that the check feature stopped working. I’m getting the java box for my dugg posts, but the ‘digg this post’ graphic is not showing up anymore.

    When I select which graphic I want to use in the plugin menu, it doesn’t seem like it’s saving the info. But regardless, it’s not showing the alt text either.

    As far as implementation, I stuck into the loop. Did I miss putting something else in?

    - Jim
  5. August 3rd, 2006 at 8:35 pm

    stuck “php wjt_diCheck();” into the loop, that is

    - Jim
  6. August 4th, 2006 at 3:45 am

    Jim,

    Can you provide a URL where this is happening? I’d be glad to look it over and try and figure out what’s wrong.

    - WildBil
  7. August 6th, 2006 at 4:57 pm

    Jim,

    I’ve been looking over the code and have tested it a few times on my own site and things appear to be looking ok.

    ‘wjt_diCheck’ will either display the button which submits the story OR the button which allows digging it. It won’t display both - what happens is that if the story is dugg it shows the javascript, if the story has not been dugg it shows the submit options.

    As for remembering the settings, on the plugin admin panel it currently doesn’t echo the setting - only the default. It will only change it if you hit submit though. I’ll add a better display of the current settings to the next version.

    Does this help at all?

    - WildBil
  8. August 6th, 2006 at 5:49 pm

    I’m feeling like a moron right now, because I just can’t get this to work. I have copied the main file into my plugins directory, put the complete digg folder into my plugins directory, and activated the plugin via the admin interface. Next, I went into the theme editor, opened the main index for my theme, and found the end of the article loop where the categories, # of comments, and edit option are created. Inside the where these things are inserted at the end of an article, I have placed the line:

    |

    which I thought would give the digg option followed by a space and a bold vertical bar. All I get is the vertical bar which follows the # of comments indicator and the vertical bar which should follow the digg-it button/text. I thought this would be an easy plugin, but apparently it involves more than activating and putting the php call to the function. I also tried using the same line prior to the article body to post next to the author name section of the post, but got the vertical bar only.

    Please help me see what I’m missing.

    - RagManX
  9. August 6th, 2006 at 5:53 pm

    Didn’t expect the page to actually process the php code from my previous comment. I mean to say that I inserted the line:

    wjt_diCheck(); ?> <strong>|</strong>

    only with the necessary

    - RagManX
  10. August 6th, 2006 at 5:57 pm

    RagManX,

    Your question got a bit garbled when the php code was removed. Chances are the problem is appearing because you haven’t set a topic for your post on the post’s write/edit page.

    In the right column you should see a section titled “Digg Integrator” if you haven’t set a topic nothing will appear. Could this be the issue?

    - WildBil
  11. August 6th, 2006 at 6:33 pm

    Absolutely. I didn’t realize that was a needed step. So I went back now and tried setting a topic on one of my articles, and low and behold, the Digg this article text shows up. Now I just have to figure out why I’m not getting a graphic and I’ll be set. I’m assuming it’s a permissions thing somewhere that’s preventing me from saving my preferences. Thanks for the help.

    - RagManX
  12. August 6th, 2006 at 6:49 pm

    RagMan,

    If you can provide a link to your blog and a sense of where the button is supposed to be I can give it a look.

    - WildBil
  13. August 12th, 2006 at 10:02 pm

    I’ve got everything working, seemingly, but I’m getting two buttons being displayed. On one post (http://www.emarketingperformance.com/:/846/search-marketing/when-good-business-goes-bad/) I dug it twice and now it gives me an error. Not sure what do do. I’m also at a loss on the whole setting a topic issue. When I create a new post I don’t get any such option. After a post is created i can edit it and I get an option to add a custom field, but I don’t know what that is all about. Please help.

    - St0n3y
  14. August 12th, 2006 at 10:18 pm

    I have fixed one of the errors by removing the code for the “digg this” plugig that I had previously installed. I have also fixed the duplication and two other errors by removing javabutton and the dicheck code. It would be nice to be able to implement these if anybody has any ideas.

    - St0n3y
  15. August 13th, 2006 at 6:07 am

    St0n3y,

    What errors are you reffering to? I’d be glad to adress them but I’m experiencing no problems right now so I’m sure what might be causing others trouble…

    - WildBil
  16. August 13th, 2006 at 11:44 am

    I put in all three functions and the errors have returned: http://www.emarketingperformance.com/:/846/search-marketing/when-good-business-goes-bad/

    I see a “dugg” and then two broken images that say, error not found. How do I fix this?

    You’ll also notice that on other posts there are two “digg this” images which there should not be.

    - St0n3y
  17. August 14th, 2006 at 3:55 pm

    St0n3y,

    Sorry for the delay, your comments got caught up in my spam filter for some reason.

    At any one time you should be using one or another of the three functions. Not all three at once - each does a different thing. If you’re lining them up back to back it would explain what you’re seeing.

    if you want to display the “digg this” button and then the JavaButton if it was dugg, then you’ll use wjt_diCheck. If you want to only show the JavaButton (which will only appear if the post has been dugg) use the wjt_diJavaButton. If you only want to show the “digg this” button use wjt_diggThisPost.

    Could this be the problem you’re encountering?

    - WildBil
  18. August 15th, 2006 at 6:43 am

    Thanks WildBil, that seems to have cleared up one of the problems. I’m using the diCheck and now I’m getting an error on posts that were dugg. You can see this error on the link above.

    - St0n3y
  19. August 15th, 2006 at 12:06 pm

    St0n3y,

    Go into the “Manage” section of the WordPress Admin Panel and open the offending post in the “Edit” dialogue. Part way down the page you’ll see a section titled “Custom Fields” with an entry titled “DiggURL.”

    You have two options - either enter the correct URL for the digg story, or blank that section out completely and then go to the digg story and click through to your page. This should reset the value and remove the error message you’re seeing.

    The correct URL should be: http://www.digg.com/business_finance/When_Good_Businesses_Goes_Bad

    - WildBil
  20. August 15th, 2006 at 12:43 pm

    Awesome, that worked! Will this be a problem with any future posts that get dugg?

    - St0n3y
  21. August 15th, 2006 at 4:11 pm

    This will only occur if the first visitor from digg comes through a link on a directory page. If they come from the normal page it’ll be fine.

    I’m working on a way of determining when its a link from the directory. I’ve got an idea of how to do it, just trying to make sure its the best method. I’ll be updating soon (maybe this weekend) hopefully with a fix.

    - WildBil
  22. August 16th, 2006 at 5:16 pm

    WildBil! This looks awesome. One problem though, there’s no new options for Digg Integrator under the “options” section of the dashboard.

    Also, my button selection in the plugin area isn’t getting saved. maybe i’m missing something. I’m running WordPress 2.0.4.

    - tyler
  23. August 17th, 2006 at 6:22 am

    Howdy Tyler,

    There shouldn’t be anything listed under the options page - the only additions will be under the “plugins” tab and on the write/edit tabs. On the plugins page look for “digg Integrator” and on the write/edit tab look for “digg Integrator” in the sidebar.

    As for the button selection, it should be saved to the database and appear differently when you look at the button on the template. Currently it won’t show the change on the “digg Integrator” page - I forgot to add that portion of the script and will do so ASAP.

    - WildBil
  24. August 17th, 2006 at 9:40 am

    Bill,

    I went in and changed the URL manually to get rid of the broken images, but now it won’t make the custom field “DIGURL” on any new story.

    I tried to add it manually, but it won’t work. Any ideas?

    - Moto
  25. August 22nd, 2006 at 8:27 am

    I have the wiCheck installed and have dugg a couple of my own posts but I can’t get it to show that they’ve been dugg.

    - St0n3y
  26. August 22nd, 2006 at 6:03 pm

    St0n3y,

    Visit the post that has been dugg and “edit” it. On the edit page look at the “Custom Fields” box to see if there is a value for DiggURL.

    Until someone clicks through to your page from digg it won’t display the post as dugg. To get it working properly you’ll need to go to the actual digg post and click through to your page. See if that works and let me know.

    - WildBil
  27. August 23rd, 2006 at 7:51 am

    I clicked through the dugg URLs from digg and still no change. After I did this I edited the posts and found no diggURL. I tried to add it but then the diggthis image didn’t show and only an error displayed. Maybe I did that wrong.

    - St0n3y
  28. August 23rd, 2006 at 1:31 pm

    What is currently appearing in the “diggURL” box for these posts? If I can see an example maybe I can figure something out.

    - WildBil
  29. August 23rd, 2006 at 4:39 pm

    There is nothing there at all. The custom field box is empty and i have the option of adding the digurl.

    - St0n3y
  30. August 23rd, 2006 at 4:58 pm

    Even after you’ve clicked through from digg it remains blank?

    Can you manually place the URL of the digg story in that box? What effect does it have?

    - WildBil
  31. August 24th, 2006 at 7:06 am

    I get an error where the “digg this” image is supposed to be.

    - St0n3y
  32. August 24th, 2006 at 8:33 am

    Can you provide a URL where this is happening so I can look at the code that’s being sent to the browser?

    - WildBil
  33. September 1st, 2006 at 3:42 pm

    I’ve done everything and it’s not working. Right now I have it so wjt_diCheck is the only function supposed to be working. On the “write page” of the WP admin section, there’s the menu for digg topic, and diPostTopic as the Key in the custom field. Thats pretty much it. I’m lost. My site is bcollectin.com

    - Brennan
  34. September 1st, 2006 at 5:22 pm

    Where are you putting wjt_diCheck?

    - WildBil
  35. September 1st, 2006 at 6:10 pm

    I have it working now! Its awesome! Is there any way to put it right next to the post title and date? Also, is there a way to dispay the number of times it was dugg on the button? I’m using the diCheck code. And there’s this annoying border around the button I’d really like to take off. Any help would be great. Thx again

    http://www.bcollectin.com/

    - Brennan
  36. September 1st, 2006 at 6:13 pm

    Better yet, which button would have the button displayed with the number of digs as well as the smaller dig it button underneath it? I’m using the 55×55 button rt now.

    - Brennan
  37. September 1st, 2006 at 7:03 pm

    To get it floated next to the title and date you need to position it appropriately with CSS and HTML in your theme. It IS doable - without being familiar with your theme though I can’t provide much help.

    If you’re using the function which displays one button before and one after a post has been dugg it will insert the appropriate button with number of diggs. Until the post is dugg it will only display the 55×55 button until the post is dugg though - after it will look like the button you see on this page.

    - WildBil
  38. September 1st, 2006 at 11:42 pm

    Here’s what I have thus far…

    “>

    ” rel=”bookmark” title=”Permanent Link to “>

    /images/timeicon.gif” alt=”"/> by /images/author.gif” alt=”" />

    Posted in | |‘); ?>

    Not Found
    Sorry, but you are looking for something that isn’t here.

    My homepage is http://www.bcollectin.com and the WP template is “Internet Market”

    - Brennan
  39. September 1st, 2006 at 11:42 pm

    Whoops I forgot about that…

    - Brennan
  40. September 2nd, 2006 at 10:51 am

    I’m sorry but which function displays the number of times dugg on the button? :)

    - Brennan
  41. September 4th, 2006 at 2:29 pm

    Hi Bill, where does the check tag go? Where does wjt_diCheck go?

    - david
  42. September 4th, 2006 at 2:30 pm

    sorry bout that. it’s just one question. :)

    - david
  43. September 4th, 2006 at 3:24 pm

    david,

    You can put it anywhere inside the loop. I recommend somewhere inside the loop on single.php.

    - WildBil
  44. September 7th, 2006 at 8:00 am

    WildBil, thanks for the reply to my comment (#23). I’m having the same issues St0n3y was having (comment #30).

    After I click through to my URL from it’s Digg page, there’s no “diggURL” set. It’s not even listed as a key in the custom fields area. I thought there may be a diggURL key there with a blank value, but nada.

    And this is AFTER I’ve clicked through to my URL from it’s Digg URL multiple times. Any thoughts WildBil?

    Thanks! I appreciate any help you can offer.

    - tyler
  45. September 7th, 2006 at 9:11 am

    Thanks for the plugin, its great!

    QUESTION:
    Is there a way to be able to show the number of times is been dugg once is been dugg? Like at digg dot com

    Thanks

    - Paolo
  46. September 7th, 2006 at 5:43 pm

    tyler,

    Try manually entering the diggURL manually into the custom field and see what happens.

    We’ll go from there.

    Paolo,

    The wjt_diJavaButton() function does exactly that.

    - WildBil
  47. September 7th, 2006 at 5:51 pm

    I can’t get this to work. Any chance of someone giving an example of EXACTLY how and where you put the wjt_xxx functions. I am clueless based on this trail of comments as to where in my wordpress theme I should put these functions.

    - Esbjorn
  48. September 7th, 2006 at 5:54 pm

    With all of these functions, you just want to place the code right inside the wordpress loop. I recommend doing it on the Single.php file for most uses.

    - WildBil
  49. September 7th, 2006 at 6:37 pm

    WildBil, when I manually enter the diggURL it loads wjt_diJavaButton() as it should. The URL doesn’t seem to be getting grabbed and inserted once a visitor comes through digg.

    What next? I can probably look into it myself some tomorrow to see what’s going on.

    - tyler
  50. September 7th, 2006 at 6:45 pm

    I’ll go through the code again this weekend - you’re right something appears to be working incorrectly I’m not sure what yet.

    - WildBil
  51. September 7th, 2006 at 7:19 pm

    I put in the wjt_diCheck(); in the single.php but nothing is showing up. Does this mean that I need to put something in the dggUrl custom field? I thought that if this field is empty the “digg” button should show up as long as I put something in the “Preferred Digg Topic”. Can you give a code example for the single.php? My theme does not have a “theloop.php”, which I’m assuming you are referring to when you menion the “loop”.

    - Esbjorn
  52. September 7th, 2006 at 7:26 pm

    There seems to be a bug that I’ve only just become aware of. I’m not sure what’s happening yet so I’m planning on running through it this weekend to see.

    I’ll try to post a fix sometime this weekend.

    - WildBil
  53. September 7th, 2006 at 7:54 pm

    OK, I got it working in the single.php now but I really would like to use this functionality using custom fields instead just like the digg plugin from http://tech.cybernetnews.com/digg-button/ This uses CSS that put the plugin in a certain format but this plugin is missing your feature of a dynamic digg and dugg state.

    - Esbjorn
  54. September 11th, 2006 at 6:17 am

    Esbjorn, that functionality is supposed to work automagically in the digg-integrator plugin. See the comment right before yours? WildBil is gonna try to make a fix soon.

    - tyler
  55. September 21st, 2006 at 8:19 am

    [...] You can view the plugin’s documentation here. [...]

    - Digg Integrator v1.1.c » Return of the Whatzit
  56. September 22nd, 2006 at 5:14 pm

    wildbil, I’d like to offer a solution to the refer not being picked up. I’d like to discuss it with you in private however. I have a few questions on the intended functionality after we detect and insert the referring digg url into the meta data table.

    Could you send me an email so I can shoot one back to you? Just use the email address I used in this comment form.

    Thanks!!

    - tyler
  57. September 23rd, 2006 at 9:41 am

    What’s the status on this? I’m having the same problem of the DiggUrl not getting captured from the first digg visitor. If I add it manually to a post it works fine, but this is obviously not ideal.

    Appreciate the work thus far, looking forward to a fix!

    - Redth
  58. September 23rd, 2006 at 10:10 am

    [...] The Digg Integrator plugin for WordPress hasn’t been working correctly. The author, WildBil, has been working on a fix for the last week or so. I got tired of waiting for a fix lastnight and took it upon myself to create one. [...]

    - Digg Integrator Plugin Fix at T. Longren
  59. August 5th, 2007 at 5:32 pm

    [...] A new version of the digg Integrator plugin is now available. It fixes a few major bugs as well as cleans up certain previous aspects. For a full list of changes you can see the official digg Integrator v1.1 Release Page. [...]

    - Digg Integrator v1.1