problems installing the "digg" plugin for wordpress

Status
Not open for further replies.

ubaidabcd

Banned
Dec 12, 2006
1,030
7
0
I installed a digg plug-in for wordpress but I can't get it to work. Are you supposed to install the code in the article itself? or a sidebar? Here's the readme: (I don't understand this part: anywhere in your template (in “the loop”). What does they mean in "the loop"? I'd like to place the button near the end of the article so after they've read it they can digg. Thanks.

Plugin Name: Digg This

Version: 1.0.3

Plugin URI: » Digg This - Wordpress Plugin Aviran’s Place - The Technology Hangout

Author: Aviran Mordo

Author URI: Aviran’s Place - The Technology Hangout

Current version: 1.0 Updated: 18-Jul-2006
Digg this wordpress plugin is a plugin that detects incoming links from Digg.com to your wordpress post and automatically display a link back to the digg post, for people to digg your story.
When a digg is first recognized an email is sent to the site’s admin

The detection is based on the referrer URL, which has to come from digg.
In case there is more than one digg posts to your page, only the first one will be displayed.

How to install:
Copy Digg this plugin to wordpress plugin folder and activate it.

To use this, simply add <?php digg_this(); ?> or <?php digg_this_button(); < ? anywhere in your template (in “the loop”) you want to show the link back to digg.

Digg vote button
If all you want is the digg vote box all you need to use is the <?php digg_this_button(); ?> function. However if you want to use text links or to customize the box you’ll need to use <?php digg_this(); ?> function.

digg_this() can display both text link to digg and digg’s vote box and it is very customizable.

The function has 6 optional parameters:
$before - The text you want to output before the link. This can any HTML text, for instance a <span> or <div> tags
$link_text - The text that will link back to digg. The default is “Digg this story”. (This can also be an image tag or any other valid html tags)
$after - The text to output after the link back to digg. For instance the closing tags from the $before text.
$ping - This is a ping attribute (string) inside the <a href…> tag. The ping will be added at the end of the post URL.
$show_what_is_this - This is a boolean which indicates whether to show a question mark after the digg this link, which explains why this link is created and link to this plugin page.
$use_digg_button - This is a boolean which determins if you want to display Digg’s vote button or just a text link. Default is false which means display text link.


Examples:
<?php digg_this(); ?> will create a “Digg this story” link with a question mark which explains why this link is created and link to the plugin page.
<?php digg_this(”<p class=’digg’>”, “Digg this”, “<p>”); ?> will create a “Digg this” link like the previous example between <p> tags.
<?php digg_this(”<br/>”, “Digg this story”, “”, “ping”); ?> like before but adds a ping url to the digg link.
Note: if you are using url format such as yoursite.com?post=12 the ping string should be “&ping=SOMETHING”
<?php digg_this(”", “Digg this story”, “”, “ping”, false); ?> like the above but removes the ? link.
<?php digg_this_button(); ?> - Display the digg vote button
 


Assuming you've uploaded the plugin and activated it, you place the code in both the index page and the single post page of Wordpress. The Loop is a process that Wordpress uses to output all the database stuff onto the page, so placing the "dig this" code inside the loop will ensure that it appears for every post.

Post the code just above or below the meta data and you should be fine.
 
Assuming you've uploaded the plugin and activated it, you place the code in both the index page and the single post page of Wordpress. The Loop is a process that Wordpress uses to output all the database stuff onto the page, so placing the "dig this" code inside the loop will ensure that it appears for every post.

Post the code just above or below the meta data and you should be fine.

I'm not sure what I'm doing wrong, I placed the code:

<?php digg_this_button(); < ?

at the very bottom of the page, "main index template", and "single post", I don't know php, so I'm not sure what you mean, anywhere below or above "meta", so I placed the code at the very bottom of pages right above:

<?php get_footer(); ?>

When I went to the blog I got:

Parse error: parse error, unexpected '<' in /home/content/u/b/a/....../html/......./wp-content/themes/...../...../index.php on line 43

I deleted the codes and the blog is backup
 

This seems like a much better option, but I got:

Sociable tried to check for updates but failed. This might be the way PHP is set up, or just random network issues. Please visit the Sociable website to update manually if needed.

It's probably a problem with the PHP, it was a custom designed template, but I don't know what the problem could be or how to troubleshoot.


Any help would be appreciated. Thanks.
 
Nevermind, I didn't have the option for homepage checked in "socialable" . It's working now. Thanks!!

Also, I think the digg this button might work now as well I checked my plug-ins and it doesn't seem to have uploaded. My smartftp program is being strange it takes 2 times to upload a folder, doesn't do it the first time, and I didn't notice it wasn't uploaded.

Thanks again!

EDIT:

Digg button still not working, I thought I'd prefer the digg button since it would be easier to notice, but I guess its good enough.
 
If you still need help with Digg button PM me, I installed it recently and it's working fine. The problem is that until someone actually diggs a post, it doesn't show up the little digg box - that's why it doesn't seem to work all the time.
 
Status
Not open for further replies.