benenoo
Forum Replies Created
-
Ok will ask to the hosting and tell you
Thanks, but this code give me error blank page
Hello, thanks very much works well ??
- This reply was modified 2 years, 5 months ago by benenoo.
Thanks for this code
add_action( 'um_after_profile_name_inline', 'um_after_profile_name_inline_custom', 10, 1 ); function um_after_profile_name_inline_custom( $args ) { if( !empty( um_user( 'profil_status' ) && um_user( 'profil_status' ) == "Professionnel" )) { $html = ob_get_contents(); ob_end_clean(); $html = str_replace( um_user( 'display_name' ), um_user( 'business_name' ), $html ); ob_start(); echo $html; } }
works well, what need to change for the profile search member list and online user
Thanks very much
- This reply was modified 2 years, 5 months ago by benenoo.
I try with this code, but this code display the field from profil_statut and not the display_nane or business_name
$name = um_user( 'profil_statut' ); if( !empty( um_user( 'profil_statut' ) && um_user( 'profil_statut' ) == "Professionnel" )) { $html = ob_get_contents(); ob_end_clean(); $html = str_replace( um_user( 'display_name' ), um_user( 'business_name' ), $html ); ob_start(); echo $html;
One thing again, if I want this code for the free plugin online user, what is the code ?and where add it ?
Thanks again ??
Thanks very much ??
works well
MichelHello, I try with this code but doesnt works :
<?php } if( $profil_statut == "Professionnel"){ um_user( 'display_username' ); } else { um_user( 'display_name' ); } ?>
Thanks ??
OK, thanks very much
Hello, thanks
Business_yes is radiobox
working well with dropdown but not with radiobox
Thanks for your help
Michel- This reply was modified 2 years, 7 months ago by benenoo.
Hello and thanks, but this code show me error and broke my website.
add_action('wp_head',function(){ if(um_is_core_page('user')){ $profile_id = um_profile_id(); $business_name = get_user_meta( $profile_id,'business_name',true); if( $business_name ){ <style> .my-profile-link-class { display:inlin-block; } .edit-my-profile-link-class { display:inline-block; } .register-profile-link-class { display:inline-block; } </style> }else{ ?> <style> .my-profile-link-class { display:none; } .edit-my-profile-link-class { display:none; } .register-profile-link-class { display:none; } </style> <?php } } });
I try to do it with new code ( business_yes is radiobox ) and try to display if radiobox = Oui.
But doesnt worksadd_action('wp_head',function(){ if( um_is_core_page( 'activity') ){ $profile_id = um_profile_id(); $business_yes = get_user_meta( $profile_id, 'business_yes', true ); if( $business_yes == 'Oui'){ // first name was filled ?> <style> .link-element-class { display:none; } </style> <?php } } });
Thanks for your help
Michel
Hello, this code works well and where add code
else
( like if no filled ) inside it ?add_action('wp_head',function(){ if( um_is_core_page( 'user' ) ){ $profile_id = um_profile_id(); $business_name = get_user_meta( $profile_id, 'business_name', true ); if( $business_name){ // first name was filled ?> <style> .link-element-class { display:none; } </style> <?php } } });
Thanks
Michel- This reply was modified 2 years, 7 months ago by benenoo.
Thanks for your help ??
My code on widget is :
<div class=”link-element-class” style=”
display: none;
“>
<span style=”color:#fd620b; font-size: 15px; display: block; margin-top: 0px”>Créer un compte business </span></div>and add to function :
add_action('wp_head',function(){ if( um_is_core_page( 'user' ) ){ $profile_id = um_profile_id(); $business_name = get_user_meta( $profile_id, 'business_name', true ); if( $business_name){ // first name was filled ?> <style> .link-element-class { display:none; } </style> <?php } } });
Do you think is correct ?