2010-06-15, 10:59 PM
For anyone that might be interested, I made a modification to clean up the Member links and place them in a drop down menu in the "A Fresh Midnight" template. The mod should work in all of the "A Fresh" series tmeplates as well as a number of others too.
If you want to give it a shot, save your existing template with a custom name before modifying any of the code, just in case it causes an issue, so that you can restore it easily.
I've attached images of the menu links so you can see how it looks.
Simply save your header_welcomeblock_member template with a custom name, then replace the code in header_welcomeblock_member with the code below and place the arrow.png file in your image theme directory or create your own and you should be good to go.
I have installed the blogs and member map plugins, so if you're not using them you will want to edit out those links. You can also easily rearrange anything you want.
If you want to give it a shot, save your existing template with a custom name before modifying any of the code, just in case it causes an issue, so that you can restore it easily.
I've attached images of the menu links so you can see how it looks.
Simply save your header_welcomeblock_member template with a custom name, then replace the code in header_welcomeblock_member with the code below and place the arrow.png file in your image theme directory or create your own and you should be good to go.
I have installed the blogs and member map plugins, so if you're not using them you will want to edit out those links. You can also easily rearrange anything you want.
<div class="upper_panel">
<span class="float_right"><a href="{$mybb->settings['bburl']}/search.php" class="search" onclick="return overlay(this, 'fastsearch','bottom')">{$lang->toplinks_search}</a>
<DIV id="fastsearch" class="fastsearch">
<table width="100%" border="0" cellpadding="0" cellspacing="3">
<tr>
<td height="25" align="left" style="color:#ffffff"><b>Quick Search</b></td>
<td height="25" align="right"><a href="#" style="color:#ffffff" onClick="overlayclose('fastsearch'); return false">[X]</a></td>
</tr>
<tr>
<td height="26" align="center" valign="middle" colspan="2">
<form method="post" action="search.php" style="margin: 0;">
<input type="text" class="textbox" id="focus" onFocus="Active(this)" onBlur="NotActive(this)" name="keywords" size="30" style="width: 150px;" />
<input type="submit" class="button" name="submit" value="GO" />
<input type="hidden" name="action" value="do_search" /><input type="hidden" name="postthread" value="1" checked="checked" />
<input type="hidden" name="showresults" value="threads" checked="checked" />
</form>
</td>
</tr>
<tr>
<td height="20" align="center" valign="middle" colspan="2"><a style="color:#ffffff" href="{$mybb->settings['bburl']}/search.php">Advanced Search</a></td>
</tr>
</table>
</DIV>
<a href="{$mybb->settings['bburl']}/games.php" class="games">{$lang->toplinks_games}</a>
<a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a>
<!--<a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a>-->
<a href="{$mybb->settings['bburl']}/blogs.php" class="blogs"> {$lang->toplinks_blogs}</a>
<a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a>
<a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a>
</span>
<div style="margin-left 10px;">
<div class="lower_panel">
<div>
<div style="float: left; margin-left: 10px; margin-right: 10px;">
<image src="{$mybb->user['avatar']}" style="max-height: 35px; max-width: 40px;" />
</div>
</div>
<div class="userlinks" id="userlinks_{$mybb->user['uid']}">
<image src="images/midnight/arrow.png" style="float: right; cursor: hand;" border="0" height="35px" width="25px" />
<span style="cursor: hand;">{$lang->welcome_back}</span>
</div>
</div>
<div id="userlinks_{$mybb->user['uid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/usercp.php" class="popup_item">{$lang->welcome_usercp}</a>
</div>
<div class="popup_item_container">
<a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);" class="popup_item">{$lang->welcome_open_buddy_list}</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=getuap" class="popup_item">{$lang->welcome_unansweredposts}</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=getdaily" class="popup_item">{$lang->welcome_todaysposts}</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/usermap.php" class="popup_item">{$lang->usermap}</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/private.php" class="popup_item">{$lang->welcome_pms}
{$lang->welcome_pms_usage}</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}" title="{$lang->profile_comments}" class="popup_item">{$lang->profile_comments_new_inmenu}</a>
{$lang->profile_comments_new_inmenu_count}
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}" class="popup_item">{$lang->welcome_logout}</a>
</div>
<div class="lower_panel">
{$modcplink}
{$admincplink}
</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("userlinks_{$mybb->user['uid']}");
}
// -->
</script>
</div>
</div>
</div>