Search Results for 'profile fields'
-
AuthorSearch Results
-
September 18, 2014 at 7:13 pm #197867
In reply to: Duplicate edit-profile groups
shanebp
ModeratorIt sounds like a theme issue.
Are you using a custom template for profile edit?The fact that the 3rd group doesn’t exhibit the same behavior is a clue.
Try adding a fourth group and see if the 3rd group starts to also duplicate fields.September 18, 2014 at 8:59 am #1973341a-spielwiese
ParticipantPS.:
I have no problem to access the BuddyPress Settings within the Dashboard (components, pages, settings).
I can as well access to “Benutzer/Profilfelder” (users/profile fields), “activity” and “groups” within the Dashboard.
September 18, 2014 at 8:57 am #197333In reply to: BuddyPress registration terms and conditions.
danbp
ParticipantUnder users> Profile fields> Add new field. This is only allowed to site admin, so i guess TOS is not intended to him.
Adding a TOS link to register page would be more usefull, no ?
This example snippet will do that (add to child-theme functions.php or bp-custom.php):
function bpfr_tos_link() { echo ' <b><i class="icon-thumbs-up"></i> Terms and conditions</b>'; } add_action( 'bp_before_register_page', 'bpfr_tos_link' );September 18, 2014 at 2:48 am #197316Iryna_B
ParticipantYes, I’ve seen the calculator, but that’s not exactly what I am looking for. I want a feature in Buddypress profile fields, that when a woman puts her child’s age or pregnancy week, she could see week by week development information on her profile page. Many baby web-sites have this feature, I was just wondering if BP has something similar.
September 17, 2014 at 7:28 pm #197289In reply to: [Resolved] Plugin suggestions please
danbp
Participant1 & 2) xprofile component let you add all fields you need – styling is theme related and on your side css work.
3) buddydrive
4) field values are clickable, this let the user find similar values on others profile.
5) buddypress default datajohnhutchy2014
Participanthmmmm!! Ive deleted the additional fields I added and change first name to full name, I then ran a bogus registration, and its given them a username as it should and then gave them a full name as inserted during the registration process, so fingers crossed it appears to have worked!
Now my next big dilemma is can I change those have already registered, so that their profiles read correctly ?? is there a way that you know of??
Thanks
danbp
ParticipantIf you created additionnally first and last name fields, it’s useless somehow, but i don’t think that it is related to your issue. Or only if you create those fields with an extra function related to the user table.
You have nothing to loose to remove them and give a try to your profile by using only the default name fields.
Username | Password | Email| ( wp part)
NAME (bp part)
The important thing to know is that the values of this 4 fields are stored in wp_users table.Any other profile field values are stored in _bp_xprofile_data table even if you create 20 first name or last name fields on the default showing BASE group.
What you can do is to give some guidance in the NAME field description, such as: enter here your first name and last name. Alas without any waranty that the user will follow your advice.
It’s exactly the same problem for the original wordpress “username” field. Some enter Bobby as username and John Doe into the name field (wow! correct !). Others do the opposite and others enter StupidCow in both fields. 😉
johnhutchy2014
ParticipantHi
“The NAME field in BuddyPress is intended to receive first and last name and replace the two original fields (first name, last name) coming with WordPress.”Does this mean that If I remove the first name and last name fields from ‘profile fields’ then that should fix the issue?
Thanks
September 16, 2014 at 8:43 pm #197213cwjordan
ParticipantJohn,
Thanks. I’m sure caching that data speeds things up in normal use, however I do regularly need to export all the extended profile fields, and it doesn’t make sense to try and cache that.
What exactly do you need to know? I’ve got 13302 users, with roughly 115 extended profile fields (many of which tend to be blank for a given user). My little test script is below, although what I actually use is the “Export User Data” plugin.
<?php /* Template Name: test template */ ?> <h2>TEST of BP_XProfile_ProfileData::get_all_for_user</h2> <?php global $bp; $start_time=microtime(true); $memory_use = memory_get_usage(true) / 1024 / 1024; echo "<br/>Start Memory Use = $memory_use MB"; for ($userid = 1; $userid <= 5000; $userid++) { BP_XProfile_ProfileData::get_all_for_user($userid); } $times_run = $userid -1; $finish_time = microtime(true); $elapsed_time = $finish_time - $start_time; $avg_time = $elapsed_time / $times_run; echo "<br/>Ran get_all_for_user for $times_run users"; echo "<br/>Elapsed time = $elapsed_time seconds"; echo "<br/>Avg time = $avg_time seconds"; $memory_use = memory_get_usage(true) / 1024 / 1024; echo "<br/>End Memory Use = $memory_use MB"; echo "</p>"; ?>johnhutchy2014
Participanthmmmmm I like to keep buddy press up to date 🙁 and my scripting skills are rather poor! I would have thought that there should be some validation already built in, why have the field as required otherwise?
During registration they enter their account details which consists of a username,email addy, password and confirm password, then they create their profile details on the right of the page, which Ive added fields for first name , last name, gender, DOB etc, and Ive selected that the first name and last name are required fields, so surely if they fail to enter data the form shouldn’t submit??
or am I missing something here 🙁
September 15, 2014 at 9:37 pm #197025applegateian
ParticipantApologies, I’m not a developer but trying to find a solution that works.
I tried editing bp-profile-filters.php by adding
add_filter( ‘xprofile_get_field_data’,’wpautop’ );I also tried upgrading Buddypress Xprofile Custom Fields Type plugin, as it was out of date, but this hasn’t helped.
From my rudimentary understanding, What I think I need to do is edit echo $data; to somehow include wpautop but I am not finding a way to do that…apologies if it is simple.
Thanks,
Ian
September 15, 2014 at 3:57 pm #196713In reply to: Is Buddy Press Right for me?
sundev
Participant@joedostie buddypress can achieve that as @ubernaut has said.
(1) When your users register, they will have their own profile page to put their details by default. You’ll need to create extra fields for bio/phone/etc as many as you want through the admin User->User Profile Field.
(2) For the animals profile, Wp static page or Category could be use to achieve that.
(3) For each user to blog independently, you can use these 2 plugins together: http://buddydev.com/plugins/buddyblog/ and http://buddydev.com/plugins/bp-simple-front-end-post/see function on site http://sunmyke.com
September 15, 2014 at 3:53 pm #196711In reply to: Is Buddy Press Right for me?
Ben Hansen
Participantwell out of the box you can set up any kind of fields with any label you wish i think a lot of what you need would be covered with text area fields. i would suggest you try it out on a test or stagaging server so you can get an idea for how xprofile works its pretty adaptable as is.
September 15, 2014 at 4:13 am #195823In reply to: Is Buddy Press Right for me?
Joe Dostie
ParticipantThanks Ben,
I appreciate the input. Any chance you may have examples? The more and more I read the more I seem to be understanding. I guess I am trying to accomplish 2 things here.
First I think I am trying to possibly extend and customize the “Portfolio” portion of WordPress.
As a very simple example I would like make the Project = to an Animals if you will.
The Categories would be their Species, Breed, Gender, etc.
The Skills could be Friendly, Likes Kids, House Trained, etc.I think the part the it troubling be is that this may require some customization in the form of renaming fields to be less confusing to the non-technical user. I consider myself technically savvy and I am lost! 🙂
I am guessing this could be accomplished with a Form like page or a plugin. But I was hoping someone was going to say…”oh ya, easy, just use XYZ”
——————————————-
So this would be my thought…
1.) A generic user with very little technical skill would come in to a very simple profile page of some sort.
2.) They fill in some info about themselves (so other fosters can see it – bio/phone/etc)
3.) They have a section on animals(s) they foster
4.) The animal would have its own profile if you will (because its a foster it can move around)It would be nice to use the blogging feature so each person can add, stories, pictures, links, videos and everything else WP has to offer.
——————————————-
Again, thanks for the reassurance, I think I am on the right track. I just think I may be putting the cart before the horse right now as there is a ton to do and a ton more to learn!
Anyone else reading this please feel free to send along some suggestions.
Thanks
September 14, 2014 at 11:12 pm #195818applegateian
ParticipantThanks for the pointer @henrywright – I’ve tried a few executions but can’t seem to generate the breaks/p tags that are needed.
Here is an example of where I am seeing the problem with profile fields – is there a way within the text that is outputted to enable wpautop? Thanks…
<div class="keyPeople"> <?php if (bp_get_profile_field_data('field=Key People') == "") : echo ''; else: // display code $data=bp_get_member_profile_data(array('field'=>'Key People')); echo '<h3>Key People</h3>'; echo $data; endif; ?> </div>September 13, 2014 at 3:54 pm #193476In reply to: [Resolved] Customise register page
danbp
ParticipantThe field NAME in the field group BASE is required. This group is used for the registration page to work. As you already know, it’s also this group who allows you to show custom fields on the registration page.
The NAME field in BuddyPress is intended to receive first and last name and replace the two original fields (first name, last name) coming with WordPress.That said, you can hide this field to users, but you can’t give them the choice to show/hide it.
The above snippet will hide the field NAME to all visitors/members, but not to site admin and the concerned profile.
function bpfr_make_name_members_only( $retval ) { //hold all of our info global $bp; // is xprofile component active ? if ( bp_is_active( 'xprofile' ) ) // The user ID of the currently logged in user $current_user_id = (int) trim($bp->loggedin_user->id); // The author that we are currently viewing $author_id = (int) trim($bp->displayed_user->id); // user can see only his name && admin can see everyone if ($current_user_id !== $author_id && !current_user_can('delete_others_pages') ) { $retval['exclude_fields'] = '1'; } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_name_members_only' );Add this to your child-theme functions.php or to bp-custom.php
September 12, 2014 at 5:55 pm #192577In reply to: [Resolved] Need a plugin to require xprofile fields
samdobrow
ParticipantGood points.
Initially, I’d be glad to have a check to require completion of all the xprofile fields then automatically (approve) change the user role to allow more access.
Another option might to be to grant access to the xprofile fields while in a pending status, then manually approve when the profile is completed. Currently, I have an intercept in the login routine that logs users out if their status is pending and redirects them to a “Pending Approval” page. Perhaps I could leave them logged in and force the redirect to the xprofile page. Any ideas on how to form the correct url to the xprofile page? Will all xprofile tabs be accessible under the single url?
Thoughts? Ideas?
September 12, 2014 at 11:29 am #192184In reply to: [Resolved] Need a plugin to require xprofile fields
colabsadmin
ParticipantHave you asked the BP Private plugin devs? Seems that you could edit their code to do a check of each required field. They’re probably only checking if a person is logged in.
if (!bp_is_my_profile() && !bp_custom_get_member_list_xprofile_data('Company') && !bp_custom_get_member_list_xprofile_data('Location'))The unfortunate part of this is that check would have to be done on every page causing unnecessary processing time to every page load, unless you set a cookie or a single flag in the db. But then what happens if a user removes the information in one of the fields at a later date.
September 12, 2014 at 9:00 am #192180In reply to: Can BuddyPress Do This?
danbp
Participantyes, you can have all this !
Profiles are public, but you can set them as “members only”.
And each member can choose the field visibility. Also it is very easy to let some fields public, allow to members or only to users friends.You can also hide comments with your conditionnals.
Discover here all buddypress features and read a bit the codex to see all things you can realize with buddypress.
September 12, 2014 at 1:00 am #192165schorsch2
ParticipantHi,
I have had the same problem and now, I have found a solution which works with my theme: just declare the variable $data (or whatever name you give it) as static before calling bp_get_member_profile_data or bp_member_profile_data like this:<?php static $data = 'bla'; ?> <?php do_action( 'bp_directory_members_item' ); ?> <?php /*** * If you want to show specific profile fields here you can, * but it'll add an extra query for each member in the loop * (only one regardless of the number of fields you show): * * bp_member_profile_data( 'field=the field name' ); */ $data = bp_get_member_profile_data( 'field=Taetigkeit' ); if( $data != '' ) echo $data; ?>September 11, 2014 at 2:35 pm #192058In reply to: Changing Name's default visibility
danbp
Participantnot the exact answer, but a way how to do it.
This snippet will make the NAME field hidden to all except for adminsfunction bp_define_hidden_fields( $hidden_fields, $displayed_user_id, $current_user_id ) { //if not admin or if not the profile of the current user if ( !is_super_admin( $current_user_id) && ($displayed_user_id != $current_user_id) ) { //add name field ( id = 1 ) to the hidden fields $hidden_fields[] = 1; } return $hidden_fields; } add_filter('bp_xprofile_get_hidden_fields_for_user','bp_define_hidden_fields', 10 ,3 );Reference:
bp-xprofile/bp-xprofile-classes.phpSeptember 8, 2014 at 11:02 am #190923In reply to: [Resolved] Re-install Buddypress Tables
christicehurst
ParticipantBelow is the errors that gave out after installing Buddypress
WordPress database error: [Table 'christic_database.wp_bp_xprofile_data' doesn't exist] SELECT id, user_id, field_id, value, last_updated FROM wp_bp_xprofile_data WHERE field_id = 1 AND user_id IN (1) WordPress database error: [Table 'christic_database.wp_bp_xprofile_fields' doesn't exist] SELECT * FROM wp_bp_xprofile_fields WHERE id = 1 WordPress database error: [Table 'christic_database.wp_bp_xprofile_fields' doesn't exist] SELECT type FROM wp_bp_xprofile_fields WHERE id = 1 WordPress database error: [Table 'christic_database.wp_bp_xprofile_fields' doesn't exist] SELECT id FROM wp_bp_xprofile_fields WHERE id = 1 Warning: Cannot modify header information - headers already sent by (output started at /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php:227) in /home/christic/public_html/wp-includes/pluggable.php on line 1173 WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] SELECT COUNT(*) FROM wp_bp_user_blogs WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] DELETE FROM wp_bp_user_blogs WHERE 1=1 Notice: Trying to get property of non-object in /home/christic/public_html/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 829 Notice: Trying to get property of non-object in /home/christic/public_html/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 829 WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] SELECT COUNT(id) FROM wp_bp_user_blogs WHERE user_id = 1 AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] INSERT INTO wp_bp_user_blogs ( user_id, blog_id ) VALUES ( 1, 1 ) WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT blog_id, meta_key, meta_value FROM wp_bp_user_blogs_blogmeta WHERE blog_id IN (1) ORDER BY id ASC WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'url' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'url','http://www.christicehurst.me') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'name' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'name','Chris Ticehurst') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'description' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'description','Creative Writer cat') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'last_activity' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'last_activity','2014-09-08 10:59:55') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'close_comments_for_old_posts' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'close_comments_for_old_posts','') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'close_comments_days_old' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'close_comments_days_old','14') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'thread_comments_depth' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'thread_comments_depth','5')Below is the errors from two other plugins
Strict Standards: Declaration of UberMenuWalkerCore::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 227 Strict Standards: Declaration of UberMenuWalkerCore::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 227 Strict Standards: Declaration of UberMenuWalkerCore::end_el() should be compatible with Walker_Nav_Menu::end_el(&$output, $item, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 227 Strict Standards: Declaration of UberMenuWalkerEdit::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 401 Strict Standards: Declaration of UberMenuWalkerEdit::end_lvl() should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 401 Strict Standards: Declaration of UberMenuWalkerEdit::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 401 Notice: Undefined index: ctype in /home/christic/public_html/wp-content/plugins/mycred/addons/banking/services/mycred-bank-service-interest.php on line 575 Notice: Undefined index: user_id in /home/christic/public_html/wp-content/plugins/mycred/addons/banking/services/mycred-bank-service-interest.php on line 576September 5, 2014 at 8:59 pm #189703ChiefAlchemist
Participant=> re: “Note that you need to add the correct id(s) for exclude_fields.”
Thanks shanebp. But is this the only way? I mean, I can’t do mucking with the code every time the client wants something new? Can I?
=> re: …/buddypress-xprofile-custom-fields-type/
“Add new visibility setting “Nobody”. Hide the field to all members.”
So this means, I presume that custom visibility is possible. Yes?
That said, I want to use standard fields, but I want to create the list via code, and not have to do it manually. Not possible? Mind you, it could be cause I’m new to BP but I’m trying to where / how the profile definitions are stored. I presume it’s an array, or close. So I want to do that but with code.
Thanks again
September 5, 2014 at 8:09 pm #189699shanebp
ModeratorI wouldn’t rely on messing with visibility settings.
To make a profile field only editable by admins, do this in bp-custom.php or a plugin:// only admins can edit the Skills field function chief_hide_profile_fields( $retval ) { if( is_super_admin () ) return $retval; if( bp_is_profile_edit() || bp_is_register_page() ) $retval['exclude_fields'] = '3'; //profile field ID's separated by comma return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'chief_hide_profile_fields' );Note that you need to add the correct id(s) for exclude_fields.
And that ‘ || bp_is_register_page() ‘ keeps the field(s) off the register page – which you may not need to do.Re how to create profile fields in code, there a couple of ways to do it depending on the kind of field and how it will be used.
Take a look at these plugins for more info:
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/
https://wordpress.org/plugins/buddypress-xprofile-image-field/September 4, 2014 at 11:00 am #189600In reply to: Extended Profiles / Can't edit the fields
Cartographer
ParticipantHi @danbp
Thank you very much for your response. I really appreciate it!
I think that I understand your points and I will wait for the next update.
My only comment here it that under “My profile fields visibility settings” maybe it would be nice to see the data next to the profile fields (not edit them just see them).
Thank you again 🙂
-
AuthorSearch Results