mrprez Posted July 14, 2007 Share Posted July 14, 2007 Is there anyway to do something with the rollover menu across the top of the admin screen? Everytime my mouse rolls over one of the buttons the menu opens up and stays open for a few seconds and I have to either click on the screen to close it up or wait for it to close up. I'd rather have it set so that I have to click on the menu items (I don't ever use them anyway) to get them to open up. Or, is there a setting in FF where that can be delayed for a second or two if I am just passing over that area. John 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 14, 2007 Share Posted July 14, 2007 take a look at the javascript menu code and modify it to your liking. 0 Quote Link to comment Share on other sites More sharing options...
mrprez Posted July 14, 2007 Author Share Posted July 14, 2007 Perfect! Thanks. John 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 15, 2007 Share Posted July 15, 2007 I would like to add a new menu with links to the admin area can this be done? 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 16, 2007 Share Posted July 16, 2007 Joe, take a look at admin/javascript/menu.js Each menu is an array var menuX. It's pretty self explanatory, but if you need help, post back. 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 16, 2007 Share Posted July 16, 2007 Not sure how to due it I figured out how to add a link to a menu but I would like to add 1 more menu with my own drop down links to open in a new window. I Would like to add all my reseller/vendor logins so my admins can access while in whmcs. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 16, 2007 WHMCS CEO Share Posted July 16, 2007 That will be possible in 3.2 but not currently. Matt 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 16, 2007 Share Posted July 16, 2007 huh? we were able to do it, without any problems! 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 16, 2007 Share Posted July 16, 2007 Trine can you explain or pm me thanks. 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 16, 2007 Share Posted July 16, 2007 Okay, I think Matt was talking about the standard menu, because the dropdownmenu() is indeed hardcoded in the current templates, making it more difficult to add a new dropdown. I forgot that we modified the entire code, and are using a custom menu that simply floats in the original menu's position. Regardless, if you want you can still add or modify to an existing menu. So if you wanted to replace or the HELP menu you can modify the var menu9=new Array() in admin/javascript/menu.js with your custom links: var menu9=new Array() menu9[0]='Link 1' menu9[1]='Link 2' menu9[2]='Link 3' or you could add to it using: var menu9=new Array() menu9[0]='Manual' menu9[1]='License Information' menu9[2]='Change License Key' menu9[3]='Check for Updates' menu9[4]='Support Request' menu9[5]='Bug Reports' menu9[6]='Community Forums' menu9[7]='Link 1' menu9[8]='Link 2' menu9[9]='Link 3' you can also use javascript withing the anchor tags to open it in a new window, or call a function, etc. (see menu9[0] above. That opens in a new window.) If you need more help, let me know what you need (ie: links). Shouldn't take more than a minute to modify. 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 16, 2007 Share Posted July 16, 2007 I figured out how to add links already. I was looking to add a new menu like this. var menu10=new Array() <<this being my own menu menu10[0]='MY LINK 1' menu10[1]='MY LINK 2' menu10[2]='MY LINK 3' 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 16, 2007 Share Posted July 16, 2007 As Matt said, that will be added in the future. As mentioned, dropdownmenu() is hardcoded. The only other option is to use your own menu system (as we did) or to call a preg_calllback function to insert your new menu in the output. 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 21, 2007 Share Posted July 21, 2007 Trine can you explain this now with the 3.2.1 version Thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 21, 2007 WHMCS CEO Share Posted July 21, 2007 Edit the file "admin/menu.php" Matt 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 21, 2007 Share Posted July 21, 2007 each time i make change get blank page need to edit admin/menu.php alone or both admin/menu.php and admin/javascript/menu.js This is what I would like var menu10=new Array() This being the new My Link menu menu10[0]='MY Link' menu10[1]='MY Link' menu10[2]='MY Link' Thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 21, 2007 WHMCS CEO Share Posted July 21, 2007 You said you want to alter the standard menu. You do that in the admin/menu.php file. You still do the dropdown in the same javascript file as before. Matt 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 21, 2007 Share Posted July 21, 2007 did you edit your menu.php ? 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted July 21, 2007 Share Posted July 21, 2007 Yes thanks figured it out. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.