MyBB Community Forums

Full Version: Adding a Tweet Button to Threads.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Its working fine for me
[attachment=20819]

Probably a browser issue. Try to view in another browser.
(2010-12-17, 05:04 PM)Yaldaram Wrote: [ -> ]Its working fine for me


Probably a browser issue. Try to view in another browser.

Yea, its working in other browsers. I'll have to check out the one I'm using Firefox.
Thanks for the help.
If you want to know how you can easily add a Twitter submit counter to all your thread using MyBB, that's also XHTML valid. Follow this simple guide below. It will grab both the URL of the thread and it's thread title. Plus it also works on multiple page threads (leads back to the correct thread page number) it was tweeted from.

Open the template called:
Show Thread Templates/showthread

Look for this code inside it:

					<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
				</div>
			</td>
		</tr>
	</table>
	<div class="float_left">
		{$multipage}

After that on a new line, add this Twitter code:

<br /><script src="http://platform.twitter.com/widgets.js" type="text/javascript">
</script><a href="http://twitter.com/share" class="twitter-share-button">Tweet</a>

That's it, all done!
Thanks for the guide Bolton.
No problem. Big Grin
Works great, thank you very much Smile
(2011-01-02, 05:57 PM)Gary Bolton Wrote: [ -> ]If you want to know how you can easily add a Twitter submit counter to all your thread using MyBB, that's also XHTML valid. Follow this simple guide below. It will grab both the URL of the thread and it's thread title. Plus it also works on multiple page threads (leads back to the correct thread page number) it was tweeted from.

Open the template called:
Show Thread Templates/showthread

Look for this code inside it:

					<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
				</div>
			</td>
		</tr>
	</table>
	<div class="float_left">
		{$multipage}

After that on a new line, add this Twitter code:

<br /><script src="http://platform.twitter.com/widgets.js" type="text/javascript">
</script><a href="http://twitter.com/share" class="twitter-share-button">Tweet</a>

That's it, all done!

Still works
Pages: 1 2