• Resolved fimo66

    (@fimo66)


    Hi again,

    Wonder if its possible for a non skill programmer like me to “copy” the save button
    which is at the bottom page of the “pool page” where users can set their guess on the questions i made to also be shown on the top of the “pool page” ??
    see picture no 2.

    View post on imgur.com

    Have a nice day !

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

    (@antoineh)

    Thread Starter fimo66

    (@fimo66)

    How embarrassing !!!!!

    Why didt i look here first before asking you / disturb you..

    sorry BUT thank you for the quick answer/help…

    :o)

    Thread Starter fimo66

    (@fimo66)

    Just a quick follow up question….

    This code
    “The second one changes every row in the form and adds a save button in the row.
    football-pool-extra-match-save-buttons.php”

    I would prefer to have the save button after each “round/week”

    But can “live with save button on top as asked / your solution ??

    But when i think about it, perhaps it would be nice to have the save button after each round/week, but not sure if the above code does that or after each “match line” ?

    View post on imgur.com

    • This reply was modified 3 years, 10 months ago by fimo66.
    Plugin Author AntoineH

    (@antoineh)

    Why didt i look here first before asking you / disturb you..

    No worries. Happy to help.

    I would prefer to have the save button after each “round/week”

    That one is also possible, but a bit more work and basically combines the idea of both examples. It depends on how you divide your matches, but if you use match types per week/round, you could change the match type row template with this hook: footballpool_predictionform_match_type_template. And then append the button code before the outputted html. The match row example is a good start point.

    If you want to base it on match date, then you could keep using the match row template, but then some extra logic is needed in the params filter: a condition to check if the %save_button% placeholder should be empty or not based on the match date.

    This requires a bit of PHP knowledge, though. I think the match type is the easiest route.

    Another idea: do not use the prediction page, but construct one yourself with the shortcodes. Disadvantages: manual work everytime you add a new week/rpund and the players cannot save the entire form with one click (because every shortcode acts as a single form).

    Thread Starter fimo66

    (@fimo66)

    Thanks again for the ideas, i will try them this weekend and see what my skills can do of the above proposals…

    From the admin i manually insert all the matches myself and i dont know of the
    “id numbers” is of any help in my case ie if i wanted a save button after id number 6
    and a save button after id 12 and so on….

    View post on imgur.com

    Plugin Author AntoineH

    (@antoineh)

    Looks like you can use the match types template to insert the buttons.

    Thread Starter fimo66

    (@fimo66)

    Thanks now i have a lot of different solutions to try out my skills and see which one i can get to work, which one fits best on my wishlist ??

    Thank you once again ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Save button on top of page ?’ is closed to new replies.