• How can I change the layout of the prediction / results page? For example, if I wanted to show the team name underneath the flag / badge, I’m guessing I would need to place those cells on a seperate row.

    I’ve tried to do this in pool.css but even if I remove the td.home and td.away cells the team names are still displayed.

    I can’t see anywhere else this would set in the plugin?

    Thanks,
    Paul.

    http://wordpress.org/plugins/football-pool/

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

    (@antoineh)

    For this you will have to change the print_matches and print_matches_for_input functions in the classes\class-football-pool-matches.php file. The matches are displayed in a table, so styling those with the current html will be very hard, if not impossible.

    Next version will have some filters and actions that hook into these functions. This will make it a bit easier to change the behavior of these functions.

    Thread Starter pjbursnall

    (@pjbursnall)

    Is it as simple as changing the ordering of those functions? This is all to do with styling the pool in a responsive theme.

    Thanks.

    Plugin Author AntoineH

    (@antoineh)

    Yes, within the foreach loop in both functions every match is added to a table row. You can change the order of the table cells and/or add extra rows. Or change the table structure to div’s.

    Thread Starter pjbursnall

    (@pjbursnall)

    I see how the table is put together but errors are returned above the prediction form when I insert an extra row. Or if for example, I remove the cell showing “time”, that cell still displays but the cell containing jokers dissapears. Is it just the file I need to edit?

    Thanks.

    Plugin Author AntoineH

    (@antoineh)

    What is the error?

    If you add or remove cells make sure you change the colspan attribute of the match type and match date rows as well.

    Thread Starter pjbursnall

    (@pjbursnall)

    Parse error: syntax error, unexpected T_VARIABLE in /home/aokhopns/public_html/everygoalmatters/wp-content/plugins/football-pool/classes/class-football-pool-matches.php on line 457

    Returned after removing the td ‘time’ and changing colspan to 10.

    I thought you said the next version would make it easier to do this yet I can’t see any difference in 2.3.5?

    Thanks.

    Thread Starter pjbursnall

    (@pjbursnall)

    I don’t think this will be too much of a problem for me. I’ve since been looking at making the styling responsive and I really don’t think it needs much at all. I’ve almost got the match input screen working perfectly on all resolutions and rotations. I’ll stick with that I think, rather than edit the layout of the table contents.

    Thanks.

    Plugin Author AntoineH

    (@antoineh)

    Hi, I planned to add more changes in the 2.3.5 release, but unfortunately I had to release it sooner because of a bug I had to fix. So you’re correct: there is no difference in the part you are looking at.

    I’m really curious about the end result when you’re finished. Can you send me a link to your site (wordpressfootballpool [at] gmail [dot] com) when you’re happy with the result?

    Thread Starter pjbursnall

    (@pjbursnall)

    Yeah I’ll drop you a mail when it’s done. I’m aiming for December 1st. I’ve only set the match input (main predictor) screen as responsive so far but it certainly seems to work fine on all resolutions. I’d send a link when it’s finished and looking pretty 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Prediction form layout’ is closed to new replies.