Search Results for 'profile fields'
-
AuthorSearch Results
-
September 17, 2009 at 6:50 pm #52673
In reply to: Displaying Profile Fields in Blog Posts
philbow
ParticipantThanks Andy!!!!
September 17, 2009 at 6:46 pm #52670In reply to: Displaying Profile Fields in Blog Posts
Andy Peatling
Keymaster<?php xprofile_get_field_data( $field_name_or_id, $user_id ) ?>
A great plugin would be a profile badge widget, anyone care to write that using the template tags?
September 17, 2009 at 2:24 pm #52630In reply to: Private Profiles
madloki
ParticipantMe too! An privacy option is very important. This http://devbox.computec.de/2009/06/buddypress-xprofile-privacy-plugin/ does not work with 1.1
Edit: it does work! But user must select before. But privacy fields like birthday etc. should never be visible for guest. Maybe with an click to activate, but at the moment thats not good.
September 16, 2009 at 3:58 pm #52559In reply to: Private Profiles
Greg
ParticipantThis is a little risky for a non-programmer, but here is some code that would replace the profile-loop.php file in the skeleton member theme. Note that this theme is deprecated in the new parent-child theme setup. It is also not a sophisticated privacy component like the one Jeff is working on. It simply omits everything except the base profile fieldset when a non-member views the profile.
This is from my own installation, but I have removed some pieces (mostly formatting) to simplify things a bit. I haven’t tested it in the simplified form.
It assumes that “Base” is the base profile group name you specified in the BP dashboard settings.
<?php
/*
* /profile/profile-loop.php
* This file loops through the profile field groups, and then each profile field to
* display the profile information that a user has entered.
*
* Loaded by: 'profile/index.php' (via the xprofile_get_profile() template tag)
*/
?>
<?php if ( bp_has_profile() ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php if ( (bp_get_the_profile_group_name() == "Base") || ( is_user_logged_in() ) ) : ?>
<div class="info-group">
<?php if ( bp_group_has_fields() ) : ?>
<h4><?php bp_the_profile_group_name() ?></h4>
<table class="profile-fields">
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<?php if ( bp_field_has_data() ) : ?>
<tr<?php bp_field_css_class() ?>>
<td class="label">
<?php bp_the_profile_field_name() ?>
</td>
<td class="data">
<?php bp_the_profile_field_value() ?>
</td>
</tr>
<?php endif; ?>
<?php endwhile; ?>
</table>
<?php else : ?>
<h4><?php bp_the_profile_group_name() ?></h4>
No info yet.
<?php endif; ?>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php if ( !is_user_logged_in() ) : ?>
<p class="not-a-member">You need to log in to see full member profiles.</p>
<?php endif; ?>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'Sorry, this person does not have a public profile.', 'buddypress' ) ?></p>
</div>
<?php endif;?>September 16, 2009 at 2:45 pm #52552In reply to: Trouble logging in on v1.1
Ezd
ParticipantIt’s weird, if I login from the top nav. bar I get the “No input file specified” error but if I view a profile and log in using the login-fields inside a profile, I can log in without problems.
Is it just my buddybar which is messed up or is this a bug.
September 15, 2009 at 3:47 pm #52475In reply to: Extend Profiles.. wait.. not at signup!
John James Jacoby
KeymasterWith BuddyPress1.1, you can also recreate a custom registration page to include only the fields you specifically want them to have on sign-up, put it in your child theme, and let it do the dirty work.
September 15, 2009 at 3:23 pm #52470In reply to: Extend Profiles.. wait.. not at signup!
Andy Peatling
KeymasterJust don’t put the fields in the “base/first” profile field group. Only the fields in that group will show on the signup page.
September 14, 2009 at 3:08 pm #52385In reply to: Using xProfile custom field values
Chad Holden
ParticipantHey, one more question for you. Any idea how to make one of the custom fields and file upload button for the xprofile plugin? I do have the need. No worries if you don’t know.
September 12, 2009 at 10:31 am #52296In reply to: Founded problems with BP 1.1-pre
nandopax
ParticipantAnother.
The Profile fields lost the original ID order.
September 11, 2009 at 4:04 am #52262In reply to: custom Profile-Fields
John James Jacoby
KeymasterIn BP1.1 it would be easiest to make a custom theme file to do this inside the member-loop.php. You could check the field name and if it = the name of your field, then you can grab the next field, format it the way you want, and continue.
What BP version are you using?
September 4, 2009 at 6:17 pm #52025In reply to: Manually reset user id to higher number?
Jeff Sayre
ParticipantThat would be wp_users, but isn’t that ID used as a key (?) elsewhere in the database? Would it get “altered” automatically throughout the system?
No, in WPMU DBs, changing the auto increment field, or any other linked field, does not automatically propagate the changes throughout. The technical term for what you are referring to is referential integrity, with the specific subset of that called cascading changes.
With the MySQL engine, cascading changes (update or delete) throughout the DB only can occur if the tables in the DB have been set up as type InnoDB and the appropriate foreign keys applied. WPMU’s tables are set up as type MyISAM. Before assuming that this was/is a bad choice, when it comes to MySQL, there are pros and cons with each table type. A conscious decision went into selecting MyISAM table types for WPMU’s DB.
Now, with regards to the specific issue you are facing:
Although all the tables in WPMU’s DB have an ID field that is set to auto_increment, the ID field in wp_users is used to assign a unique ID to each registered member of your site. That ID field ties into the other tables in the DB, where necessary, by mapping to an appropriate field–but not to the auto incremented ID field of the other tables.
So, for example, the wp_user ID field forms a relationship in the wp_bp_friends table in two places–with the initiator_user_id and friend_user_id fields. Or as a specific example, wp_user ID field = 7 would form a relationship with the field in wp_bp_xprofile_data where the value of its user_id field equaled 7.
You are on the verge of potentially causing a very big, possibly fatal problem for your MySQL DB. Before doing anything, back up your DB and be prepared for the very-real possibility that you are going to alter the table relationships (break them) to such a point that your DB will not function anymore. You will then have to delete all the data in the DB tables and then restore the data from your backup.
You might even find yourself in the position of having to actually delete the entire DB and creating a new one from scratch. You’ will then need to restore from the back up. So you should also make sure you have a copy of the DB settings in WPMU’s wp-config.php file as you will have to recreate the new DB exactly to match the settings found in that configuration file.
September 1, 2009 at 5:49 pm #51881In reply to: How to make a safe community?
pxlgirl
ParticipantI found a plugin that lets users change privacy setting in their profile. It has effect on the profile fields. Users can make their content viewable for themselves, friends or everyone. Here’s the link: http://devbox.computec.de/2009/06/buddypress-xprofile-privacy-plugin/
pxlgirl.
September 1, 2009 at 4:15 pm #51877In reply to: How to disable a member?
Jeff Sayre
ParticipantWhat you need to do depends on what name is in question. Is it the member’s first, last, or nick name? Is it their full name which is displayed in the profile pane of BuddyPress? The data for those names are stored in two different places.
Also I editted his name from admin dashboard, but the name does not change? Is this a bug?
Since usernames (login names) cannot be changed, you must have tried changing either the first, last, or nick name. Did the questionable name even appear in any of those fields? Did you also select the newly-changed name in the “Display name publicly as” drop down list?
But, based on what you are saying here, I assume that the questionable name is the member’s BuddyPress full name. This can only be changed in the profile pane by the user. Currently the only recourse a Site Admin has is to go into MySQL’s backend and find the questionable field in the wp_bp_xprofile_data table.
Make sure that whatever changes you made to the user’s name in WPMU’s backend, you make in this table as well.
Just to give you a little more background into what is happening:
- When a user updates (changes) their name in the Full Name field in the BuddyPress profile pane, the changes do propagate throughout the MySQL DB. The datum in the following tables are properly updated: wp_bp_xprofile_data, wp_users, and wp_usermeta
- But, if you make changes to a user’s nickname field in WPMU’s backend, the changes are written to wp_usermeta only for that field. The changes are not written to the wp_bp_xprofile_data or wp_users table. You can have the changes written to the wp_users table if you select the proper value from the “Display name publicly as” drop down list. But, they are never written to the corresponding BuddyPress table.
- Finally, and this is even more confusing, changes to the nickname field are not written to the first name or last name meta values in the wp_usermeta table. Conversly, if you change the first name and/or last name fields, they are not combined and also written to the nickname field in wp_usermeta
So, there could be improvements in the way WPMU handles user name changes. But, it is a WPMU issue since changes at the Site Admin level in the backend are controlled by WPMU and not BuddyPress.
September 1, 2009 at 2:19 am #51863In reply to: How to make a safe community?
Jeff Sayre
Participantr-a-y
There are a number of new hooks and an array object that need to be available for the privacy component to function. Although the alpha versions may work with v1.1, the full-blown version is really targeted for v1.2 and will require that as a minimum.
Concerning your wire post, for some reason, I believe that I never received that email. Strange, since I do have all my email notifications set to “Yes”.
But, to answer that specific question, your direct calls to xprofile fields should still function properly. Since you are pulling your data directly from the table and not from a templatetag function, you should be fine. Now, if you want your direct calls to be subjected to privacy control, then that is a different matter. You would then need to pull your data after the fields array has been filtered.
There is a separate table that gets installed that handles all privacy object settings. The privacy component filters the fields array that populates the profile page, removing any field-level elements that a given user chooses to hide from a given viewer category.
August 31, 2009 at 10:04 pm #51844In reply to: Making Prebuilt Profile Fields?
Andy Peatling
KeymasterThis used to be possible with CSV files, but the code was old and not that great so I’ve removed it for now.
August 31, 2009 at 8:46 pm #51838In reply to: Automatic Group Joining
takuya
ParticipantThere’s plugin that helps users to join certain groups on signup. But not based on profile fields.
August 31, 2009 at 3:29 am #51793In reply to: Making Prebuilt Profile Fields?
3612275
InactiveOk, thanks for the reply.
August 31, 2009 at 1:51 am #51790In reply to: Making Prebuilt Profile Fields?
John James Jacoby
KeymasterphpMyAdmin import/export of the tables would probably be easiest? There isn’t a method within BP to do this unfortunately, and I’m not sure it’s on the roadmap either.
August 29, 2009 at 12:21 am #51707In reply to: Private xprofile fields
Lriggle
ParticipantThanks guys, I’ll take a look!
August 28, 2009 at 7:31 pm #51700In reply to: Edit input tag profile field_1?
peterverkooijen
ParticipantI see the html for the xprofile input fields is in function get_edit_html in bp-xprofile-classes.php:
switch ( $this->type ) {
case 'textbox':
$html .= '<div class="signup-field">';
$html .= '<label class="signup-label" for="field_' . $this->id . '">' . $asterisk . $this->name . ':</label>';
$html .= $this->message . '<input type="text" name="field_' . $this->id . '" id="field_' . $this->id . '" value="' . attribute_escape( $this->data->value ) . '" />';
$html .= '<span class="signup-description">' . $this->desc . '</span>';
$html .= '</div>';
break;So I guess I could add onkeyup=”copyinput()” there, but then all xprofile fields will get that. Would that mess up the system? The Javascript refers to the fields by ID.
According to Jeff Sayre this method will be deprecated in version 1.1, but I need a temporary solution before I make the switch.
Trying that now…
August 23, 2009 at 9:41 pm #51470In reply to: Import existing user
peterverkooijen
ParticipantApparently Manoj Kumar’s very essential users import plugin does not work with the latest version:
The Big K at 19:19 on 9 August 2009
Hi Manoj,
The plugin is not compatible with WPMU 2.8.3 & Buddypress 1.0.3. Could you please fix it.
This is also the version of the plugin I’ve tried – I gave the wrong link earlier.
In my installation the plugin worked for the essentials – username, email address – but nothing was added to meta in wp_signup and the xprofile fields.
Next I’ll try it in a fresh install of Buddypress 1.0 RC…
August 23, 2009 at 4:18 pm #51449In reply to: Show xprofile data?
Treblamah
ParticipantThis should help:
I had to separate the fields by group to pull only one field at a time that preserved the formatting. The other ways I found to pull individual field data produced text without line breaks.
August 22, 2009 at 12:59 am #51398r-a-y
KeymasterDitto!
August 21, 2009 at 11:58 pm #51395peterverkooijen
ParticipantI’d like to test this plugin as well.
August 21, 2009 at 11:40 pm #51392In reply to: Extended Profiles on Sign up?
Nightlyfe
Participantcan the default / built in profile system be extended to have advanced & fully developed profiles (custom fields and such)?
what is gained by going with bp if so?
-
AuthorSearch Results