donmik
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Set default on datepickerI tried it and it works for me. Can I see your web ?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hook into Registration formNo problem! I’m glad to read this!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Set default on datepickerYou need to use this format:
date('Y-m-d')Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Set default on datepickerReplace the code below of bxcft_edit_render_new_xprofile_field function:
elseif ( bp_get_the_profile_field_type() == 'datepicker' ) { ?> <div class="input-web"> <label class="label-form <?php if ( bp_get_the_profile_field_is_required() ) : ?>required<?php endif; ?>" for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) { echo __('*', 'bxcft'); } ?></label> <input type="date" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true" required="required"<?php endif; ?> class="input" value="<?php bp_the_profile_field_edit_value() ?>" /> </div> <?php }By this code:
elseif ( bp_get_the_profile_field_type() == 'datepicker' ) { if (bp_get_the_profile_field_edit_value() != '') $value = bp_get_the_profile_field_edit_value(); else $value = 'put your default date here'; ?> <div class="input-web"> <label class="label-form <?php if ( bp_get_the_profile_field_is_required() ) : ?>required<?php endif; ?>" for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) { echo __('*', 'bxcft'); } ?></label> <input type="date" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true" required="required"<?php endif; ?> class="input" value="<?php echo $value; ?>" /> </div> <?php }Tell me if this works.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Set default on datepickerIt’s already set to current date or you are saying you want to put current date by default in field ? You cannot remove the day from a datepicker, it’s a html5 field.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] imageHi,
Sorry for the delay, in version 1.5 you can create image field so I hope you like this!
Hi,
You can modify function: bxcft_edit_render_new_xprofile_field put this code:
if (bp_displayed_user_id() == 'xxx') { disable the field or hide the form field. }You can disable the field you want, or just hide it, don’t write html and that’s all.
You need to go to bp-xprofile-custom-fields-type.php of my plugin, you need to change two functions: bxcft_get_field_data and bxcft_get_field_value. Search for:
elseif ($field->type == 'web') { if (strpos($value, 'href=') === false) { $value = str_replace("<p>", "", $value); $value = str_replace("</p>", "", $value); return '<p><a href="'.$value.'">'.$value.'</a></p>'; } }and
elseif ($type == 'web') { if (strpos($value, 'href=') === false) { $value = str_replace("<p>", "", $value); $value = str_replace("</p>", "", $value); return '<p><a href="'.$value.'">'.$value.'</a></p>'; } }You can put there the target=”_blank”.
Are you sure, this plugin is causing this error? Do you try to deactivate the plugin and see ?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Custom Post Type ErrorSorry for the delay, I was working on a new version. Try it, I’ve been working on warnings and notices.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Custom Post Type ErrorI mark this topic as solved, we continue in the other topic.
I mark this as solved.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hook into Registration formI mark this as solved
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Check Box for terms & conditionSorry for the delay, in version 1.5 I have added a checkbox acceptance for terms and condition, an image field and a file field. I hope this helps you.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Get posts by xprofile fieldOk, I think this is solved now…