Inserting Digg code into a php include footer

Discussion in 'HTML & Website Design' started by Dylan Tovey, Aug 19, 2007.

  1. #1
    Hi - my site is http://www.magictrance.net

    The site is based on php and uses an include for the footer on each page.

    I would like to add a digg button to pretty much all of my pages.

    However - rather than try to insert it manually I've been attempting to add it to the footer.

    The code looks like this:

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

    So my question is two fold:

    1) I've added it as a line to my footer - however it does not seem to properly render onto individual pages. Does this sound like its possible?
    2) If it does work - will it treat each page individually?

    Apologies if that is not the most cogent of explanations. Very happy to clarify if it does not make sense.

    Regards

    Dylan
     
    Dylan Tovey, Aug 19, 2007 IP
  2. detz

    detz Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <script>
    digg_url = 'URLOFSTORY';
    </script>
    Did you put that part in?
     
    detz, Aug 21, 2007 IP
  3. Dylan Tovey

    Dylan Tovey Peon

    Messages:
    380
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ahh, I was just doing a general one - but that seems to have fixed it (did a quick test)

    Thanks

    Dylan
     
    Dylan Tovey, Aug 21, 2007 IP