• Hi Antoine

    i would like to know if there is a way to redirect the registration link to the front-end. If a user is not logged in and he needs to hit the prediction sheet page he is given a link to register in the usual back-end (admin) registration form where instead i need to present a front-end page. Is this possible to do this without a plugin? If not which plugin do you think is good? and how the link is then redirected into the front-end page?

    Furthermore do you think a user role such as “football pool player” and not only admin should be also introduced in your settings?

    Regards

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

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

    (@antoineh)

    Hi, you will have to use a plugin for this or code it yourself. I deliberately used the standard behavior and hooks WP gives so you can override it easily.

    I have no experience with plugins that offer this kind of functionality. So I can’t give you tips for that.

    Thread Starter pekos

    (@pekos)

    Hi Antoine

    I have just solved this by using 2 plugins:

    1. WP User Manager. It has front-end login and register (reset pass etc etc) pages.
    2. Quick Page/Post Redirect Plugin. It redirects your registration page URL to the WP User Manager registration page.

    Kind Regards

    Hi Antoine,

    Just making sure I fully understand the implications of your reply of the initial question from pekos: is it correct that a newly registered user always has to contact an administrator when he/she wants to participate in the payed pool and that the administrator then manually has to change the pool in the user admin panel?

    After reading the rules text, I had the impression that a user could register and at the same time decide whether he/she wants to play in the free or payed pool.

    If it turns out that this interpretation is wrong, I’ll have to try and explain this better in the rules page to avoid questions asked by my website users.

    @pekos: maybe, instead of redirecting the registration page url, given by the shortcake to your WP User Manager registration page, you’d better insert a direct link to your WP User Manager registration page. In that case you don’t need the Redirect plugin (unless of course you are already using it for some other purpose).

    Regards

    shortcake –> shortcode (Click [fp-register]here[/fp-register] to register for this pool.)

    Thread Starter pekos

    (@pekos)

    Hi PC1271

    i am referring to the register link found in the /pool/ page where if someone visits it and not logged in or register it will redirect to the wordpress backend registration page which i need to hide completely whatsoever. The wp user plugin allows me to assign a specific role to newly registered users. So far i have been able to hide the backend registration page by redirecting the football pool url to the wp user registration page which allows someone to register in the front-end. I believe only by hard coding the football pool url someone could direct the visitor to the frontend page, but there may be another way to do it however the shortcake shortcode cannot be used. What do you say?

    Thanx anyways

    Hi pekos,

    You are right, the shortcode can’t be used.
    For my site, I’m also using the WP User Manager plugin to let user register/logon themselves from the frontend of the website. I also don’t want users to see the backend unless they are editors.

    Anyway, the link which not logged in users see on the /pool/ page, leads them to the standard wordpress logon screen, not to the backend as it seems to be doing on your site. I don’t know what text you see appearing on that page. Mine is in Dutch; roughly translated, it would be be something like “you have to be subscribed and logged in to play in the pool.”, with the link to the logon screen on the words ‘logged in’.

    I think I will just add my own link to my WP User Manager registration page and write some explanations on what users are supposed to do. I can reuse already existing code from another part of my website where I ask users to register.
    Redirecting the logon link to the registration form doesn’t seem very logical to my users, especially nog if they already registered before. For already logged in users, I can hide the registration link; they don’t need to see that.

    This plugin is really great, but – in my opinion – the user registration part and how users can decide in which pool they want to play is a bit weak. And as I stated before, the rules page gave me a different impression.

    Best regards

    Thread Starter pekos

    (@pekos)

    Hi PC1271

    thanx for the analysis. I may have troubled you a bit cause i am actually referring to the LOGIN url and not REGISTER url. So everything you are saying is correct.

    Kind Regards

    Plugin Author AntoineH

    (@antoineh)

    @pc1271:

    Just making sure I fully understand the implications of your reply of the initial question from pekos: is it correct that a newly registered user always has to contact an administrator when he/she wants to participate in the payed pool and that the administrator then manually has to change the pool in the user admin panel?

    Yes, by default this is true. But if you want to automatically add users to the league they chose, then there is a simple way to do so. The help page in the admin contains an example in the hooks & actions section for this.

    Thanks for pointing that out, Antoine.

    I put the following code to the function.php file of my child theme:

    // don't use admin approval for league registration of new users
    // just put them in the league they chose
    add_filter( 'footballpool_new_user', function( $user_id, $league_id ) {
        update_user_meta( $user_id, 'footballpool_league', $league_id );
        update_user_meta( $user_id, 'footballpool_registeredforleague', $league_id );
        Football_Pool::update_user_custom_tables( $user_id, $league_id );
    }, null, 2 );

    Where can I see the option where the user can choose which pool he/she wants to play?
    It doesn’t show in the /pool/ page.

    Plugin Author AntoineH

    (@antoineh)

    The Football Pool ? Users page in the admin shows both fields (‘registered for’ and ‘plays in’).

    Ok, thanks Antoine, I saw the 2 extra fields in the Users admin page.

    Since I don’t want users to mess around in the wordpress admin pages, this is not an option for me.
    However, there is a paid add-on for WP User Manager which allows to add fields to the standard user registration form. Maybe it would be possible to pick up those 2 extra fields and place them on the WP User Manager Registration form in the frontside of the website.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘front end registration’ is closed to new replies.