Search Results for 'profile fields'
-
AuthorSearch Results
-
January 18, 2017 at 1:10 pm #262992
In reply to: Displaying email address in profile
stunley
ParticipantHi Shane. Like so? This still disables the site.
function tiquality_add_custom_field() { if ( bp_is_active( 'xprofile' ) ) : ?> <div class="bp-widget <?php bp_the_profile_group_slug(); ?>"> <table class="profile-fields"> <tr class="my_mail"> <td class="label">Contact me</td> <td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td> </tr> </table> </div> <?php endif; } add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');January 18, 2017 at 12:47 am #262968In reply to: xprofile fields on Group members directory
psmorrow
ParticipantI found this:
which adds xprofile fields to member directory, but I can’t seem to get this working for the group members directory.
January 10, 2017 at 4:04 pm #262702In reply to: How can I insert link with target in description?
danbp
ParticipantAlso by default, a field description can only be filled by a site admin, not by suscribers or visitors. But it is to you to know what is harmfull or not when you customize something in your site.
If you are the only one allowed to create xprofile fields, i doubt that you will voluntary introduce malicious code into your field description… In this case it is certainly harmfull to allow yourself some html tags. 😉
January 6, 2017 at 9:12 am #262570In reply to: phone number or email
danbp
ParticipantHi @froshdimeji,
the registration process is part of WordPress. Check on the codex or on the wp forum, but i doubt that a phone number can be used instead of an email. Perhaps it can be added to the mandatory username, password and email fields. But sorry, i have never heard about such.
Note that BP allows you to add fields to the register page, but these fields will never be part of the registration itself. So even if you add an xprofile phone type field, it won’t be considered (as first) as mandatory for registration.
December 18, 2016 at 8:44 am #262226In reply to: Problem With Pages
danbp
ParticipantHi,
BP pages are not ordinary WP pages. BP use the page system to assign a permanent slug, while content stays dynamic. Usual WP pages are static.
BP pages must be unique. This means also without assigned template, model and of course, should be a slug to a page, and not a sub-page. These page are not intended to be published and exist only for internal use. You don’t need to build a menu for register and activation. Normally, these items come up, depending the context (theme, plugins, widgets) and/or the user status.
Related to “activation” and “register” and most of BP components, you need to declare a “page” for each, despite the fact that BP will only use them to insert a template. Registration will receive xprofile fields which are added to the existing WP registration form.
And another template for the Activation stuff, depending the context: activation key, success message and so on.December 17, 2016 at 9:18 am #262210In reply to: Repeatable Field groups required
danbp
ParticipantIf you create a field group called Business Details, you simply add as many fields you want!
Let’s say, you want that users can fill about 5 companies or society. In this case, you need to create a field for each input, in other words 5 fields. And if you need more details for each, you add the fields you need, one by one:Business 1: [___]
Address 1: [___]
Office 1 hours: [___]
Business 2: [___]
Address 2: [___]
Office 2 hours: [___]
Or if you use a lot of details, you group each businness separately.
For better clarity of the default profile details output, when you have a lot of information to display, is to use this very handy plugin: buddypress-profile-tabs
December 16, 2016 at 9:55 am #262165In reply to: Forms from Buddypress
danbp
ParticipantBuddyPress comes with his own form on xprofile component.
In 99% of cases, you haven’t to use an external form plugin. For the remaining 1%, you need good php knowledge to accomplish some custom work.
Everything you need to know about xprofile fields is explained here:
December 14, 2016 at 9:07 am #262072In reply to: BuddyPress and Avada Mobile Registration Form
danbp
ParticipantHi @darrenllrgmailcom, @adjunkten,
i had the same issue with a custom theme: fields didn’t wrap properly on small screens…
To solve it, i simply copied the concerned form rules from Twenty Sixteen into my child theme css and all went OK after that.The 2016 rules of the register page:
#buddypress #signup_form.standard-form #profile-details-section, #buddypress #signup_form.standard-form #basic-details-section, #buddypress #signup_form.standard-form #blog-details-section { float: none; width: 100%; } @media screen and (min-width: 38.75em) { #buddypress #signup_form.standard-form #profile-details-section, #buddypress #signup_form.standard-form #basic-details-section, #buddypress #signup_form.standard-form #blog-details-section { width: 48%; } } @media screen and (min-width: 38.75em) { #buddypress #signup_form.standard-form #profile-details-section { float: right; } #buddypress #signup_form.standard-form #basic-details-section { float: left; } }December 7, 2016 at 10:46 pm #261863tergra
ParticipantFound the source of the issue. I had put the field (First name (Base)) in another group of fields, because it only makes the registration process longer and doesn’t bring anything valuable to the site. But when yo do so, it breaks the registration process for some reason. It no longers makes the required verifications.. I’m now implementing the solution of changing is_required described here by ModemLooper : https://buddypress.trac.wordpress.org/ticket/5373?cversion=0&cnum_hist=3
It seems to work, I only have a issue with the css (I put a big div with display none before xprofile fields and I’m closing it at the end, just before the submit button, but it puts the submit button on the right as if the xprofile field was there, weirdly/Buddypress should really have that in core as this required Xprofile field is really not user-friendly AT ALL. 😉
Thanks everyone ! 🙂
December 6, 2016 at 10:04 am #261790danbp
ParticipantIs “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)
Yes it is !
it is possible […] to effect the change of either the email or password fields?
Yes it is ! from here: your-site.abc/members/USERNAME/settings/ – the link can be found under the top right usermenu on wp’s toolbar: username > settings > general OR/AND on the buddymenu, when you’re on your profile: Settings ! And that’s it !

For all other BP related questions, please read through the codex, i really have no time to (re)write all explanations. Sorry, hope you uderstand.
December 6, 2016 at 9:48 am #261789Jay
ParticipantThanks for the background info about WP, @danbp. It certainly is interesting to see how the little old single-user blog platform called “WordPress” has mushroomed into the gargantuan that it is today, following the old adage, “Man expands to fill the available space.”
Obviously I’m a bit of a noobie to WordPress (I’ll admit, so feel free to flame away ;)), but I’d like to ask about your reference to the clause “When BP is activated, and if you use the xprofile component…” I am a bit confused about “the xprofile component” and was wondering if you can help me understand it a bit better.
Is “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)
I am fully cognizant of the fact that one can preclude access to the WP Dashboard in a number ways, including by Role, etc., and I plan to do that. However, that causes me to provide exposure to the standard WP Profile fields (or as many of thsoe fields that I want to expose, that is) so that the user can modify them. This includes the critical email and password fields.
Relating to this situation, you didn’t quite address my key question as to whether it is possible (without serious WP core hacking — something I would NEVER do, btw) to effect the change of either the email or password fields?
Now listen, I realize that probably sounds like a shameless noobie question, but it really begs the question of whether modifying the email/password fields outside of the WP dashboard is considered “bad form” in some way.
Thanks in advance for your advice and insights.
December 5, 2016 at 8:05 pm #261756In reply to: How can I get a registration shortcode?
danbp
ParticipantHi,
BuddyPress use templates to show his stuff.
The registration is part of WP and BP’s xprofile component add only some additionnal fields to the original register form.If you open a template file you will see a lot of code and many lines starting by do_action( ‘something’ );
These files are all stored in bp-templates/bp-legacy/buddypress/
Now you have already the where and the what. here’s the how.
To show some text on the register page you have two options:
1) altering the whole template file bp-templates/bp-legacy/buddypress/members/register.php
2) add what you want by using an action hookThe second method is the fasted and the easiest. You just need to write a function and you’re done.
function valeriemanne() { echo 'Here i am !'; } add_action( 'bp_before_register_page', 'valeriemanne' );Add this to your child theme functions.php file or into bp-custom.php
WordPress codex references
add_action
Child themeDecember 4, 2016 at 8:10 pm #261686In reply to: show random profile
mrblade
ParticipantHi! Thank you for your answer!
But I need a page showing the profile (and not a list) of a random user.
I was thinking of using the standard loop with type = random and limit of one. And use the filter fields, as described here
is this the correct way?November 29, 2016 at 8:58 pm #261513In reply to: Viewing Extended Profile Data for Pending Users
shanebp
ModeratorDid you see this?
https://buddypress.org/support/topic/how-to-view-pending-signup-profile-fields/For a single field, follow the directions in the code.
November 29, 2016 at 7:07 pm #261504In reply to: Viewing Extended Profile Data for Pending Users
fleminglabs
ParticipantIs there any progress on this?
My client needs people to input a product number to sign up for the website.
There are lots of “pending” users but I cannot see the custom Profile fields to review what the new user has put in.
There is no other way of looking at that?
The clients needs to be able to do it and lots of them, the url trick will be too hard.
November 29, 2016 at 6:39 pm #261497Lars Henriksen
ParticipantOne solution might be to simply display the xprofile fields, that you want to be searcable in the member directory.
Then you can simply use the member search form to search for xprofile content.My members have a field with ‘school’ http://historielaerer.dk/medlemmer/
This snippet adds two profile fields to the members loop – add the code to your bp-custom.php:
<?php function add_info_to_members_loop() { $field_content = bp_get_member_profile_data( 'field=(Xprofile Field name)' ); if( $field_content != false ) echo "(label for xprofile field content): " . $field_content; $field_content = bp_get_member_profile_data( 'field=(Xprofile field name #2' ); if( $field_content != false ) echo "<br/>" . $field_content; } add_action( 'bp_directory_members_item', 'add_info_to_members_loop' ); ?>Just an idea.
Kind regards, Lars
November 29, 2016 at 8:17 am #261479In reply to: bbp-register layout
Venutius
ModeratorThe basic layout of the items on the right side of the registration screen can be affected by moving the fields around in Dashboard>>User>>Profile Fields.
You can drag and drop them and that will affect the order that they are displayed.
An alternative might be to install BP Better Registration, which creates a different type of registration process.
You might benefit from visiting my website http://buddyuser.com It’s aimed at newbies looking to get the most out of BuddyPress.
November 28, 2016 at 9:47 pm #261447In reply to: how to review user fields pending approval
shanebp
ModeratorNovember 28, 2016 at 2:47 pm #261403In reply to: Profile Page and Bio
Venutius
ModeratorHi there,
You might like to check out my page on setting up users
http://buddyuser.com/setting-up-site-members-with-buddypress
This includes details of adding additional profile fields to the users profile. Also check out the section “Installing BP” in my site, I’m sure it will give you a lot of useful information.
November 23, 2016 at 8:36 am #261285In reply to: User WYSIWYG Editor
Venutius
ModeratorFor profile fields you can enable a rich text editor with http://buddyuser.com/plugin-review-buddypress-xprofile-rich-text-field
November 14, 2016 at 1:55 pm #260993matt2006
ParticipantHi @danbp
thanks for your Tipp.he problem is, that BP Auto Group Join lets me add users to groups only by “Member Types” not by vustom xProfile fields.
Is there anyone here, who could customize the plugin for us?
The intended data flow would be:
Input via Gravity Forms -> Gravity Forms User Registration Add-On adds a new user with certain xProfile information -> Modified “BP Auto Group Join” adds new user to certain BP groups.Thanks for helping!
MattFor your information:
I manage this project for a Non-Profit-Organsation called “Economy for the common good”, which stives for a new economic system. He have associations all over Europe which are recognised as charitable.
Please see here for more Info:
https://en.wikipedia.org/wiki/Economy_for_the_Common_Good
https://old.ecogood.org/enNovember 13, 2016 at 1:50 pm #260970In reply to: Display user country flag
davehakkens
ParticipantOK, we got it to work in a different way. Special thanks to @coffeywebdev for the help.
For those interested:This snippet is used in the functions.php to get the locations from the profile fields and show the flag image.
function dh_get_flag_by_location($country){ if($country <> '' && !empty($country)){ $country_filename = get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '.png'; $country_path = get_stylesheet_directory() . '/img/flags/' . sanitize_file_name($country). '.png'; if(file_exists($country_path)){ $html = '<img src="' . $country_filename . '"/>'; } else { $html = $country; echo '<!--' . get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '-->'; } echo $html; } }Then we needed to change 2 templates to show this flag image in
the Bbpress forum replies and on the buddypress members page. So we added the code necessary to show the flag
bbpress/loop-single-reply.php
<div id="country" style="float:left;margin-right:.5em;"> <?php $user = get_userdata( bbp_get_reply_author_id() ); $country = xprofile_get_field_data( 42, $user->ID ); dh_get_flag_by_location($country); ?></div>buddypress/members/members-loop.php
<div class="member-location"> <?php $country = bp_get_member_profile_data('field=Location'); dh_get_flag_by_location($country); ?></div>November 7, 2016 at 9:21 am #260810In reply to: searchable directory and forum
Venutius
ModeratorIt could be, difficult to answer since you have not given a great deal of detail on what features you want. You can create multiple extra profile fields which are searchable, you can use a plugin like BP Profile Search to enable all sections of the profile to be searchable, and of course BP supports public and private forums.
November 1, 2016 at 8:32 am #260598In reply to: Display user country flag
davehakkens
ParticipantWhat do you mean with standalone version @danbp? I use a bbpress and buddypress plugin. I figured this is more for Buddypress since it has to do with buddpress profile fields.
Anyway thanks for the code, looks good! But it doesn’t seem to work after adding it into the functions.php. I haven’t got experience using filters so can’t seem to find the problem..
October 27, 2016 at 9:07 am #260429In reply to: [Resolved] profile tabs not reflecting database
danbp
ParticipantHi @davidself1001,
i think BP Profile Tabs is a plugin to create “nice looking tabs using the jQuery UI”, it is not the xprofile component !
xprofile fileds and field groups (the tabs) management is located at
dashboard > users > profile fields. What you see on that screen is normally what you have in the DB.
Once you created fields and field groups in xprofile, you will see the group tabs in the plugin. -
AuthorSearch Results