MyBB Community Forums

Full Version: How to add a 'digg' button under every thread?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to add button linking to www.digg.com under every single thread.helpWink
CarlElit Wrote:i want to add button linking to www.digg.com under every single thread.helpWink

Do you mean a button like the one below, to be placed here:
[Image: digg.jpg]
??
If yes, here is the easiest way:
- upload this image [Image: digg.gif] to your ./images/codebuttons/ (upload it as "digg.gif").
- In your Admin Cp, expand your default template -> expand the Post Bit Templates -> edit the "postbit" template
- Find:
{$post['button_find']}
after it add:
Quote:<a href="http://www.digg.com/"><img border="0" src="http://your_forum_root/images/codebuttons/digg.gif" width="61" height="20"></a></span></td>

Replace your_forum_root in the above code with your actual forum url.
- Update template

- Enjoy!
thanks.Big Grin
This is what I was looking for today. Works good, image shows up.......but it does not seem to digg the site, just takes you to digg.com. Am I missing something? Just started working with digg today.
journeyoftheanimals Wrote:This is what I was looking for today. Works good, image shows up.......but it does not seem to digg the site, just takes you to digg.com. Am I missing something? Just started working with digg today.

Ya thats all this is. It aint like the digg submit button in vbulition
For the link use this (along with that image), it should work (I hope).

<a href="http://digg.com/submit?phase=2&url={$mybb->settings['bburl']}/showthread.php?tid={$tid}&title={$thread['subject']}<img border="0" src="http://your_forum_root/images/codebuttons/digg.gif" width="61" height="20"></a>

* Thread Moved: Moved to Code Modifications / Discussion *
Thank you Dale Hay for that code. I will check it out. What is the point of a digg link without it auto submitting the article? Ehhh just my thought.
journeyoftheanimals Wrote:Thank you Dale Hay for that code. I will check it out. What is the point of a digg link without it auto submitting the article? Ehhh just my thought.
Once the post has been submitted to digg, any further visits to the "submission url" will redirect to the digg entry automatically.