Author Topic: This is how to add DIGG to your details page.  (Read 6786 times)

0 Members and 1 Guest are viewing this topic.

Offline unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
This is how to add DIGG to your details page.
« on: March 05, 2007, 09:19:49 PM »
I have a question?

I integrated DIGG into my site but I dont think its right. The code to add to digg submissions is:

<script type="text/javascript">
digg_url = 'WEBSITE_URL'; <----- (HOW CAN I GET THE PATH TO THE IMAGE THAT IS BEING DUGG? IS THERE A TAG {URL} or something that will pull the full path for each image?
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

When I click the digg button here : http://www.yoursite.com/img5766.htm
It digs the following instead. http://www.yoursite.com

The code above is from www.digg.com

I'm sure this is an easy fix... just not sure how to do it.
« Last Edit: March 06, 2007, 01:17:09 AM by unite »

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: DIGG submitions!
« Reply #1 on: March 05, 2007, 10:04:31 PM »
use this tag: {self_full} - it gives you the full path

Offline unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: DIGG submitions!
« Reply #2 on: March 06, 2007, 01:16:33 AM »
Thanks that works great

Offline unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
This is how to add DIGG to your details page.
« Reply #3 on: March 06, 2007, 01:20:28 AM »
Paste this code where you want the DIGG button to show up in the (details) page.

<script type="text/javascript">
digg_url = '{self_full}';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>


Offline MaveriC

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: This is how to add DIGG to your details page.
« Reply #4 on: June 20, 2007, 12:35:58 PM »
although this works I dont want the huge digg icon.. rather a small text line which says "digg this page"

Offline MaveriC

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: This is how to add DIGG to your details page.
« Reply #5 on: July 03, 2007, 05:32:18 PM »
just discovered that the below script is enough to automatically digg the current page..

Code: [Select]
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>