for exemple:for displaying the contact button after the search button:
edit your codebase.php and find this function
// create button template from current sys menu template (added by Sami)
function contact_add_admin_button($href,$title,$target,$link)
{
global $template_sys_menu, $template_sys_menu_spacer;
$new_template=$template_sys_menu;
$button=template_extract_block($new_template,'home');
$params = array(
'{HOME_LNK}' => $target,
'{HOME_TITLE}' => $title,
'{HOME_TGT}' => $href,
'home' => $link,
);
$new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
template_extract_block($template_sys_menu,'home',"<!-- BEGIN home -->" . $button . "<!-- END home -->\n" .$new_button);
}
change with
// create button template from current sys menu template (added by Sami)
function contact_add_admin_button($href,$title,$target,$link)
{
global $template_sub_menu, $template_sys_menu_spacer;
$new_template=$template_sub_menu;
$button=template_extract_block($new_template,'search');
$params = array(
'{SEARCH_LNK}' => $target,
'{SEARCH_TITLE}' => $title,
'{SEARCH_TGT}' => $href,
'search' => $link,
);
$new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
template_extract_block($template_sub_menu,'search',"<!-- BEGIN search -->" . $button . "<!-- END search -->\n" .$new_button);
}
in your theme.php search
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<td width="50%"></td>
</tr>
</table>
and change with
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- BEGIN search -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END search -->
<td width="50%"></td>
</tr>
</table>
with another theme be sure the <!-- BEGIN xxxxx --> and <!-- END xxxxx --> exist .