REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share This Thread
#1
Share thread:

This will add social buttons to the top of each thread.

Example:
[Image: 43316887.png]

Go to ACP >> Templates & Style >> Templates >> Theme your using >> Show Thread Templates >> showthread_ratethread

and then paist this code under everything and save.

Then go check any thread for you social icons.

Code:
<div style="margin-top: 6px; padding-right: 10px;" class="float_left">
<strong style="float: left; padding-right: 10px;">Share Post:</strong>

<a title="Digg" href="http://digg.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/Digg_24x24.png" alt="Digg" /></a>

<a title="Delicious" href="http://del.icio.us/post?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/delicious_24x24.png" alt="Delicious" /></a>

<a title="Reddit" href="http://reddit.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/Reddit_24x24.png" alt="Reddit" /></a>

<a title="Face Book" href="http://www.facebook.com/share.php?u={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/FaceBook_24x24.png" alt="Face Book" /></a>

<a title="Twitter" href="http://twitter.com/home?status={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/Twitter_24x24.png" alt="" /></a>

</div>

Need any help or more buttons just ask.
[Image: jsnippetsbanner.jpg]
Latest Theme: CMS BB.
#2
Thanks mate. Been looking for this for ages. But if you put it on the bottom it screws up the forum footer and such. Putting it on top makes it work Big Grin
#3
(Apr 07, 2010, 12:42 AM)Twixing Wrote: Thanks mate. Been looking for this for ages. But if you put it on the bottom it screws up the forum footer and such. Putting it on top makes it work Big Grin

I had no problems with, and i thought it would be good so i decided to have a go at it.
[Image: jsnippetsbanner.jpg]
Latest Theme: CMS BB.
#4
nice..thanks for this.

how do I put the share mod below the tags for a thread and above the pagination?

   
#5
(Apr 07, 2010, 09:41 PM)shemo Wrote: nice..thanks for this.

how do I put the share mod below the tags for a thread and above the pagination?

I didnt test it out on a page with two pages ill lookinto it for you.
[Image: jsnippetsbanner.jpg]
Latest Theme: CMS BB.
#6
I ended up using this instead:

Code:
<div style="margin-top: 6px; padding-right: 10px;" class="float_right">
<strong style="float: left; padding-right: 10px;">Share Post:</strong>
<a title="Face Book" href="http://www.facebook.com/share.php?u={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/FaceBook_24x24.png" alt="Face Book" /></a>
<a title="Twitter" href="http://twitter.com/home?status={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="http://icons3.iconfinder.netdna-cdn.com/data/icons/web2/Icons/Twitter_24x24.png" alt="" /></a>
</div>

...as it didn't look very good on threads with multiple pages

reardless, great idea! Thanks!
[Image: firechaoeyebutton.png][Image: button.php?u=firechao]
#7
(Apr 08, 2010, 03:22 AM)Devilson Wrote:
(Apr 07, 2010, 09:41 PM)shemo Wrote: nice..thanks for this.

how do I put the share mod below the tags for a thread and above the pagination?

I didnt test it out on a page with two pages ill lookinto it for you.

come up with anything yet?
#8
(Apr 12, 2010, 06:45 PM)shemo Wrote:
(Apr 08, 2010, 03:22 AM)Devilson Wrote:
(Apr 07, 2010, 09:41 PM)shemo Wrote: nice..thanks for this.

how do I put the share mod below the tags for a thread and above the pagination?

I didnt test it out on a page with two pages ill lookinto it for you.

come up with anything yet?

I had to reset my pc but is should just take you to move the edits into pages template.
[Image: jsnippetsbanner.jpg]
Latest Theme: CMS BB.
#9
This will have some conflicts with some themes, such as mine. Sad
#10
Thank you very much


Possibly Related Threads...
Thread Author Replies Views Last Post
  MyCode in Thread Title Black Kat 7 7,145 Sep 12, 2010, 01:27 AM
Last Post: Kaleb
  Thread Prefixes - use HTML? Xemix 4 3,176 Aug 08, 2010, 07:31 AM
Last Post: Xemix
  Minimum Thread Titles 2.0 labrocca 9 11,133 Aug 02, 2010, 03:10 AM
Last Post: Guru
  Thread Notes labrocca 12 7,403 Apr 25, 2010, 06:43 AM
Last Post: atomjani
  New Thread Under Forum 88power88 9 5,664 Apr 16, 2010, 07:45 PM
Last Post: Snoopy

Forum Jump:


Users browsing this thread: 1 Guest(s)