Search Results for 'profile fields'
-
Search Results
-
Topic: Modify profile edit page
Hello all,
I’ve been creeping around these forums for a few days, but I’m unable to find a post that explains what I’m looking for in any decent detail.
I’m trying to remove one of the xprofile fields from the edit page. My end goal is to limit what fields may be modified by the user, based on their membership level using s2membership. I feel if I can figure out how to hide one field, I’ll be able to go from there.
Now I have found a few posts describing this same action, but the responses seem very vague. What I’ve been trying to do is modify the edit.php file in the “wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile” directory. I realize that modifying the core files is not the best practice, and this will be replaced with the next buddypress update, but I also have not found a detailed explanation on the proper way to edit these files, so I’m sticking with this for the moment just to see if I can get it working.
I see there is a while loop in this file, and it looks like it iterates for each element in an array containing all of the profile fields. Each iteration grabs the fields type as a string, and compares it to a list of valid options. When a match is found, it performs some html/php magic, and adds a field on the screen to be modified. (php and html are new to me. I am familiar with c++, java, and c#)
modified snippet from file:
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div<?php bp_field_css_class( 'editfield' ); ?>> <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> *html/php magic* <?php endif; ?> </div> <?php endwhile; ?>No matter what edits I make to this file, it does not seem to change anything.
Any information would be great, and I appreciate your time. Thank you.
Topic: Hiding year in birthdate
Wordpress v4.4.2
BuddyPress v2.5.1Trying to see if there’s a way to exclude the year from the birth date (datebox) field. Probably have some users that would be okay displaying the month and day information but may not want to share their age.
I was able to find the “BuddyPress Xprofile Custom Fields Type” plugin, but ran into a problem with that. The edit form still loads the three fields for the month, day, and year and didn’t want the year to be a requirement.
Hi,
is there a way to display the unavailable profile fields on the Registration form?
Such as profile photo and cover photo.
We want to put ALL fields in the registration screen, instead of relying on users to go in and enter the other fields later.
thx!
I’m currently moderating all signups to our community, but can only see the new registrant’s email when I’m managing new signups. At registration, users are asked to provide their full name, location, job title and line manager. Is there any way I can display these fields in the ‘Manage Signups’ table?
I have a problem where only the “Administrator” permission is able to see user profile fields.
Other users can see access the dashboard and even click on various links like “Profile > Edit” but it just directs them to a blank page inside my Theme. If I change that user to an Administrator they have no issues.
Please help.
Hi, My buddypress search form is unusable on a mobile device, due to the multi-select ‘Checkbox’ fields in the search form displaying (0 selected) instead of the placeholder text title, which describes to the user, what it is they are mean’t to be selecting.
All the other fields display their typical titles the same, as when it’s being viewed on a desktop. It’s only the checkbox fields that replace the title with (0 selected). How can I prevent this from happening, I can’t find the code responsible for doing this?
I’ve located 2 older threads, where people have asked about this exact same issue and none of them received any information.
WordPress 4.4.2
BuddyPress 2.5.1Not sure how to change up the form where users would update their extended profile.
I was able to setup a custom registration page by copying the source file to here and making my changes…
/wp-content/themes/genbu-child/buddypress/members/register.php
On the user Profile – Edit page I’m seeing the different fields I wanted to include, but wanted to add some extra description to the three birth date menus that show up. Is there a file similar to register.php I could copy to my child theme and fix up the HTML how I want it?
Topic: Single login for multisite
We have a multisite where we provide templated blogs and also have Buddy Press for xProfile fields and to create a community site. We have latest WP and BP versions.
When a new users logs into their own site and the first thing they want to do is update their profile picture / cover image, in order to actually go to their profile, they need to login again (actually the login is requiring 2 times). This creates a strange user experience. Is there a way to have a single login for the user at their own site and the buddypress community site so that they can freely go back and forth between them?
I need to add some html attributes to some Xprofile fields such as max-length. I was trying to find a filter so I could use str_replace to add attributes, but I eventually found the filter
bp_xprofile_field_edit_html_elementsin bp-xprofile/classes/class-bp-xprofile-field-type.php.
I’ve now got this code which works, but I’m not great with PHP so just checking if this is the best way to achieve this:function hp_xprofile_add_attributes($r){ $field_name = bp_get_the_profile_field_name(); if( $field_name == 'Name' ) { $new_attribute['maxlength']= '20'; $attributes = array_merge($new_attribute, $r); } elseif( $field_name == 'Short Description') { $new_attribute['maxlength']= '160'; $attributes = array_merge($new_attribute, $r); } else { $attributes = $r; } return $attributes; } add_filter('bp_xprofile_field_edit_html_elements', 'hp_xprofile_add_attributes', 11);Any help appreciated.
Topic: Is buddy press suitable?
Hi Would like to setup a page for our members that does the following:
1) has a profile page for each member.
2) each member can be sent an email with their log in details.
3) has custom fields displaying the members position on a number of views on topics.
4) member will be able to log in and change their views.
5) members can not send messages to each other or edit any other content on the site – only their profiles.
6) there would be pages where you could view all the members that have a particular view on a particular topic.
7) you could search for members with particular views on topicsIs buddy press capable of all of this?
Many thanks
Hi, I’m wondering if anyone has had success in creating a ‘Save and Next’ button on the BP custom profile fields. I currently have 7 tabs, instead of having a “Save” button, which just reloads the page, I’d like to have a “save and next” button that will save the current fields, and then go automatically to the next tab.
Topic: Visible profile fields
This appears to be a bit of a problem here, as there are others wondering why this is not a core function.
I am about to launch a forum for a school class. I need forum members to be able to see and recognise both the parent’s names and their child’s (it is not always obvious who sired which sprog).
I have set up a Child field in the extended profile, but I need that to be immediately available and visible along with the parent’s name, i.e.
Cuthbert Longstocking | Pippi LongstockingAny help out there (before BuddyPress improves itself)?
The forum page is here: Forum
And – BuddyPress – is there any way you could maybe get rid of the HTML formatting tags and display the text properly?!
Using WordPress 4.4.2 and BuddyPress v2.5.0
I had setup a child theme so I could make modifications to WordPress and BuddyPress without messing with the core program. I’m using the Genbu theme so based on the information here (https://buddypress.org/support/topic/register-php-3/) I copied
Copied: /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php
Child theme: /wp-content/themes/genbu-child/buddypress/members/register.php
I was able to modify parts of the form that were part of WordPress, but wasn’t seeing any HTML related to the BuddyPress profile fields. I dug around and found this BuddyPress file that would affect the profile form fields on the register page and user profile page.
/wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php
I can’t figure out how to get that working in my child theme though. What directory location am I suppose save to on my child theme? I tried setting it up here, but doesn’t look like it’s loading at all
/wp-content/themes/genbu-child/buddypress/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php
I have a membership/social network website where users will have their own profile page that gives certain information about themselves.
But I have different roles and I want each role’s profiles to say different things. For example, if a user is a model, I want to have profile fields related to their height, eye color etc. If a different user is a photographer, no-one needs to know about their height and body color, but instead things like what kinds of photography they do and maybe what kind of camera/equipment they use.
How can I accomplish this?