Share button
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Share button
@EDIT:
Found it.
If anyone is interested in the share buttons drop a reply and I'll post it here with pleasure Smile

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>


[Image: 468x602b.png]
(This post was last modified: 01-28-2011 04:11 AM by Skiilz.)
01-28-2011 03:41 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Share button
So, the tumblr.com not encode the URL automatically?

01-28-2011 04:25 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: Share button
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.

[Image: 468x602b.png]
01-28-2011 05:09 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Share button
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?

01-28-2011 05:25 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #5
RE: Share button
Yes. It worked too.

[Image: 468x602b.png]
01-28-2011 10:29 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #6
RE: Share button
Hi skillz, that looks very interesting. I have never tried that but I would like to have a go. Post the codes please Smile


[Image: leelink.gif]
MYBB1.6 & XThreads
01-28-2011 12:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #7
RE: Share button
Here is the code. The buttons are working I have found the function and everything is ok Smile
(copy the code and add on image for each link)

Use it where ever you want Smile

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>


[Image: 468x602b.png]
(This post was last modified: 01-28-2011 10:52 PM by Skiilz.)
01-28-2011 10:34 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #8
RE: Share button
Just a suggestion Biggrin
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 Smile

01-29-2011 02:18 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #9
RE: Share button
RateU suggestion: (XThreads users ONLY)

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<a href="http://technorati.com/faves/?add=<func urlencode>{$mybb->settings['bburl']}/{$threadurl}</func>" target="_blank"><img src="YOR_IMAGE_HERE" alt="Tech" /></a>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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 Smile


[Image: 468x602b.png]
01-29-2011 02:45 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #10
RE: Share button
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']}
(This post was last modified: 01-29-2011 12:39 PM by 1master1.)
01-29-2011 12:32 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: