Share Link in Toolbar

TyRant Hacker

New Member
2dtupz6.gif


The purpose of this modifications is to add user friendly share links, which will help promote your site through your users.

Task One:
  • Sign up on AddThis.com
  • Remember your AddThis Username
(Can be found in your AddThis Widget Code)
var addthis_pub = "USERNAME";



Task Two:
  • Access vBulletins Admin cPanel
  • Navigate to the "Styles & Templates" Panel
  • Select "Search in Templates"
  • Search for "SHOWTHREAD" or "<!-- toolbar -->"
  • Once in the Template "SHOWTHREAD"
  • Search for "<!-- toolbar -->"


You should find something similar to this:
Code:
<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
	<td class="tcat" width="100%">
		<div class="smallfont">
		<if condition="$show['firstunreadlink']">
			<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
			<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
		</if>
		&nbsp;
		</div>
	</td>

	<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
		<a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
		<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
	</td>
	<if condition="$show['search']">
		<td class="vbmenu_control" id="threadsearch" nowrap="nowrap">
			<a href="$show[nojs_link]#goto_threadsearch">$vbphrase[search_this_thread]</a>
			<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
		</td>
	</if>
	<if condition="$show['threadrating']">
		<td class="vbmenu_control" id="threadrating" nowrap="nowrap">
			<a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
			<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
		</td>
	</if>
	<if condition="$vboptions['allowthreadedmode']">
	<td class="vbmenu_control" id="displaymodes" nowrap="nowrap">
		<a href="$show[nojs_link]#goto_displaymodes">$vbphrase[display_modes]</a>
		<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
	</td>
	</if>

	<if condition="$show['inlinemod']">
		<if condition="$show['popups']">
			<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"><script type="text/javascript"> vbmenu_register('imod'); </script></td>
		<else />
			<td class="thead" align="center">
				<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
			</td>
		</if>
	</if>

</tr>
</table>
<!-- / toolbar -->

Before This:
Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
		<a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
		<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
	</td>

Add This:
Code:
<td class="vbmenu_control" id="threadshare" nowrap="nowrap">

<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub  = "USERNAME";</script>
<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()">Share Thread</a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>

<!-- AddThis Button END -->

			<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadshare"); </script></if>
	</td>

  • Replace USERNAME
  • With Your AddThis Username
    var addthis_pub = "USERNAME";
  • Select Save and Your Finished!


Credits:
TyRant Hacker
 
Your welcome guys, I have had this on my forums for quite some time and wanted to share it with you all, since you all help me out so much.

Thanks,
TyRant Hacker ;)
 
Back
Top