zitu4life Posted May 7, 2021 Share Posted May 7, 2021 (edited) Hello there I have see that widget can be freezee on WHMCS admin. How can we we freeze for example market connect widget on first position ? Example: Lara module has a google analytic freezed and displayes always first position. regards Edited May 7, 2021 by zitu4life 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted May 7, 2021 Share Posted May 7, 2021 Setting the widget's weight to a high value, like a billion, will guarantee it is always first until another widget has it set to a trillion. https://developers.whmcs.com/advanced/widgets/ 0 Quote Link to comment Share on other sites More sharing options...
bear Posted May 7, 2021 Share Posted May 7, 2021 42 minutes ago, steven99 said: Setting the widget's weight to a high value, like a billion, will guarantee it is always first until another widget has it set to a trillion. From my experience that only sets it's position in the list that opens when you click the gear. On the page it's still the "dancing blocks" thing. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted May 7, 2021 Share Posted May 7, 2021 Just did a test on a built-in widget and the weight has to be lowest number to win the first position. So if you set a weight to 100 while all the others are set to 20, that one will be dead last. If you set a weight of -10 and no others have something lower, it will show first. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted May 7, 2021 Share Posted May 7, 2021 I did on mine as well. It's still following the "I need to fill spaces when the window changes" mode, and more or less ignore the weights defined. They change in the list behind the gear, but on the page still fails. In addition, if you shift them manually, then change the window width, it goes right back. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted May 7, 2021 Share Posted May 7, 2021 My test was in 7.10.3 using Blend with all built-in widgets on, how about you @bear ? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted May 7, 2021 Share Posted May 7, 2021 Latest, 8.1.3, having been forced to use it. 😉 It may well be that I've numbered some the same as the prebuilt ones. I just renumbered, and some are behaving unless I resize the window, then all bets are off. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted May 8, 2021 Share Posted May 8, 2021 With a bit of jQuery magic you can teleport Google Analytics <li> inside a new div with col12, 0 auto whatever it takes to get the job done. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 8, 2021 Share Posted May 8, 2021 16 hours ago, bear said: Latest, 8.1.3, having been forced to use it. even if you modified the weights in the code (which I don't think would work in v8 as i'm seeing the same as him), those changes would still get overwritten during an update - so you 'd be back to square one. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted May 8, 2021 Share Posted May 8, 2021 I've modified the custom ones, left the defaults at defaults. As for updating beyond this version, it's likely when my support runs out, so will I. 😉 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.