2009-12-08, 08:26 PM
Because I don't like how the Subscribe, Print, and Send to Friend are all the way on the bottom I went ahead and made use of the mybb dropdown javascript and created a quick tutorial on how you can do it too.
This will replace the "Threaded Mode | Linear Mode" that's in thead for showthread pages with a dropdown giving 5 links. You can of course alter this to suit your own needs.
Edit showthread Template
===========================
Find:
Replace:
Edit showthread.css add in advanced mode to the bottom:
Demo: http://www.supportforums.net/showthread.php?tid=63
Sample Image:
Enjoy.
This will replace the "Threaded Mode | Linear Mode" that's in thead for showthread pages with a dropdown giving 5 links. You can of course alter this to suit your own needs.
Edit showthread Template
===========================
Find:
<div style="float: right;">
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
</div>
Replace:
<div class="float_right">
<a href="#top" id="thread_options_{$tid}" class="smalltext"><strong>Thread Options</strong></a>
<div id="thread_options_{$tid}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container thread_options"><a href="printthread.php?tid={$tid}" class="popup_item">{$lang->view_printable}</a></div>
<div class="popup_item_container thread_options"><a href="sendthread.php?tid={$tid}" class="popup_item">{$lang->send_thread}</a></div>
<div class="popup_item_container thread_options"><a href="usercp2.php?action={$add_remove_subscription}subscription&tid={$tid}" class="popup_item">{$add_remove_subscription_text}</a></div>
<div class="popup_item_container thread_options"><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}" class="popup_item">{$lang->threaded}</a></div>
<div class="popup_item_container thread_options"><a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}" class="popup_item">{$lang->linear}</a></div>
</div>
<script type="text/javascript">
<!--
new PopupMenu("thread_options_{$tid}");
// -->
</script>
</div>
Edit showthread.css add in advanced mode to the bottom:
.thread_options a:link {
color: #026CB1;
text-decoration: none;
}
.thread_options a:visited {
color: #026CB1;
text-decoration: none;
}
.thread_options a:hover, a:active {
color: #000;
text-decoration: underline;
}
Demo: http://www.supportforums.net/showthread.php?tid=63
Sample Image:
Enjoy.