How to add social bookmarks buttons?

Discussion in 'PHP' started by alien, Feb 12, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Does anyone know how can I add digg, delicious, Furl and technorati buttons to my sites through PHP script

    I want to use PHP script on html site
     
    alien, Feb 12, 2007 IP
    jhmattern and 8everything like this.
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  3. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Thanks a lot nico, nice sharing, I was looking for same thing (y)
     
    designcode, Feb 12, 2007 IP
  4. alien

    alien Well-Known Member

    Messages:
    1,844
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    190
    #4
    alien, Feb 12, 2007 IP
  5. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #5
    you can go to digg del. red. all those social bookmarks sites and get the code from them, and I'm sure they have various version.. All I've ever used is the html code..
     
    Brandon Sheley, Feb 12, 2007 IP
  6. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #6
    http://www.calevans.com/view.php/page/notable
    This is a WordPress plugin but it's quite easy to slightly alter the code and slap it in your website.

    If you are really in a hurry, this is the code I use (you need to use the graphics from the package above and put them in /images/blogbling. And obviously $url and $title are the URL and title of your page... ;)

    del.icio.us:
    <a href="http://del.icio.us/post?url=<?= urlencode($url) ?>&title=<?= urlencode($title) ?>" title="Add to delicious: <?= $title ?>" target="_blank"><img src="/images/blogbling/delicious_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    Digg
    <a href="http://digg.com/submit?phase=2&url=<?= urlencode($url) ?>&title=<?= urlencode($title) ?>" title="Add to digg: <?= $title ?>" target="_blank"><img src="/images/blogbling/digg_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    Newsvine
    <a href="http://www.newsvine.com/_tools/seed&save?u=<?= urlencode($url) ?>&h=<?= urlencode($title) ?>" title="Add to newsvine: <?= $title ?>" target="_blank"><img src="/images/blogbling/newsvine_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    reddit
    <a href="http://reddit.com/submit?url=<?= urlencode($url) ?>&title=<?= urlencode($title) ?>" title="Add to reddit: <?= $title ?>" target="_blank"><img src="/images/blogbling/reddit_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    technorati
    <a href="http://technorati.com/faves/?add=<?= urlencode($title) ?>" title="Add to technorati: <?= $title ?>" target="_blank"><img src="/images/blogbling/technorati_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    Yahoo
    <a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?= urlencode($url) ?>&t=<?= urlencode($title) ?>" title="Add to Yahoo!: <?= $title ?>" target="_blank"><img src="/images/blogbling/yahoo_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    spurl
    <a href="http://www.spurl.net/spurl.php?title=<?= urlencode($title) ?>&url=<?= urlencode($url) ?>" title="Add to spurl: <?= $title ?>" target="_blank"><img src="/images/blogbling/spurl_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    Smarking
    <a href="http://smarking.com/editbookmark/?url=<?= urlencode($url) ?>" title="Add to smarking: <?= $title ?>" target="_blank"><img src="/images/blogbling/smarking_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    ma.gnolia.com
    <a href="http://ma.gnolia.com/bookmarklet/add?url=<?= urlencode($url) ?>&title=<?= urlencode($title) ?>" title="Add to Ma.gnolia: <?= $title ?>" target="_blank"><img src="/images/blogbling/magnolia_s.png" style="padding: 1px;" border="0"></a>
    PHP:
    HTH, cheers! :)
     
    picouli, Feb 12, 2007 IP
    designcode and alien like this.
  7. alien

    alien Well-Known Member

    Messages:
    1,844
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    190
    #7
    All above script is not working on html site :(
     
    alien, Feb 13, 2007 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #8
    Change the extension to .php or use the Javascript snippet above.
     
    nico_swd, Feb 13, 2007 IP
Thread Status:
Not open for further replies.