![]() |
MAU CP in navbar
What it does is lets you pick from User CP, Mod CP or Admin CP from your navbar.
In Navbar Find Code:
<if condition="$show['member']"> Code:
<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> |
thanks, but the "Go" button isnt aligned nice, how can i fix that ?
|
position:relative;bottom:3px;" value="Go" i think here
|
If you change the "3px" to "1px" it should be ok I guess.
|
I don't want to sound ungreatful as this is such a good and simple addon with much practicality and one which I really hope I can make use of....
But... Would it not have been better to get it to simply use the vb menu control instead of being a drop down menu? It would fit into the global scheme of the nav bar much better if it could. Something along the lines of: This for the navbar link bits Code:
<if condition="$show['admincplink']"> Code:
<if condition="$show['admincplink']"> I certainly don't mean to be stepping on toes here, so sorry if it wasn't wanted. If you can use it though, feel free. |
All times are GMT. The time now is 07:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|