• First, thanks so much to the author for his attention to this support board it means a lot.

    Here is my wish list:
    1. Radio button option for pick selection.
    My pool will be using point spreads to determine the winner so I’d rather my players just pick one side or the other.
    2. A new field for the point spread.
    Ideally a box in between the Home team and Visitor team. Currently I will be editing the team name e.g., UCLA+5. Would like not to.
    3. Export function.
    I’ve entered about ~100 american college football teams. They all have page links and flags URLs and their group/leagues are entered. If I were able to export a csv file, I’d be able to edit as needed but also share it with anyone who might want that dataset. (I expect to be doing same with NFL teams.. would be happy to share in a dropbox if I could export.)
    4. Link field for teams not working.
    I’ve entered a URL for most of the teams in the pool but I’m not getting an active hyperlink in the form. I’ve tried with ‘Show team name as links’ ticked and unticked, neither working.
    5. Can Question text box larger?
    In my pool I ask the player to choose one ‘pick of the week’ and write a short essay on why. I’m using the bonus question feature for this, but it’s too small and I haven’t discovered how I might make it bigger. ‘Max length for shoutbox message’ did not help.
    6. The radio buttons in the admin pages are no longer seen with WP 3.8 and Chrome/Mac browser.
    After upgrading to WP 3.8 the radio buttons aren’t showing up. It might be WordPress, might be me. Just an FYI… everything still seems to be working.

    I’m very much looking forward to using your tool. (I’m also hitting up my players for a couple dollars each to send your way for building/supporting this handy software.)

    Thanks for your help.

    Here is the landing page if you want to take a look: https://jimkanicki.com/bowl-pool/

    https://www.ads-software.com/plugins/football-pool/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    Hi,

    that is quite a list ??

    1. Radio button option for pick selection.
    My pool will be using point spreads to determine the winner so I’d rather my players just pick one side or the other.

    This is on my road map for one of the next major releases. I want to make the pick’em style pools easier. But don’t expect it to be finished in the next months. Times are busy now more and more people are using the plugin.

    2. A new field for the point spread.
    Ideally a box in between the Home team and Visitor team. Currently I will be editing the team name e.g., UCLA+5. Would like not to.

    I don’t understand what the point spread function does, or should do.

    3. Export function.
    I’ve entered about ~100 american college football teams. They all have page links and flags URLs and their group/leagues are entered. If I were able to export a csv file, I’d be able to edit as needed but also share it with anyone who might want that dataset. (I expect to be doing same with NFL teams.. would be happy to share in a dropbox if I could export.)

    You can always use phpMyAdmin to export your data. But the plugin does have a simple export function to export matches and the team data to csv (button is on the Matches admin page).

    4. Link field for teams not working.
    I’ve entered a URL for most of the teams in the pool but I’m not getting an active hyperlink in the form. I’ve tried with ‘Show team name as links’ ticked and unticked, neither working.

    The link is only shown on the matches page and the option is for a link to the team page in the plugin (not the external link). The reason it isn’t on the prediction form is because I didn’t want users to loose their unsaved predictions if they accidently clicked on a link.

    I’ll add another function to link to the external pages instead of the plugin pages.

    5. Can Question text box larger?
    In my pool I ask the player to choose one ‘pick of the week’ and write a short essay on why. I’m using the bonus question feature for this, but it’s too small and I haven’t discovered how I might make it bigger. ‘Max length for shoutbox message’ did not help.

    The shoutbox message length is for the shoutbox widget.
    At the moment I only support single line answers and multiple choice. What you are looking for is a textarea. Just making the textbox larger, is not enough.

    6. The radio buttons in the admin pages are no longer seen with WP 3.8 and Chrome/Mac browser.
    After upgrading to WP 3.8 the radio buttons aren’t showing up. It might be WordPress, might be me. Just an FYI… everything still seems to be working.

    Yes, I noticed some problems in Chrome on Windows too and I’m working on it. I was a bit surprised by the release of 3.8. I received a mail from WP Thursday morning that I should download the nightly build and test my plugin because the release of 3.8 was ‘imminent’. And later that day the new version was already released… ??

    Plugin Author AntoineH

    (@antoineh)

    btw. I once made a quick work-around in jQuery for the pick’em style predictions. It’s not the best solution, but it works pretty good.

    Add the following code to your template (between script tags) or add it to the assets/pool.js file. You can change the styling of the picked team names inside the function (now bold and orange).

    Maybe this works for you.

    // pick'em style predictions
    jQuery( document ).ready( function() {
    	jQuery( 'table.matchinfo.input tr' ).filter( function() {
    		$this = jQuery( this );
    		return $this.attr( 'id' ) && $this.attr( 'id' ).substr( 0, 5 ) === 'match';
    	} )
    	.each( function() {
    		selected = 0;
    		jQuery( 'td.score', this ).each( function( index ) {
    			$this = jQuery( this );
    			value = $this.text();
    			if ( value == '' && $this.children().length > 0 ) {
    				$this.siblings( '.home, .away' )
    					.css( 'cursor', 'pointer' )
    					.bind( 'click', function() {
    						$this = jQuery( this );
    						team = $this.attr( 'class' ); // home or away
    						$this.siblings( '.score' ).find( 'input[name^="_' + team + '"]' ).val( '1' );
    						$this.siblings( '.score' ).find( ':not(input[name^="_' + team + '"])' ).val( '0' );
    						$this.css( 'font-weight', 'bold' ).css( 'color', 'orange' );
    						$this.siblings( ':not(.' + team + ')' ).css( 'font-weight', 'normal' ).css( 'color', '' );
    					} );
    
    				value = jQuery( 'input', this ).val();
    			}
    
    			selector = ( index == 0 ) ? '.home' : '.away';
    			if ( value == '1' ) $this.siblings( selector ).css( 'font-weight', 'bold' )
    															.css( 'color', 'orange' );
    
    			$this.hide();
    		} );
    	} );
    
    	jQuery( 'table.matchinfo.input' ).show();
    } );
    Thread Starter kanick

    (@kanick)

    Haha, I know it’s quite a list, will probably get longer. Lol.

    1. “I don’t understand what the point spread function does, or should do.”
    It would be an edit-able field where a hyphen is currently placed. It would serve a cosmetic purpose letting me tell my players what the point spread is.
    Here’s a screencap that helps explain.

    2. “Add the following code to your template (between script tags) or add it to the assets/pool.js file.”
    I’m looking forward to trying this but, I’m sorry, into which template should I add this? Would page.php be the right one? Which script tags should I look for? (I can’t get to assets/pool.js ftp without asking someone for help.)

    Thanks again.

    Plugin Author AntoineH

    (@antoineh)

    page.php is usually the one, as it is the template for pages.
    place the code like so

    <script>
    {code here}
    </script>

    somewhere inside the html code of that template.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘It's up! Several requests, questions.’ is closed to new replies.