PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Completely hidden profile/registration fields

s2Member Plugin. A Membership plugin for WordPress®.

Completely hidden profile/registration fields

Postby craigjb12 » August 8th, 2011, 6:33 pm

Any ideas for adding fields that are hidden both during and after registration to non admins?

Thanks!
User avatar
craigjb12
Registered User
Registered User
 
Posts: 29
Joined: July 22, 2011

Re: Completely hidden profile/registration fields

Postby Bruce C » August 8th, 2011, 8:25 pm

I think that might not be something you need for the registration of s2Member, and instead in the files for the WordPress User's tab.

It looks as though something could be done through WordPress's wp-admin/user-edit.php file.

I'm not experienced in it, but maybe that could be a lead for you.

P/S for setting if the value is express, you could probably use the current_user_can function like this?

Code: Select all
if (current_user_can('administrator'))
{
   //display the option?
}


However, I believe none of this is related to s2Member, as it really wouldn't do anything even if it were hidden in the registration form, as a member who's already an Admin wouldn't be registering... right?
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Completely hidden profile/registration fields

Postby craigjb12 » August 9th, 2011, 9:18 am

Right, admins of course wouldnt be registering, but these are fields that only they can view and modify for other users.

This would function much like admin notes, but instead be configurable in S2member's custom fields and stored in the same database value for ease of import/export.
User avatar
craigjb12
Registered User
Registered User
 
Posts: 29
Joined: July 22, 2011

Re: Completely hidden profile/registration fields

Postby craigjb12 » August 9th, 2011, 9:35 am

Another option in Editing Registration Field > Allow profile edits like the following would work:

No (invisible during registration and visible to only admins after registration)
User avatar
craigjb12
Registered User
Registered User
 
Posts: 29
Joined: July 22, 2011

Re: Completely hidden profile/registration fields

Postby Cristián Lávaque » August 9th, 2011, 1:15 pm

Thanks Craig. This is something that is in the to-do, but no date for it yet.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Completely hidden profile/registration fields

Postby craigjb12 » August 9th, 2011, 1:37 pm

Thanks for the response,

I'd be grateful for any ideas to work around this in the meantime.

I can add a class of hidden to the items in the profile form, but because the labels are not classed, they still show.

A possible solution might be to use javascript to generate some classes to apply to labels, but it feels like an option of last resort.

Thanks again
User avatar
craigjb12
Registered User
Registered User
 
Posts: 29
Joined: July 22, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron