PDA

View Full Version : Adding Digg


Criticalmass24
12-15-2006, 07:39 PM
I was wondering if you can add digg to your articles. for those of you on here that dont know what digg is here www.digg.com


How would you have it so at the bottom of ever page it could be optional to have the dig graphic + the story know what i mean..

http://blogs.zdnet.com/microsoft/?p=142 there is a example they have the digg thing at the bottom of the story can this be done

Alex
12-16-2006, 01:21 PM
100% with you on this, we definitely will... Couple of new ones we think about adding are: digg, del.icio and technorati.

Criticalmass24
12-18-2006, 07:19 PM
Alex can you explain how this can be done.

paragony2k
01-01-2007, 02:08 PM
You will have to find your own image to upload to the img folder. this is what i have done to my show_rss.tpl file in the template folder:


<!-- show_rss.tpl -->
<div id="rss">
<ul id="nav">
<li><img src="{ROOT}img/xml_icon.gif" border="0" align="bottom" alt="xml" />
<ul>
<li><a href="{ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/rss_icon.gif" border="0" alt="" /></a></li>
<li><a href="http://digg.com/submit?phase=2&url={ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/80x15-digg-badge-2.gif" border="0" alt="" /></a></li>
<li><a href="http://del.icio.us/post?v=2&url={ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/delicious_button.gif" border="0" alt="" /></a></li>
<li><a href="http://add.my.yahoo.com/rss?url={ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/myyahoo.gif" border="0" alt="" /></a></li>
<li><a href="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut={ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/mymsn.gif" border="0" alt="" /></a></li>
<li><a href="http://www.bloglines.com/sub/{ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/bloglines.gif" border="0" alt="" /></a></li>
</ul>
</li>
</ul>
</div>
<!--end show_rss-->

boccio
01-01-2007, 02:27 PM
Nice code, thanks for sharing it with others :)

Criticalmass24
01-01-2007, 09:10 PM
do you have a screen shot of what it looks like so this will add to the article just like a area that needs to be filled in. so i can just paste in the URL and it will use the image on my site.

Criticalmass24
01-01-2007, 09:19 PM
i tried it i dont see anything different cant u explain a lil better for me. i dont see any changes at all. i need it to be added at the bottom of the article does this do that bc i dont see it

themx
01-01-2007, 11:32 PM
I've tried it too, and i dont see anything different.

Alex
01-02-2007, 01:03 PM
You need to have (or make own) GIF images in order to see it. Pay attention to this snippet from above code:

<li><a href="http://digg.com/submit?phase=2&url={ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/80x15-digg-badge-2.gif" border="0" alt="" /></a></li>
<li><a href="http://del.icio.us/post?v=2&url={ROOT}rss/rss.php?wcCategory={CATEGORY_ID}"><img src="{ROOT}img/delicious_button.gif" border="0" alt="" /></a></li>

themx
01-02-2007, 04:04 PM
Well this appears but in the Category Main template but not in the full article. And I think everyone wants that this appear at the bottom of every article.

Criticalmass24
01-03-2007, 07:39 PM
thats correct. having at at the bottom of the page would be best. i think this can be done in the area where you put the news in. like adding another box up there some place like


Digg URL: __________ Digg Image: Adadasdsa.gif

boccio
01-04-2007, 10:15 AM
Well this appears but in the Category Main template but not in the full article. And I think everyone wants that this appear at the bottom of every article.
In that case add the code inside the article_Full.tpl template at the bottom, right after {ARTICLE_BODY} tag, or any place you find suitable.

Criticalmass24
01-04-2007, 08:14 PM
so how would you insert



<p><a href="http://YOUDIGSTORYURL"><img height="15" alt="Digg!" src=" http://digg.com/img/badges/80x15-digg-badge.png" width="80" border="0" /></a></p>



in there????? i suck at coding maybe someone can help....
BC if you could just make a little box to put the URL into it would be greaet.

Criticalmass24
01-04-2007, 08:22 PM
http://img235.imageshack.us/img235/9938/diggka1.jpg

theres a picture of what i am talkin about sorry my art blows in MSPAINT!