Jump to content
zitu4life

How can we freezee widget on WHMCS admin?

Recommended Posts

Posted (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.

image.thumb.png.40394b235b8a265120298c2daf2a11b2.png

regards

Edited by zitu4life

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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. 😉

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated