I tested this on 3.5.X - 3.6.8 with no issues.
What does this mod do?
It adds a drop down box on each thread posted so your users can easily submit your threads to social bookmarking and social media sites like TagSum.com, Facebook, Delicious, and a few others. Others can easily be added as well.
How do I Install it?
It's a very easy template mod that should take 5 minutes or less.
First edit template : headinclude
Go to the end of the template and paste the following code:
PHP Code:
<script language="JavaScript">
function openDir( form ) {
var newIndex = form.fieldname.selectedIndex;
if ( newIndex == 0 ) {
alert( "Please select a location!" );
} else {
cururl = form.fieldname.options[ newIndex ].value;
window.location.assign( cururl );
}
}
</script>
Next edit SHOWTHREAD
Find
PHP Code:
<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>
Under it
ADD:
PHP Code:
<tr>
<td class="tcat" align="right" colspan="6" width="100%">
<!--social bookmarks-->
<form name=bookmarks>
<select name="fieldname" size="1" onChange="openDir( this.form )">
<option>Bookmark this Thread</option>
<OPTION VALUE=http://www.tagsum.com/news/submit?url=$vboptions[bburl]/showthread.php?t=$threadid>TagSum</option>
<option value=http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$threadid>del.icio.us </option>
<OPTION VALUE=http://www.facebook.com/sharer.php?u=$vboptions[bburl]/showthread.php?t=$threadid>Facebook Share</option>
<OPTION VALUE=http://www.blogger.com/blog_this.pyra?u=$vboptions[bburl]/showthread.php?t=$threadid>Blogger</option>
<OPTION VALUE=http://myweb2.search.yahoo.com/myresults/bookmarklet?t=$vboptions[bburl]/showthread.php?t=$threadid> Yahoo MyWeb</option>
</select> </form>
<!--social bookmarks-->
</td>
</tr>
The SHOWTHREAD code can be placed anywhere in the template so move it around as you please.
For a live demo visit the following URL: http://www.highaltitudeimports.com/showthread.php?p=769410#post769410
For my other TagSum integration check this thread:
http://www.vbulletin.org/forum/showt...ghlight=tagsum