donmik
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field Visibility1.4.8 include your German translation.
Thanks again!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field VisibilityGreat! Thank you!
I have just uploaded a new pot file. Send the german translation to info@atallos.com and I will upload it in next version.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field VisibilityThis plugin is not part of BP. It extends xprofile functions of BP. This plugin add new field’s type for xprofile fields. Before you install this plugin you already haver Profile Fields. When you go to create a new field or edit one, in the select Field type, you can choose: Text box, Multi-line text box, Date selector, Radio buttons, Drop down select box, Checkboxes. Those fields come with Buddypress.
This plugin add: Birthdate, Email, Website, Datepicker, Custom post type selector, Custom post type multiselector.
The “change visibility” come from Buddypress, this plugin don’t change anything about this.
This plugin is only useful if you need to add a birthdate field, email, website, datepicker, … If the original field’s type are enough for you, I think you don’t need this plugin.
I hope I have clarified something…
Sorry. I’ve just updated Installation instructions to avoid this confusion.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Installation instructionsMmm, sorry about the confusion. This plugin only add types of fields, not fields.
You need to create the fields yourself. This plugin add more options to the field’s type select when you create or edit a field.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field VisibilityThe problem is in the theme. It shows the profile fields after showing “Change visibility”. The plugin can’t do anything here about this, I think. I don’t think we can change the order without modifying code. It’s not a core file, it’s a file of your theme. Maybe you can achieve this with css but I believe this way is easier.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Restrict Editing of FieldsOCS Foundation CTO, I don’t think this plugin is the suitable to achieve this function. It was created to add more field’s type, buy maybe you can do it coding a little. You can add an action to bp_custom_profile_edit_fields and hice the field you want.
I have no time this week to try this, but maybe next week I can help you with this.latinoleader, I don’t know but I don’t believe this plugin let you modify edit permissions over a field you create with a plugin. If you try and it works, let us know!
Thanks for reporting this. When I solved a bug with WordPress 3.5 and introduced this new bug with WordPress 3.4…xD.
Now it should work with version 1.4.5.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Restrict Editing of FieldsHi,
There is no way to do this with this plugin and I don’t know other plugin to do this. Sorry…
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] imageHi,
We can try to add image field in next plugin version but until January we have no time to work on this.
This post http://alextheafrican.wordpress.com/2012/03/10/how-to-add-an-image-field-to-buddypress-extended-profile-fields/ give us the idea of this plugin. Maybe it can help you until we add this feature.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Field VisibilityHi,
I think we can’t do this in the plugin. We can achieve what you want modifying the template edit.php profile.
Go to your theme and search edit.php in members/single/profile folder. At line 136 you can see this:
<?php do_action( 'bp_custom_profile_edit_fields' ); ?>This the function which renders the plugin’s new files. Cut this line and paste at line 115. The code will look like this:
<?php do_action( 'bp_custom_profile_edit_fields' ); ?> <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <div class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </div> <?php endif ?>Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Age not formatted rightOk. I was going to say you to remove this…xD.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Age not formatted right😉
You welcome!Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Age not formatted rightNo problem, thanks for reporting issues.
We have just released version 1.4.4. I think it will solve your issue.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Age not formatted rightWe need to do some debug. Can you add this line of code in bp-xprofile-custom-fields-type.php line 381,382 you can see:
// Get children. $childs = $field->get_children();Below this line we must add this:
var_dump($childs);The code will look like this:
// Get children. $childs = $field->get_children(); var_dump($childs);Then reload the page where the age is supposed to be, copy and paste the code returned. It will look like this:
array
0 =>
object(stdClass)[4113]
public ‘id’ => string ’63’ (length=2)
public ‘group_id’ => string ‘1’ (length=1)
public ‘parent_id’ => string ‘3’ (length=1)
public ‘type’ => string ‘birthdate_option’ (length=16)
public ‘name’ => string ‘show_age’ (length=8)
public ‘description’ => string ” (length=0)
public ‘is_required’ => string ‘0’ (length=1)
public ‘is_default_option’ => string ‘1’ (length=1)
public ‘field_order’ => string ‘0’ (length=1)
public ‘option_order’ => string ‘1’ (length=1)
public ‘order_by’ => string ” (length=0)
public ‘can_delete’ => string ‘1’ (length=1)Thanks!