Search Results for 'profile fields'
-
AuthorSearch Results
-
April 24, 2009 at 2:24 pm #43484
In reply to: Empty Profile Page
takuyaParticipantwhat do you mean by this?
I have about 8 profile fields and they all worked, but they sent the default message to the email address even though I updated it via wp-admin.
April 24, 2009 at 4:54 am #43404In reply to: How to make “about me” kinda profile field?
Burt AdsitParticipantThe action that triggers the ‘no linking’ workaround doesn’t exist in RC2. I made it easier to specify what fields you do not want linked. I haven’t tested this but it should work.
function my_no_links(){
remove_filter( ‘bp_the_profile_field_value’,’xprofile_filter_link_profile_data’, 2 );
add_filter( ‘bp_the_profile_field_value’,’my_no_links_filter’, 2, 3 );
}
add_action(‘plugins_loaded’, ‘my_no_links’);
function my_no_links_filter($field_value, $field_type = ‘textbox’, $field_id){
$no_links = array(1,5,99);
if ( in_array((int)$field_id, $no_links))
return $field_value;
else
return xprofile_filter_link_profile_data($field_value, $field_type);
}
This is also up on http://buddypress.pastebin.com/f461fc21e
Put the field ids that you do not want to have automatically linked in the $no_links array.
April 22, 2009 at 1:56 am #43191In reply to: Profile fields how to rearrange ?
John James JacobyKeymasterResolved. GJ Paul.
April 21, 2009 at 8:39 pm #43147In reply to: Profile fields how to rearrange ?
Paul Wong-GibbsKeymasterIf you mean on a user’s profile page, i.e. http://example.com/members/13hulyo/, you can’t. This will be an enhancement that might come in future versions of BuddyPress. You can edit the source files and change the order I believe but a) I don’t know how to do that b) you will have to make the change every time you upgrade and c) so I don’t recommend.
April 21, 2009 at 1:38 am #43082In reply to: MySQL Query Question
Burt AdsitParticipantFirst it would be nice to know what version of bp you are using. The latest trunk has lots of template functions and a new template class for the xprofile component.
Frankly the profile component is complicated in that it uses three tables to organize and get access to profile field data. Fields are accessed first by field group then field id then field value.
I don’t think that anyone is going to waste time on a detailed tutorial for RC1 code. Look at the following files and you’ll get an initial idea of how to access the profile fields.
/bp-xprofile/bp-xprofile-templatetags.php
/bp-xprofile/bp-xprofile-classes.php
With the template tags file being the most useful probably and the classes showing you how things are organized.
April 20, 2009 at 12:50 pm #43040In reply to: Displaying A User’s Profile with User ID
WythagyParticipantI’m not quite sure what you are asking…judging by your thread title you’ll need this function:
bp_core_get_username( $uid )
and then you can just call the profile fields accordingly…
April 15, 2009 at 2:01 am #42674In reply to: Avatar Upload
Jeff SayreParticipantVito687-
I can not change or create avatars
I assume you mean that you cannot create avatars at all. If that is the case, then you cannot even get the chance to change your avatar. Is this correct?
The error you mentioned in your OP is found in only two places in BP:
- bp_core_avatar.php –> in the function bp_core_avatar_admin
- bp_xprofile_signup.php –> in the function xprofile_validate_signup_fields
So, either you do not have sufficient permissions in the folder where the avatar is first uploaded, or you’re uploading an avatar that is too big. I will guess that it is the first problem based on the error message.
But, let’s be thorough.
You mentioned that you’re running a very recent BP trunk version and WPMU 2.7.1_beta from branch. We’ll assume that everything is correct with your upgrade and that you’ve also read the thread Lance mentioned and tried any applicable suggestions.
Here, then, are some additional or follow-up questions:
- What is the size of the avatar you’re trying to upload?
- What is the avatar’s format?
- Are you using the standard buddypress-member theme or a customized theme?
- What version of GD is installed?
- What version of PHP are you using?
- Have you checked all the folders in blog.dir and made sure that there are indeed no files?
- Have you checked the permissions of each of the subfolders in blog.dir?
April 14, 2009 at 5:33 pm #42646In reply to: Xprofile: Just show first Letter of last name
John James JacobyKeymasterHere is what I would do… And what I do mostly on all of my BuddyPress installations…
In your BuddyPress->General Settings, make the “Full Name field name” be called “Display Name” or in your case “First Name/Last Initial”
That way, people know right away what you want shown there. You won’t need to baby sit them because it says right there what you want entered. Most people will follow suit, and the ones that don’t, what’s the diff?
(Notice I use my middle name here on bp.org?)
Then, create extra fields for First Name and Last Name, for yourself to use. Make them visible if you’d like, or whatever.
This way you’re not trying to create a crazy filter to micro manage anything.
April 14, 2009 at 12:48 pm #42618In reply to: BP-FBConnect Plugin
2448027Inactivegot it working it was my stupid php… so what exactly does this do ? when you post a blog on wpmu does it post it on fb as well?? and vice versa ?
also isnt there anyway to take out users profile info … and put em into there buddypress if they have the same fields..?
April 14, 2009 at 3:09 am #42584In reply to: How to use full name, first name + last name
Mike PrattParticipantI’m sure you can but I haven’t looked at xprofile_fields just yet. A bunch of other problems to solve. Burt Adsit might be able to help
April 14, 2009 at 1:19 am #42579In reply to: Full Name –> Display Name
Jeff SayreParticipantIt\’s not found in a form. It is located in the wp_bp_xprofile_fields table as a piece of data.
The function xprofile_add_signup_fields in the file bp-xprofile-signup.php extracts it from that table.
April 13, 2009 at 3:18 am #42494In reply to: How to use full name, first name + last name
peterverkooijenParticipantWhy don’t you just add two additional profile fields (last name & first name) , make them required so they show up on registration and then write a custom function to tweak the sign up email?
Yes, that’s what I want to do. But how would that work?
I’d already tried editing wpmu-functions.php, replace ‘Dear User’ with ‘Dear DISPLAYNAME’ and then add this line:
\’$welcome_email = str_replace( “DISPLAYNAME”, $user->display_name, $welcome_email );\’
But the display_name field in wp_users has the username, not the full name. Full name and other profile fields are in wp_bp_xprofile_fields + wp_bp_xprofile_data. I have no clue how to get them from there.
Is it possible to write a function to retrieve full name (or first + last) from wp_bp_xprofile_data and put the result in the email? How does that work? Can you point me to a code example that shows the basic principles?
April 13, 2009 at 2:20 am #42493In reply to: How to use full name, first name + last name
Mike PrattParticipantWhy don’t you just add two additional profile fields (last name & first name) , make them required so they show up on registration and then write a custom function to tweak the sign up email?
btw, this is standard across a lot of social media sites. Look at Facebook – aside from the fact that they login with email instead of username, they also have display name, first and last….just like BP can have. Make FullName your Display name.
April 12, 2009 at 7:07 pm #42464In reply to: How to use full name, first name + last name
nicolagrecoParticipantif i’m not wrong, the Full Name has a filter, if you use it, you could replace it with the wp built-in name & last name, or use xprofile fields fot that,
it depends on your php & wp skills
April 12, 2009 at 4:18 pm #42452In reply to: How to use full name, first name + last name
Jeff SayreParticipantI assume you’re specifically talking about customizing a BuddyPress template. If so, then you need to look in the BuddyPress profiles tables in MySQL.
For instance, the field definition for the “Full Name” field is stored in the wp_bp_xprofile_fields table and any corresponding datum is stored in the wp_bp_xprofile_data table.
With respect to this:
At the moment Buddypress/WP MU makes it very hard, perhaps impossible, to flexibly use member’s real names or other data (companyname, city) in the site or have something like ‘Hello John’ in email notifications.
That is not true. Any piece of stored data can be accessed and spit out in any number of ways. It just must first be in the database. Look in the bp-xprofile.php file and the bp-xprofile subdirectory for a number of functions that can be called to extract a user’s data.
By the way, I did see your other post about this topic and it was answered appropriately. With the default WPMU and BuddyPress setup, you will not be able to use a user’s full name until they’ve entered that data. They will not be able to enter their full name until after they register.
So, unless you hack the wp-signup.php or register.php files, and require that a full name be provided when registering, you will not be able to send them a welcome email with their full name since that piece of data does not yet exist.
All of what you are asking is possible but requires either a pre-existing plugin, a custom hack, or your ability in customizing and coding a BuddyPress template.
April 8, 2009 at 4:50 pm #42100In reply to: Profile fields ORDERING !
Paul Wong-GibbsKeymasterThis is in the pipeline to come in future releases of BuddyPress (after v1.0).
April 6, 2009 at 6:24 pm #41930In reply to: profile fields not behaving correctly
enlightenmental1Participantsomewhat of a similar issue:
xprofile fields are filled in, but don’t show on the profile,
changes made to certain fields don’t “save” or “show” on the profile
using trunk from a couple of weeks ago… and haven’t kept vary god track of the trunks
proly a few new ones since…. but my install gets more and more customized as time goes..
these updates, are they only to bp-xprofile files? or would i want to get the whole trunk?
danke
April 1, 2009 at 11:50 pm #41636In reply to: Changing Profile Fields
takuyaParticipantIs it still possible to rearrange via phpmyadmin, editing the filed IDs?
April 1, 2009 at 11:06 pm #41630In reply to: profile fields not behaving correctly
Shelley KeithParticipantThat fixed it, thanks!
April 1, 2009 at 9:39 pm #41623In reply to: Changing Profile Fields
Roy McKenzieParticipantEXCELLENT!
April 1, 2009 at 8:02 pm #41607In reply to: profile fields not behaving correctly
Burt AdsitParticipantWell, that was easy. I just try and clarify things and it gets hunted down by Andy. I could get used to this.
April 1, 2009 at 7:36 pm #41605In reply to: profile fields not behaving correctly
Andy PeatlingKeymasterFound the problem, if you update to the latest it’s fixed.
April 1, 2009 at 7:35 pm #41604In reply to: Changing Profile Fields
Andy PeatlingKeymasterIn this first version it’s not possible to re-arrange, but it’s a high priority feature once 1.0 is out.
April 1, 2009 at 7:26 pm #41603In reply to: profile fields not behaving correctly
Shelley KeithParticipantI’ve reset my email domain registration limitations if you want to test on wearesau.net.
April 1, 2009 at 6:39 pm #41601In reply to: profile fields not behaving correctly
Andy PeatlingKeymasterChecking this now.
-
AuthorSearch Results