23477 Posts in 18941 Topics by 2878 members
|Go to End|
27 January 2014 at 10:41pm
Hello, i am trying to get my head around how to show different content in a page template once a new user has registered, Successful registration will redirect the user to their account page, on the first visit to this page i wish to show a div with a few lines of content, this div will only be visible during the new members first login, after the first login then it will no longer be shown.
I know i need to be using "Numvisit", is there a way to use this directly into a template without using page controller or should i build a function and wrap it around the div with a "with_CurrentUser" statement,.
Please no code, just point me in the right direction i like to learn hands on, i just need the somewhere to start.
regards and thanks
28 January 2014 at 10:11am
You can access NumVisit off the CurrentMember object directly in the table using dot annotation - i.e. CurrentMember.NumVisit. You should be able to write a conditional if statement from there.
Alternatively, the Member class contains an is_repeat_member method.
Hope that helps?
29 January 2014 at 10:35am
Brilliant, thanks, i went the way of using a conditional directly in the template ss file, works a treat.
|Go to Top|