Search Results for 'profile fields'
-
Search Results
-
Topic: Profile fields localization
HELP!
I need to customize the existing REGISTRATION FORM, which now contains only the very basics, and I need to find the other “labels”, php do_action, and the input types, but eve more so, where they are located now, so that I can add and change my current registration form.
Here’s what I have now:
<label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_username_errors' ); ?> <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" /> <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_email_errors' ); ?> <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" /> <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_password_errors' ); ?> <input type="password" name="signup_password" id="signup_password" value="" /> <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_password_confirm_errors' ); ?> <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />and what I will need is the codes for the NAME, for a TEXT field that needs to take a invitation code.
Can you guys point me in the right direction please?
Hi,
I am trying to extend the loop with some extra profile fields using this code:<?php bp_member_profile_data('field=Present position'); ?><br/>
<?php bp_member_profile_data('field=Phone number'); ?><br/>
<?php bp_member_profile_data('field=Email address'); ?> <br/>It works but members with empty profile fields get the data from the Previous member.
Website is behind a login but it looks like this:Ariane Gordijn
06 123 456 78
ariane@ca-editors.comLen ‘t Hoen
06 123 456 78
ariane@ca-editors.comTanja Baars
Marketing & communication employee
427
t.baars@airborne.nlHow can I change the code so the empty fields stay empty?
Thanks in advance,
ArianeHi
Like many people I’m after having nested fields…
I thought that this might be the solution http://wordpress.org/plugins/fields-framework/
Since it had a way of putting fields into groups..and well nesting those groups.
Would it be possible to take the code and integrate it into buddypress or http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/
The code in question from what I can work out from the fields-framework plugin is…
Classes.php
if(!class_exists(‘FF_Field_Group’)) {
class FF_Field_Group extends FF_Field {
protected $fields = array();public function set_saved_value($saved_value) {
$saved_value = parent::set_saved_value($saved_value);if($this->repeatable != true) {
foreach($this->fields as $field) {
$set_saved_value = !ff_empty($saved_value) && is_array($saved_value) && array_key_exists($field->name, $saved_value) ? $saved_value[$field->name] : null;$saved_value[$field->name] = $field->set_saved_value($set_saved_value);
}
}
elseif(!ff_empty($saved_value) && is_array($saved_value)) {
foreach($saved_value as &$value) {
foreach($this->fields as $field) {
$set_saved_value = !ff_empty($value) && is_array($value) && array_key_exists($field->name, $value) ? $value[$field->name] : null;if(ff_empty($value) || is_array($value)) {
$value[$field->name] = $field->set_saved_value($set_saved_value);
}
}
}
}return $saved_value;
}public function html() {
$field_group_id = $this->id;$field_group_name = $this->name;
foreach($this->fields as $field) {
$original_field_name = $field->name;$original_field_id = $field->id;
$field->name = “{$field_group_name}[{$original_field_name}]”;
$field->id = “{$field_group_id}-{$original_field_id}”;
$value = is_array($this->value) && array_key_exists($original_field_name, $this->value) ? $this->value[$original_field_name] : null;
$field->set_saved_value($value);
$field->container();
$field->name = $original_field_name;
$field->id = $original_field_id;
}
}public function add_field($field) {
$this->fields[] = $field;
}
}
}Functions
if(!function_exists(‘ff_add_field_to_field_group’)) {
function ff_add_field_to_field_group($field_group_uid, $field_uid) {
if(empty(FF_Registry::$fields[$field_group_uid])) {
ff_throw_exception(__(‘Invalid Field Group UID’, ‘fields-framework’));
}if(empty(FF_Registry::$fields[$field_uid])) {
ff_throw_exception(__(‘Invalid Field UID’, ‘fields-framework’));
}FF_Registry::$fields[$field_group_uid]->add_field(FF_Registry::$fields[$field_uid]);
}
}It also features in builder but not able to work out the coding….
Idea of putting fields into groups and then nesting them, might be the way forward..
If that could then be combined with the conditional fields plugin, might then be onto a winner…
Sorry, I know zero about php coding, but I hope I might point someone onto the way…..
hello to all,
I expose my problem: when you look at the profile of a user (profile – view) there is a table with the field displayed.
the vertical line that divides the description of the user field moves and also the field move towards the right. in almost all users is displayed differently based on fields that have compiled.probably there are “Auto” which are a bit what they want
I use the theme RTPANEL (RTCAMP)
how can I fix??
thanksTopic: Help with profiles
Hi
I’m trying to figure out how to do something with profiles in buddypress and wondered if you would be able to assist.
I’m a novice with all the buddypress coding btw…..
I’ve downloaded the buddypress xtended fields plugin.
What I’m after is the following.
each of the numbers are different levels…1 Select game type
Options would be MMORPG, FPS, Other.If other is selected then subject to admin approval it be added as an extra option.
2 Select Game name
So for MMORPG you would have Neverwinter, DDO, Marvel, Other.
Again if other is selected then subject to admin aprroval it be added as an extra option.FPS and the others would have different options.
3) Account Name 1 + Additional account
If additional account is selected then it would display Account 2 etc up to say a max of 10.4) Number of characters.+ additonal character
5) Character Name – text field entry.
Class – Drop down field of say 5 options + other
Race – Drop down field of 5 options + other
level – number 1 to 60
Date last updated.there is a plugin about conditional fields, but not sure if this can handle this? Also I shall look at doing a spreadsheet that might show better what im after.
Cheers
blue
Topic: Front End Profile Editing
Hey guys, me again!
I’m using a plugin called BuddyPress xProfiles ACL (which is great) to allow certain user roles to edit information in users profile fields (I don’t want the individual users to have access to make these changes).
This works great, but it also allows these user roles to read through other users private messages, change avatars, settings etc.
I’d like to make it that my managers can log in (front end) and change their authorised profile fields for other users (NOTHING ELSE).
I don’t mind admin having access to all, but not anyone else.
Please can you tell me how to set this up?
Regards
Hey guys,
I would like to create a field group where the field information is only visible to that particular user, administrator and a custom role (managers).
As this will contain personal financial information, I don’t want any other site members seeing it. But it’s important that my selected user roles and individual user see it.
Any ideas?
Regards
Topic: 'Change Avatar' Button
Hey guys,
How can I change the link of the ‘Change Avatar’ button so that it directs users to the settings page (where they can change their profile information).
I am now using the Xprofile fields image upload on registration for the avatars, so original avatar settings are useless.
Also, I’d like to change wording to ‘Change Photo” rather that ‘Avatar’
Otherwise if this is too tricky, I’ll just hide/remove the button.
Cheers guys.
PS is it just me or has the BP theme changed to purple?
I would like to display on a buddypress member profile page the user fileds\data each group on a different tab. tabs display. can you help?
Thanks in advanced.
Hey
I have made some xProfile fields in groups: http://i.gyazo.com/6c8deade080b33848e6475a3ca2c3f11.png
How do I output these data at the Profile Page. I can see the template is here: /wp-content/themes/bp-mag-child/members/single/home.php. I have made a sidebar where I want to display some of the groups. How do I do that?
Hey,
this is freaking me out. I need a plugin, such as “BP profile search” (you can add custom
profile fields which the member at the front end can search for) with the possibility to add dynamic drop down menus. example:drop down menu 1 :
– main category 1 (selected)
– main category 2drop down menu 2 (child):
– subcategory 1 for main category 1
– subcategory 2 for main category 1Is there such a plugin somewhere? I need that dynamic drop down to finish my project.
I tried to add it by myself. But my javascrip skills are too bad.I really hope you can help me out!!
cheers
domiHello,
Rather than going into the admin area and adding profile fields manually, is there a way to allow the users to add new profile fields?
Many thanks