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™

Hiding Custom Fields from Public Profiles

s2Member Plugin. A Membership plugin for WordPress®.

Hiding Custom Fields from Public Profiles

Postby Wendell » October 1st, 2011, 7:23 pm

Hello,

I've imported over 700 members into my Wordpress 3.2.1 site, which also has BuddyPress 1.5 installed.

I've created a number of custom fields in S2Member, and they all show up publicly on each member's profile. I want the standard BuddyPress fields to show to the public, but I do not want ANY of the S2Member fields to show to anyone except Admins and Editors.

I apologize if this has been answered here before, but I searched and searched and could not find the answer. Thank you for your help.
User avatar
Wendell
Registered User
Registered User
 
Posts: 6
Joined: July 20, 2011

Re: Hiding Custom Fields from Public Profiles

Postby man-O-media » October 1st, 2011, 10:13 pm

I guess going into each custom field in "general Options" and changing "Allow Profile Edits:" to be un-editable and invisible after registration is not enough?

DP
User avatar
man-O-media
Experienced User
Experienced User
 
Posts: 117
Joined: February 10, 2011

Re: Hiding Custom Fields from Public Profiles

Postby Wendell » October 1st, 2011, 10:26 pm

I still want them to be able to edit the custom fields. But I don't want the public to see their profile fields, as it contains private information that should not be shared with just anyone.
User avatar
Wendell
Registered User
Registered User
 
Posts: 6
Joined: July 20, 2011

Re: Hiding Custom Fields from Public Profiles

Postby man-O-media » October 2nd, 2011, 12:03 pm

Wendell wrote:I've created a number of custom fields in S2Member, and they all show up publicly on each member's profile. I want the standard BuddyPress fields to show to the public, but I do not want ANY of the S2Member fields to show to anyone except Admins and Editors.


I will be honest first and say that I don't have any experience with buddy press so am not entirely sure what exactly is showing what...

I presume that every user, when logged in, sees the profile pages of everyone else?
And that the profile pages are actually generated by Buddy Press
and that Buddy press has no way to control what is seen or not seen on those profile pages.

I make these presumptions because so far I have never seen wp or s2 show profile info by default.

Then you say...
I still want them to be able to edit the custom fields. But I don't want the public to see their profile fields, as it contains private information that should not be shared with just anyone.

So you want each user to have access to view and edit only their own s2 custom info.

My first thought is that you need to be looking at Buddy Press and not s2 for controlling that display however, if there really is no way to do that you could hide each field based on the user ID.
You would get the current userID and then check that against the user ID dislayed in the profile form. If they are the same you show everything and if they are not the same you hide specific fields.

This thread discusses how to hide a field but you will have to do some additional work: viewtopic.php?f=4&t=14706#p33206.


DP
User avatar
man-O-media
Experienced User
Experienced User
 
Posts: 117
Joined: February 10, 2011

Re: Hiding Custom Fields from Public Profiles

Postby Jason Caldwell » October 7th, 2011, 6:45 pm

Wendell wrote:Hello,

I've imported over 700 members into my Wordpress 3.2.1 site, which also has BuddyPress 1.5 installed.

I've created a number of custom fields in S2Member, and they all show up publicly on each member's profile. I want the standard BuddyPress fields to show to the public, but I do not want ANY of the S2Member fields to show to anyone except Admins and Editors.

I apologize if this has been answered here before, but I searched and searched and could not find the answer. Thank you for your help.

I think this is what you're looking for?
See: s2Member -> General Options -> Custom Registration Fields.
SNAG-0017.png
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

cron