Search Results for 'profile fields'
-
AuthorSearch Results
-
April 6, 2014 at 4:48 am #180865
In reply to: How to have Privacy Settings enabled ?
John James Jacoby
KeymasterThanks for the feature request. At this time BuddyPress only provides visibility settings for individual profile fields. We’ve been putting off building a robust member to member permissions component until after we have attachments. Right now, everything in BuddyPress is loosely considered public.
Remember that BuddyPress is still powered by WordPress, and WordPress’s roles and capabilities system isn’t really powerful enough or scalable enough to handle permissions for millions to millions of users.
That said, there have been plugins that attempted to fill this void, but none of them gained a whole ton of traction unfortunately. We’ll get there, but it’s a bit of a long road.
April 5, 2014 at 3:30 pm #180839Jonbie
ParticipantHi Hugo,
Thanks for the quick reply.
I have a child theme already set up and i have put the following code into member-header.php but i am unsure of exactly where to put it and if the code is 100% accurate?
<div id=’member_profile’>
<div class=’profile_fields’>Category: <span><?php echo bp_get_profile_field_data(array(‘Type of account’ => ‘Type of account’));?></span></div>
</div>
<?phpApril 4, 2014 at 12:39 pm #180781In reply to: Profile display first/last name & Username
Lerroy
ParticipantOk I was able to fix this issue.
I added this code to my members-header.php
<?php $Name = bp_get_profile_field_data( 'field=Name' ) ; echo '<h2 class="Name-fields_main">' .$Name. '</h2>'; ?>added the code on line 22 just under this
<div id="item-header-content">April 4, 2014 at 12:28 pm #180778In reply to: display profile fields in member header
Lerroy
ParticipantOk
After allot more research I found a solution. looks like I was putting your code in the wrong spot sure it would have worked as well @BarneyI used this code
<?php $state = bp_get_profile_field_data( 'field=State' ) ; echo '<p class="profile-fields">State: ' .$state. '</p>'; ?>This displays my custom field state that i added via users > profile feeds in backend of wordpress
I put this code under
<span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>this is all in the members_header.php in the bp_legacy section
April 4, 2014 at 1:47 am #180758In reply to: display profile fields in member header
Lerroy
ParticipantThanks for pointing me to that.
I’m still struggling though PHP aint my thing 🙁
So the primary field “Name” and my other fields are called “State: and “Organization” and “Website” these are the field names I insert ?
Heres where i put it..But doesnt show full member-header
` </div><!– #item-buttons –><?php
/***
* If you’d like to show specific profile fields here use:
* bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
*/
do_action( ‘bp_profile_header_meta’ ); // Here is one way you could add xprofile fields name as well as the value to the members directory!
// Just remember to replace “Field-Name” with the names of your fields in the 5 variables in my code.
// Also remember the field name is case sensitive. If you notice the pattern of 5 in my code you can
// easily see how to add more fields if you need them. You can also use the div class bph_xprofile_fields
// to adjust the CSS in your stylesheet. Place this code in bp-custom.php:
add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
function bphelp_dpioml(){
$bphelp_my_profile_field_1=’Name’;
$bphelp_my_profile_field_2=’State’;
$bphelp_my_profile_field_3=’Organisation’;
$bphelp_my_profile_field_4=’Website’;
$bphelp_my_profile_field_5=’About-you’;
if( is_user_logged_in() && bp_is_members_component() ) { ?>
<div class=”bph_xprofile_fields” style=” margin-left: 25%;”>
<?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_1 ); ?><br />
<?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_2 ); ?><br />
<?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />
<?php echo $bphelp_my_profile_field_4 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_4 ); ?><br />
<?php echo $bphelp_my_profile_field_5 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_5 ); ?><br />
</div><?php
}
}?>’
April 3, 2014 at 8:07 pm #180735In reply to: Registration page – how to get SSL working?
SimpleOne
Participant@espellcaste, I had already read through that WP doc you referenced. That’s actually where I learned what lines of code to add to my wp-config.php file that I mentioned above.
And yes, it is redirecting to the BP Registration page. That’s expected behavior since I have my BP settings that way. (I have some custom BP profile fields that I want users complete during registration.)
I have posted my question here (as opposed to WP support) because it seems to me the issue may have something to do with how I have BP setup to interact with WP. And so I would think that someone else perhaps has encountered this same issue with BP and the Registration page.
Anyone?
April 3, 2014 at 4:14 am #180697In reply to: display profile fields in member header
Renato Alves
Moderator@cdb3212 As far as I understood your problem, there are two articles that would save your life if you had a chance of looking in the Codex. These are:
Take a look at those and try it out. =)
April 3, 2014 at 4:09 am #180695In reply to: Need initial advice on custom design capabilities
Renato Alves
ModeratorHi @theatereleven,
I’d say that what you aim for is perfectly possible with BuddyPress. You could the following, just suggestions:
- Your users could register themselves;
- Just active the Extended Profile component;
- Use Extended Profiles Fields so that your users can add information when signing up or later;
- And you could customize the appearance customizing the template the way you want.
Maybe there is a better solution, but with BuddyPress you would get already built-in, profiles, profile fields, register process/page, user roles and etc.
April 2, 2014 at 1:44 pm #180653In reply to: field visibility
Leendert van der Ree
Participant@shanebp Had support from the developer of xprofile. He thinks has something to do with buddypress. I don’t know. What I do know is that if I have the following code in the members-loop file:
<?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(bp_get_member_user_id()) ; ?>
<?php if (xprofile_get_field_data(‘field_name’) && !in_array(xprofile_get_field_id_from_name(‘field_name’), $hidden_fields)) : ?>
<?php echo xprofile_get_field_data (‘field_name’); ?>
<?php endif; ?><?php bp_member_profile_data( ‘field=Adres’ ); ?>
The first code with $hidden_fields and xprofile doesn’t return anything.
The second code does always return data, no matter how visibility is set.Any ideas?
March 28, 2014 at 5:41 am #180432In reply to: BP search box
loufernando
ParticipantThanks Renato, that makes sense. Hopefully someone might know how to add the text in the profile fields searchable so they appear in the search results.
March 27, 2014 at 7:52 pm #180412In reply to: field visibility
Leendert van der Ree
Participant@shanebp Thanks. I used the code and put it in the members-loop. No result. I can see the fields in the admin section as well as in the profile. I can change visibility to one of the four possibilities. But none shows up in the members listing. I don’t get it.
March 24, 2014 at 9:51 pm #180251In reply to: Plugin for adding books to a profile
March 14, 2014 at 3:04 pm #179787In reply to: Editing Field error
shanebp
Moderator>I think it occurs because the user can not see the hidden fields.
The field is not hidden.
It doesn’t exist in the form because you skipped it.
But it is included in the hidden input ‘field_ids’, near the bottom of the form.
BP will try to save it, based on the fields ids, but not find it and then throw the error.Instead of skipping, try changing the field type to hidden.
If you don’t want it in the form at all, then skip it AND remove it from the string of included ids.
Use bp_get_the_profile_group_field_ids() and do your removals and then put the new string in the ‘field_ids’ input field.March 13, 2014 at 1:05 pm #179692In reply to: 2.0 top features – ideas
danbp
ParticipantI would like to have a better control over xprofile fields creation.
Specially maxlength and is_numeric declaration avaible on the editor page.Something like:
Add a new field (select field type) > single line textarea
Maxlength ? [] Numeric ? []Filtering bp-get-xprofile-field-data for each custom field is not always pertinent IMO. 😉
March 11, 2014 at 10:08 am #179603In reply to: Member profiles
Aldwin Jay
ParticipantDid you already created some profile groups and fields in Users > Profile Fields?
March 9, 2014 at 5:04 pm #179511iameverywhere
ParticipantJust a heads up, because I know a lot of people have asked and not gotten anywhere, but you can use this feature + Buddypress Xprofile Custom Fields Type plugin to create a forum badges feature. That was my goal with this and it works. You just need to display:none; the field# class so that users dont see it as an option to edit in their profile. Then you have complete control and can give users badges that show up in the forums 😀
*flys away*
March 7, 2014 at 7:59 pm #179437In reply to: Is profile fields treated as posts ?
boblebad
ParticipantThanks for your reply Henry 🙂
I can’t find anything that looks like that in the database, and when going through the table names, there isn’t anything that sounds like having something to do with xProfile ?
I need to find the ID of the fields, so i can use them with BuddyPress Profile Progression “bppp_progression_block($user_id)”.
All the best
CarstenMarch 7, 2014 at 1:38 pm #179423In reply to: Is profile fields treated as posts ?
Henry Wright
ModeratorNo, they’re not treated as posts. They are called xProfile fields and form part of the xProfile component. They’re saved in their own table which I do believe is called wp_bp_xprofile_fields
March 6, 2014 at 9:48 pm #179402In reply to: Stop BuddyPress SPAM
BuddyBoss
ParticipantTwo more methods that help. I recently had a crazy spam attack – probably 300 fake signups per day. I implemented these two methods and it dropped to near 0.
1. Change the /register/ slug to something unique. An example would be /create-your-account/, or something of that nature. It just needs to be unique and also make sense in a URL for your user. Spammers targeting BuddyPress look for /register/ as the signup page. It’s all automated so you want to filter them out at the first step.
2. Add this to your functions.php file in your theme or child theme.
It presents a dummy field that humans don’t see. Spambots will fill it out, and if the field captures a value it will reject the signup.
// BuddyPress Honeypot function add_honeypot() { echo ''; } add_action('bp_after_signup_profile_fields','add_honeypot'); function check_honeypot() { if (!empty($_POST['system55'])) { global $bp; wp_redirect(home_url()); exit; } } add_filter('bp_core_validate_user_signup','check_honeypot');Credits for #2 go to:
http://mattts.net/development-stuff/web-development-stuff/wordpress/buddypress/anti-spam-techniques/registration-honeypot/I edited it slightly to remove the required redirect. Add that back from his tutorial if you want to. It requires that you make an extra page to send the spammer to, and I personally think that’s not necessary. I actually want them to have no indication their signup failed.
March 5, 2014 at 7:47 pm #179347In reply to: Change how profile fields are displayed
cyndimarie
ParticipantAfter snooping around I can see that the tables for the profile fields are created in profile-loop.php and bp_the_profile_field_value is defined in bp-xprofile-template.php I’m not sure about editing these files though…
I can’t seem to find the file that directs the items in a profile field to be separated by a comma, however I did find this topic: bp_the_profile_field_value and separating values
Instead of separating the items in the
<td class="data"><?php bp_the_profile_field_value(); ?></td>by commas, I want to make them into an un-ordered list.Any thoughts on how?
February 28, 2014 at 8:05 pm #179091In reply to: More fields and tick off boxes on profile ?
boblebad
ParticipantI appreciate that 🙂
Thank you.
I’ve bin searching a little around, and found that by adding new user roles, and by making the forum “read only”, that’ll clear one of the things i need done.
The adding of more fields can be done from the settings /user/profile fields.
From there the checkboxes is possible too, i just right now don’t know if they are searchable, but i’ll figure that out.
The progression thing i think i got cleared too, i might need to mix something from another plugin to get the style match what i want.
The only thing left is the restriction of conversations between the membership plans.
All the best
CarstenFebruary 28, 2014 at 5:24 pm #179061WIBeditor
ParticipantThis hit me too, but with profile fields set to “only me.”
It’s about as big a potential problem as I can imagine.
February 27, 2014 at 11:53 pm #179023alexfads
ParticipantThanks @shanebp. I had this already written: <?php echo do_shortcode(‘[userpro template=view]’); ?>, but now im just not understanding where to put it, and if im missing something else as far as the “filter” goes. I first attempted to add <?php echo do_shortcode(‘[userpro template=view]’); ?> to the member-header.php file, somewhere right above this: <?php
/***
* If you’d like to show specific profile fields here use:
* bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
*/
do_action( ‘bp_profile_header_meta’ );?>
but that didnt work. so then i did some more research and thats where i read that BP doesnt parse shortcodes and i would have to either make a function and add a filter that would allow shortcodes, or add a filter to an already exsisting function (which i was assuming was the bp_profile_header_meta’) that would allow shortcodes. Well, then of course being a newbie, i got lost looking at all of the codex stuff regarding functions parameters and return values, it all kind of went over my head, and couldnt figure out where to start anymore so i gave up. I dont have the means to hire a developer at this point, so ill just have to keep doing research until i figure out this filter function shortcode stuff, lol. Anyway, if you have any other ideas or ways i might be able to figure this out im all ears, otherwise, i genuinely appreciate your help. It’s hard to come across developers that are ok with sharing knowledge and help us newbies, so i thank you
February 24, 2014 at 11:12 pm #178843In reply to: How do i get my profile pages looking like this
BuddyBoss
ParticipantHow can I also make it so that the fields on the profile page are to be filled out when you have signed up and not on the registration page?
The fields added into the primary profile field group, named “Base” by default, will get collected on registration. The ones added to other profile field groups do not get collected on registration and are optionally added by users after register. So just make some profile field groups and put the fields you want to collect on registration into the Base profile field group, and the additional fields into another profile field group(s).
February 24, 2014 at 7:36 pm #178833In reply to: More fields and tick off boxes on profile ?
boblebad
ParticipantThank you you answers, especially you tolusage 🙂
I’ve got a few question.
Is buddypress-xprofile-custom-fields-type necessary, under /users/profile fields in the Dashboard, it is possible to add more fields?
Can’t the membership plans be done with PaidMembershipsPro, i have for an earlier project bin looking at s2members, and found it complicated to configure, so many settings ?
I’ll have a look at bp-better-directories and buddypress-profile-progression 🙂
Thanks again 🙂
All the best
Carsten -
AuthorSearch Results