• Resolved fegs1204

    (@fegs1204)


    I was reading the Topic “How to include pool choice in registration form?’” but unfortunately it is already closed, and the final solution was not published. Can you please share how were you finally able to read/write the league field using the plugin Ultimate Member?

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

    (@antoineh)

    Hi, do you have a link to the other topic? The search in this forum is really terrible 😀

    If I have the old topic, maybe I can find something in my notes or email based on the info in it.

    Thread Starter fegs1204

    (@fegs1204)

    Hi Antoine, thanks for your prompt answer! This is the link:
    https://ww.wp.xz.cn/support/topic/how-to-include-pool-choice-in-registration-form/
    Best regards!

    Plugin Author AntoineH

    (@antoineh)

    The solution is in this post. You’ll have to save this code fragment as a file in your /wp-contents/plugins folder and then activate as any other plugin.

    Make sure you check if the ID’s of your leagues are the same as the ones in the script. If not, then add these lines to your wp-config file with the correct numbers:

    define( 'FPX_LEAGUE_FOR_FREE', 3 );
    define( 'FPX_LEAGUE_FOR_MONEY', 2 );

    Or change the values in the code fragment.

    And since the code checks on the exact text values in the select, also change the league names in the switch ( $league ) statement to reflect yours.

    Hope this helps.

    Thread Starter fegs1204

    (@fegs1204)

    Dear Antoine,
    In the post (https://ww.wp.xz.cn/support/topic/how-to-include-pool-choice-in-registration-form/#post-9947190) @pc1271 says that the code was not working and you got to check it. Then he says that you found out that the solution was to “translate the strings”, I have not been able to get this code to work, maybe i’m missing something regarding the “translation of the strings”?

    Plugin Author AntoineH

    (@antoineh)

    What I also mentioned in my previous post: the code checks on the exact tests that you use in your form field. So if you use ‘for free’ as an option in the dropdown it will work, but if you use another name for your league, you’ll have to change this part of the code:

    case 'for free':

    And the same goes for the other league.

    Thread Starter fegs1204

    (@fegs1204)

    Thank you Antoine, that was exactly my problem, finally it’s working as expected! Best Regards.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Ultimate Member Plugin Integeration’ is closed to new replies.