SuperFly
01-14-2006, 10:00 PM
What it does is lets you pick from User CP, Mod CP or Admin CP from your navbar.
In Navbar Find
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
And Replace with
<script type="text/javascript">function goto_cp(){window.location=document.getElementById( "select_cp_link").options[document.getElementById("select_cp_link").selected Index].value;}</script><if condition="$show['admincplink']"><td class="vbmenu_control" style="position:relative;right:3px;"><select id="select_cp_link"><option selected="selected" value="/usercp.php">$vbphrase[user_cp]</option><option value="/modcp/index.php">Moderator CP</option><option value=/admincp/index.php>Administrator CP </option></select><input type="button" style="font-size:10pt;font-family:courier;position:relative;bottom:3px;" value="Go" onclick="goto_cp()" /></td><else /><if condition="$show['modcplink']"><td class="vbmenu_control" style="position:relative;right:3px;"><select id="select_cp_link"><option selected="selected" value="/usercp.php">$vbphrase[user_cp]</option><option value="/modcp/index.php">Moderator CP </option></select><input type="button" style="font-size:10pt;font-family:courier;position:relative;bottom:3px;" value="Go" onclick="goto_cp()" /></td></if><else /><if condition="$show['member']"><td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td></if></if>
In Navbar Find
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
And Replace with
<script type="text/javascript">function goto_cp(){window.location=document.getElementById( "select_cp_link").options[document.getElementById("select_cp_link").selected Index].value;}</script><if condition="$show['admincplink']"><td class="vbmenu_control" style="position:relative;right:3px;"><select id="select_cp_link"><option selected="selected" value="/usercp.php">$vbphrase[user_cp]</option><option value="/modcp/index.php">Moderator CP</option><option value=/admincp/index.php>Administrator CP </option></select><input type="button" style="font-size:10pt;font-family:courier;position:relative;bottom:3px;" value="Go" onclick="goto_cp()" /></td><else /><if condition="$show['modcplink']"><td class="vbmenu_control" style="position:relative;right:3px;"><select id="select_cp_link"><option selected="selected" value="/usercp.php">$vbphrase[user_cp]</option><option value="/modcp/index.php">Moderator CP </option></select><input type="button" style="font-size:10pt;font-family:courier;position:relative;bottom:3px;" value="Go" onclick="goto_cp()" /></td></if><else /><if condition="$show['member']"><td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td></if></if>