WordPress.org

Ready to get started?Download WordPress

Forums

LeagueManager
HOW to Drag and Drop the team ranking on championship (4 posts)

  1. cheche
    Member
    Posted 3 years ago #

    Hi,
    I create 5 groups on a championship. Only 8 out of 10 teams go to the next level, so I define manually drag and drop. but I am not able to get it working.
    Has anyone elase have this issue?

    http://wordpress.org/extend/plugins/leaguemanager/

  2. hyzo
    Member
    Posted 2 years ago #

    What worked for me is the method of Shawnkltucker.

    Open admin.php and find: loadScripts()
    You should see something like this:

    function loadScripts()
    	{
    		wp_register_script( 'leaguemanager_ajax', LEAGUEMANAGER_URL.'/admin/js/ajax.js', array('sack'), LEAGUEMANAGER_VERSION );
    		wp_enqueue_script('leaguemanager_ajax');
    		?>

    Add wp_enqueue_script("scriptaculous-dragdrop"); to it, like this:

    function loadScripts()
    	{
    		wp_enqueue_script("scriptaculous-dragdrop");
    		wp_register_script( 'leaguemanager_ajax', LEAGUEMANAGER_URL.'/admin/js/ajax.js', array('sack'), LEAGUEMANAGER_VERSION );
    		wp_enqueue_script('leaguemanager_ajax');
    		?>

    Next open standings.php and search for <tbody id=, change the line to just this:
    <tbody id="the-list-standings" class="form-table">

    It's working in Chrome and Firefox for me, I didn't test it with IE.

  3. dennisterrey
    Member
    Posted 2 years ago #

    I seriously love you right now.

    Not only did this fix the drag/drop issue, but I was having an issue where Ajax was causing the teams scores not to save therefore the team rankings weren't registering. This fix has also sorted that issue.

    I've been trying a while to figure this out!!

    Thank you!

  4. Guillermo Sabbatella
    Member
    Posted 2 years ago #

    It is working with default mode, but not with championship mode, any idea?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic