donmik
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] links turn offI think to turn the automatic links off you need to do this: Read this post
I’ve tried and if you put this code in your functions.php it will work:
remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9);Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hide year of birthBut $value is empty? Can you check if $value is empty? To know this, you can put this code in my plugin
Before line 459, this line:
return '<p>'.date_i18n(get_option('date_format') ,strtotime($value) ).'</p>';Write:
var_dump($value)And do the same before line 567:
return '<p>'.date_i18n(get_option('date_format') ,strtotime($value) ).'</p>';Write:
var_dump($value)Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] links turn offSorry, but I’m not sure I understand what do you want to do. Can you explain a little more, please?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hide year of birthMmmm, I think then there is an error when saving the birthdate. Can you check if “$value” is empty? If it’s empty, it must be showing april 13, today date.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hide year of birthIf you want to show the year also you need to modify the date format:
return '<p>'.date_i18n( 'F j' , strtotime($value) ).'</p>';Change “F j” with the format you want, you can see how to customize here.
If you want the year, write this: “F j Y”.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image in profileYou’re welcome 😉
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Move the asterisk in 'Birthdate'Great! Thanks!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image in profileI’ve just uploaded a new version of the plugin 1.5.1 with this issue solved I think. Try it ant tell if it works now.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Move the asterisk in 'Birthdate'Sorry, it’s my fault:
echo '<span class="the_name_of_your_class">'.__('*', 'bxcft').'</span>';Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Move the asterisk in 'Birthdate'Of course you can replace this:
echo __('*', 'bxcft')With this:
echo '<span class="the_name_of_your_class">__('*', 'bxcft')</span>Then in you css you can use this class to apply styles to * only.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hide year of birthThe functions.php in your theme is the right file yes. If it works in other file it should work here also.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Set default on datepickerAnd how do you get it to work ? It will be helpful to know if anyone has the same problem in the future.
Thanks!
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image in profileHi,
Have you changed the upload dir in my plugin ? By default, it must put images in wp-content/uploads/profiles/….. but maybe you have another filter which is changing this…
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Move the asterisk in 'Birthdate'To do this you need to change code in bxcft_edit_render_new_xprofile_field function of my plugin. For birthdate, it’s at the beginning of the function, replace this:
<label class="label-form <?php if ( bp_get_the_profile_field_is_required() ) : ?>required<?php endif; ?>" for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) { echo __('*', 'bxcft'); } ?></label>with this:
<label class="label-form <?php if ( bp_get_the_profile_field_is_required() ) : ?>required<?php endif; ?>" for="<?php bp_the_profile_field_input_name(); ?>_day"><?php if ( bp_get_the_profile_field_is_required() ) { echo __('*', 'bxcft'); } ?> <?php bp_the_profile_field_name(); ?></label>Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hide year of birthIt’s weird it does not work in your functions.php. If you put this in the bp-xprofile-functions.php and you update buddypress you will lose your code…