latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Using custom profile field

Home Forums Community Forum Using custom profile field

This topic contains 6 replies, has 2 voices. Last updated by  Seamus Donohue 3 years, 8 months ago.

Topic Author Topic
Posted: Thursday Apr 4th, 2013 at 2:44 pm #46628

I am using a site to deliver free content to students, targeted according to their year group, self selected in the registration process by a custom field. I want to use this to direct them to the correct “welcome page” and catagorise the content they see. I thought this would be straight forward when I read s2Member outline but it seems not. I am quickly get coding over my head and time I don’t have. Is there an easy solution?
many thanks

List Of Topic Replies

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Saturday Apr 6th, 2013 at 9:49 am #46749
Eduan
Username: Eduan
Moderator

Hello Seamus,

Have you looked into advanced PHP conditionals? You can find them under Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals.

Here’s an introduction to simple conditionals:
Knowledge Base » Simple Shortcode Conditionals

– Eduan

Posted: Sunday Apr 7th, 2013 at 6:11 am #46794

Yes but my understanding is that there is no way of using custom field registration to automatically put users into groups and direct them to the appropriate login page. I don’t want them to have to go to a sign up page.
What I wanted was that the students select a year group from a dropdown and this was enough to direct them to the right pages.
Many thanks for getting back to me.

Posted: Tuesday Apr 9th, 2013 at 9:39 pm #46982
Eduan
Username: Eduan
Moderator

Ah I see.

I’ll check with Jason to see if it’s possible to reference the user’s field selection upon registration. I’m sure it’s possible I just don’t know how. :)

Using these values you should be able to use them as conditionals and use a JavaScript redirect according to the value.

– Eduan

Posted: Wednesday Apr 10th, 2013 at 6:48 am #47055

Thanks for taking the time. I’ve actually signed up for the pro now- should I move this over to the other Forum?
I signed because I read that the free pro forms supported adding capabilities and I could then look for these. Unfortunately this is not something that my students can select from- just to recap I want them to register by selecting their correct study class (I’ ve called this year_group) and that this selction actually determines what page opens as a login welcome.
I’m no coder but with so much functionality built into s2Member it seems like this could also be there.
many thanks

Posted: Thursday Apr 11th, 2013 at 7:43 pm #47238
Eduan
Username: Eduan
Moderator

Here’s the link Jason pointed me to with his answer:
http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()

Seems it’ll work perfectly for your needs. :)

You can have your users select what custom capability they want, in case you’re interested. You would just igve the shortcode values through PHP: Knowledge Base » Using Variables In A Shortcode

– Eduan

Posted: Tuesday Apr 16th, 2013 at 4:05 pm #47617

I am sorry Eduan, I have no idea how to get these to work. I would like students registering to select their class and this selction automatically redirecting them to the correct welcoming page and onward to their area. I have put in a custom profile field and if I could feed this into the custom welcome page URL it would be over and done with in seconds. It does not seem possible to do this.
many thanks

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.