rokked
05-23-2007, 10:00 PM
I have this running on 3.6.7 you can see it in action at: http://forums.rokked.com/showthread.php?t=72
edit templates:
> headinclude
<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>
edit templates:
> SHOWTHREAD
FIND
<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
<tr>
<td class="tcat" align="right" colspan="5" width="100%">
<!--social bookmarks-->
<form name=bookmarks>
<select name="fieldname" size="1" onChange="openDir( this.form )">
<option>internet 2.IMO </option>
<option value=http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$threadid>del.icio.us </option>
<OPTION VALUE=http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$threadid>Digg it</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>
</table>
You can basically add the SHOWTHREAD code anywhere you want, this enhancement doesnt require you include the ShowThread code in the same spot as I did, but that's where I have it added. You can basically add any bookmarking site if you find the URL.
Pretty simple. So have fun with it.
edit templates:
> headinclude
<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>
edit templates:
> SHOWTHREAD
FIND
<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
<tr>
<td class="tcat" align="right" colspan="5" width="100%">
<!--social bookmarks-->
<form name=bookmarks>
<select name="fieldname" size="1" onChange="openDir( this.form )">
<option>internet 2.IMO </option>
<option value=http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$threadid>del.icio.us </option>
<OPTION VALUE=http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$threadid>Digg it</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>
</table>
You can basically add the SHOWTHREAD code anywhere you want, this enhancement doesnt require you include the ShowThread code in the same spot as I did, but that's where I have it added. You can basically add any bookmarking site if you find the URL.
Pretty simple. So have fun with it.