• Resolved shieldanvil

    (@shieldanvil)


    Hi everyone,
    I’m new to the world of WordPress and looking for help to show images based on days (or weeks) after a user registration.
    Is it possible to do this with this plugin, and if so how? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Short answer – sure.

    Long answer:

    The information is stored in the [registered] field – see user section of manual.
    You can use [if] to check the value of the field and display content accordingly.

    Thread Starter shieldanvil

    (@shieldanvil)

    Thanks for your response @polarracing
    What are the date compare functions available? I have managed to display user registration date using the plugins, but I’m not sure how to compare.
    `[set user_reg][user registered][/set]
    [pass field=user_reg]
    [if pass='{FIELD}’ value=today-7]
    Show image.
    [/if]
    [/pass]’

    First one issue with your code.

    [set user_reg][user registered][/set]
    [pass vars] YOU ARE PASSING A VAR NOT A FIELD
    [if var='{USER_REG}’ value=today-7] 
    Show image.
    [/if]
    [/pass]

    Check the date section in the [if post] section of the documentation for comparison options (in your case [before]).

    • This reply was modified 5 years, 7 months ago by polarracing.
    • This reply was modified 5 years, 7 months ago by polarracing.
    • This reply was modified 5 years, 7 months ago by polarracing.
    Thread Starter shieldanvil

    (@shieldanvil)

    it works perfectly, thank you @polarracing
    here it is in case there’s another noob like me looking for a similar function:

    
    [set user_reg][user registered][/set]
    [pass vars=user_reg]
      [if var='{USER_REG}’ after='1 week ago']
       [show image]
      [/if]
    [/pass]
    
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Comparing user registration dates’ is closed to new replies.