Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Rustaurius

    (@rustaurius)

    Hi Morale,

    Here’s the shortcode we used in testing:

    [login redirect_page='https://www.twitter.com' redirect_field='Select Test' redirect_array_string='Test 1 => https://www.google.com, Test 3 => https://www.facebook.com' submit_text='Welcome Back!']

    The possible values for “Select Test” were “Test 1”, “Test 2” and “Test 3”. If someone had “Test 1” selected in their profile, the redirect took them to “https://www.google.com”, if someone had selected “Test 3”, then the redirect took them to “https://www.facebook.com”. If you didn’t have either of those values, then the redirect was to “https://www.twitter.com”.

    Let me know if that wasn’t clear!

    Thread Starter moralesemm

    (@moralesemm)

    Perfect! It worked. Thanks.

    Is this the same code for register redirects as well? (Just substituting [register…] for [login…]?

    Plugin Author Rustaurius

    (@rustaurius)

    Yes, it should work exactly the same way.

    Hi Rustarius,

    following the code above. I am using your plug in for my visitors to register and login.

    My site is a WPMU. I am creating child sites in a subdirectories with a name, string of numbers.

    parent site: https://www.cmp4u – this is where the registration and log in takes place.
    child site: https://www.cmp4u/1234

    this ‘1234’ is also a field in user profile called ‘School URN’

    My question is when a user logs in I want to redirect the user to a child site in the network based on the ‘School URN’.

    Is this possible?

    Plugin Author Rustaurius

    (@rustaurius)

    Hi,

    Not without coding each individual site, like the redirect above. That’s a pretty cool feature request, we’ll look into it once we’ve gotten some of the more basic bugs fixed.

    I’m having an issue on redirection and I wondered if it had something to do with the site not being at the root level of the domain?

    Here’s the shortcode I have:

    [login redirect_page='https://domain.com/subsite/' redirect_field='UserType' redirect_array_string='Tutor => https://domain.com/subsite/welcome/tutors, Instructor => https://domain.com/subsite/welcome/instructors, Student => https://domain.com/subsite/welcome/students']

    When the form is submitted, the redirected url is always:
    https://domain.com/subsite/login/8217;Tutor

    FYI – UserType is a Short Text field.

    Any ideas? Thanks.

    Plugin Author Rustaurius

    (@rustaurius)

    Hi,

    The site not being at the root of the domain shouldn’t be an issue; the redirect were tested with sites that weren’t on the same domain anyways.

    Is there anything else out of the ordinary with your setup?

    Hi Rustaurius,

    I think I have a very plain setup (I made it specifically for your plugin)
    I think the issue is perhaps more in how I’ve set up the plugin.

    Here’s a link to one of the issues I’m seeing;
    https://vimeo.com/110183211

    thanks!

    I have the same problema

    [login redirect_page=’https://www.cibersul.org’ redirect_field=’Username’ redirect_array_string:’catano => https://www.cibercais.pt, camarada => https://www.almadashop.com’%5D

    after login it goes to:

    https://euensino.pt/’https://www.cibersul.org’

    [login redirect_page=’https://www.cibersul.org’ redirect_field=’username’ redirect_array_string=’catano => https://www.cibercais.pt, camarada => https://www.almadashop.com’%5D

    after login

    https://euensino.pt/8217;catano

    please Help me

    I did it like this:

    [login * redirect_page=https://www.cibersul.org * redirect_field=aaa * redirect_array_string=camarada
    * redirect_page=https://www.cibercais.pt * redirect_field=aaa * redirect_array_string=catano * redirect_page=https://www.almadashop.com]

    kelter

    (@kelter)

    It’s still not working for me. It seems like there’s some issue between the redirect_string_array and the redirect_field. I’ve tried various quote strategies removing quotes etc, but it’s still not redirecting to the correct locations.

    euensino2

    (@euensino2)

    for me also no longer works.
    tag worked once or twice …. …. but then crashed

    I am thinking change pluguim on my Word Press

    thanks for the reply

    Gabriel Quaresma- Portugal

    Tracam

    (@tracam)

    Hi,
    I am also having trouble with redirect.

    I have added a field
    Field Name Type Description Required
    Level mediumint Level Yes

    Level can be 1,2or3

    [login * redirect_field: Level
    * redirect_array_string:1 => https://test.com/?p=19,
    2 => https://test.com/?p=11,
    3 => https://test.com/?p=12%5D
    The login says its successful but there is no reduirection.
    Any assistance appreciated
    Thank You

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘redirect based on a user field’ is closed to new replies.