Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

[Tips & Tricks] Position Number next to drag drop elements

Discussion in 'Power Rankings Support' started by tajhay, Oct 14, 2015.

  1. tajhay

    tajhay Active Member CAS Premium AMS Premium SC Premium Sportsbook Pickem Power Rankings Survivor

    It would be nice to see position number next to the drag and drop elements to see what exact position they are intially being set at. First week especially doesnt show any numbers so that would be helpful.

    Second and further weeks show their last ranking so that helps, but it would be still nice to see what position they are being moved to.
  2. Bob

    Bob Developer Staff Member

    Its not doable, but there IS a nifty TRICK when EDITING that works like a charm....

    First thing to know is that there are TWO completely different processes (CREATE and EDIT). The TRICK will only work on the EDIT process, not the CREATE.

    When CREATING, there are no records created yet, so there is no historical data to even reference to change numbers (via a simple page refresh). When changing the order on the CREATE FORM, its not "saving" anything, its merely changing the order of the array for when it gets saved (the post save action handles things) (NOT GOING TO EXPLAIN TECHNICAL DETAILS).

    When EDITING, records exist, so you can tricks the system since its an AJAX action that SAVES the new position once you drag and drop it, so just hit REFRESH and it will fetch the teams again in their new order.

    TRICK: What I do is create the Power Ranking, give it a TITLE, type my text (sometimes), then SAVE (I don't even bother setting the team order yet). Then I EDIT and I start ranking the Teams. I will move a few teams around (each move saves via ajax) and hit REFRESH (which will refetch with their new Position Ranking number).
    Regs likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.