@EDIT:
Found it.
If anyone is interested in the share buttons drop a reply and I'll post it here with pleasure
Code:
<a href="http://www.tumblr.com/share?v=3&u=<func urlencode>{$mybb->settings['bburl']}</func>/showthread.php?tid={$tid}&t={$thread['subject']}" target="_blank"><img src="http://img651.imageshack.us/img651/7915/tumblrh.png" alt="Tumblr" /></a>
|
So, the tumblr.com not encode the URL automatically?
No. We need to add the encoder manally otherwise it won't find the page. But I got all sorted. If anyone need the codes.. Feel free to ask.
Ah, I see. I've never used it before.
For the showthread.php?tid={$tid}, if you are using XThreads, maybe you can use {$threadurl} variable?
Hi skillz, that looks very interesting. I have never tried that but I would like to have a go. Post the codes please
Here is the code. The buttons are working I have found the function and everything is ok
(copy the code and add on image for each link)
Use it where ever you want
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
<tr>
<td class="thead" colspan="2"><strong>Social Sharing</strong></td>
</tr>
<td class="trow1" align="center">
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="LinkedIn" /></a>
<a href="http://twitter.com/share?text=<func urlencode>{$thread['subject']}</func>&url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&via=PostBomb" target="_blank"><img src="YOR_IMAGE_HERE" alt="Twitter" /></a>
<a href="http://digg.com/submit?phase=2&url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Digg" /></a>
<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="MySpace" /></a>
<a href="http://technorati.com/faves/?add=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Tech" /></a>
<a href="http://del.icio.us/post?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Delicious" /></a>
<a href="http://www.facebook.com/share.php?u=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HEREg" alt="Facebook" /></a>
<a href="http://promote.orkut.com/preview?nt=orkut.com&du=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&tt=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Orkut" /></a>
<a href="http://reddit.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="RedIt" /></a>
<a href="http://www.stumbleupon.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="StumbleUpon" /></a>
<a href="http://www.tumblr.com/share?v=3&u=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Tumblr" /></a>
</td>
</tr>
</table>
|
Just a suggestion
If the
{$threadurl} variable works there, I think it is better to use it. Because the variable will use URL type of our forum. For example, if we use SEO URL, the variable will give us the SEO URL. Only for XThreads users.
It is only a suggestion.
Thanks for sharing
RateU suggestion:
(XThreads users ONLY)
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
<tr>
<td class="thead" colspan="2"><strong>Social Sharing</strong></td>
</tr>
<td class="trow1" align="center">
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="LinkedIn" /></a>
<a href="http://twitter.com/share?text=<func urlencode>{$thread['subject']}</func>&url=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&via=PostBomb" target="_blank"><img src="YOR_IMAGE_HERE" alt="Twitter" /></a>
<a href="http://digg.com/submit?phase=2&url=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Digg" /></a>
<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="MySpace" /></a>
<a href="http://technorati.com/faves/?add=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Tech" /></a>
<a href="http://del.icio.us/post?url=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Delicious" /></a>
<a href="http://www.facebook.com/share.php?u=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HEREg" alt="Facebook" /></a>
<a href="http://promote.orkut.com/preview?nt=orkut.com&du=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&tt=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Orkut" /></a>
<a href="http://reddit.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="RedIt" /></a>
<a href="http://www.stumbleupon.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&title=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="StumbleUpon" /></a>
<a href="http://www.tumblr.com/share?v=3&u=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Tumblr" /></a>
</td>
</tr>
</table>
|
Thank you RateU, I didn't think about the SEO thing
hello rateu, using {$threadurl} is not calling the seo urls but it is working when seo plugin is OFF. any other alternatives?
update: working url
/showthread.php?tid={$thread['tid']}