WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
Prediction form layout (10 posts)

  1. pjbursnall
    Member
    Posted 10 months ago #

    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/

  2. AntoineH
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  3. pjbursnall
    Member
    Posted 10 months ago #

    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.

  4. AntoineH
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  5. pjbursnall
    Member
    Posted 10 months ago #

    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.

  6. AntoineH
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  7. pjbursnall
    Member
    Posted 9 months ago #

    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.

  8. pjbursnall
    Member
    Posted 9 months ago #

    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.

  9. AntoineH
    Member
    Plugin Author

    Posted 9 months ago #

    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?

  10. pjbursnall
    Member
    Posted 9 months ago #

    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 :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.