IPB 1.3.x hack
Same as the Forum Options Dropdown, i just tried to clean things up alittle.
File To Edit:
\Skin\s1\skin_global.php
- Find -
function Member_bar($msg, $ad_link, $mod_link, $val_link) {
global $ibforums;
return <<<EOF
<table width="100%" id="userlinks" cellspacing="6">
<tr>
<td><strong>{$ibforums->lang['logged_in_as']} <a href='{$ibforums->base_url}showuser={$ibforums->member['id']}'>{$ibforums->member['name']}</a></strong> ( <a href='{$ibforums->base_url}act=Login&CODE=03'>{$ibforums->lang['log_out']}</a>$ad_link $mod_link $val_link )</td>
<td align='right'>
<b><a href='{$ibforums->base_url}act=UserCP&CODE=00' title='{$ibforums->lang['cp_tool_tip']}'>{$ibforums->lang['your_cp']}</a></b> · <a href='{$ibforums->base_url}act=Msg&CODE=01'>{$msg[TEXT]}</a>
· <a href='{$ibforums->base_url}act=Search&CODE=getnew'>{$ibforums->lang['view_new_posts']}</a> · <a href='javascript:buddy_pop();' title='{$ibforums->lang['bb_tool_tip']}'>{$ibforums->lang['l_qb']}</a></td>
</tr>
</table>
EOF;
}
- Replace that with ...
function Member_bar($msg, $ad_link, $mod_link, $val_link) {
global $ibforums;
return <<<EOF
<table width="100%" id="userlinks" cellspacing="6">
<tr>
<td>
<select name="menu1" onChange="DropDown_jump('parent',this,0)">
<option value="">User Options</option>
<option value="">------------------------</option>
<option value="{$ibforums->base_url}showuser={$ibforums->member['id']}">Profile</option>
<option value="{$ibforums->base_url}act=Login&CODE=03">{$ibforums->lang['log_out']}</option>
<option value="{$ibforums->base_url}act=Search&CODE=getnew">{$ibforums->lang['view_new_posts']}</option>
<option value="javascript:buddy_pop();">{$ibforums->lang['l_qb']}</option>
<option value="{$ibforums->base_url}act=Msg&CODE=04">Send a PM</option>
<option value=""></option>
<option value="" class="reverse"> User Controls</option>
<option value="{$ibforums->base_url}act=UserCP&CODE=00">Controls Pannel</option>
<option value="{$ibforums->base_url}act=UserCP&CODE=24">Edit Avatar </option>
<option value="{$ibforums->base_url}act=UserCP&CODE=22">Edit Signature</option>
<option value="{$ibforums->base_url}act=Help&CODE=01&HID=4">C-Pannel Help</option>
<option value=""></option>
</select>
· <a href='{$ibforums->base_url}act=Msg&CODE=01'>{$msg[TEXT]}</a>
$ad_link $mod_link $val_link
</td>
</tr>
</table>
EOF;
}
If you dont already have the DropDown_jump JavaScript...
- Find -
function BoardHeader($time="") {
global $ibforums;
return <<<EOF
Just Below the return <<<EOF add this JavaScript...
<script language="JavaScript">
function DropDown_jump(targ,selObj,restore){
if (selObj.options[selObj.selectedIndex].value == '') {
return;
}
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
|