Forum Replies Created
-
i resolved it by using this:
case ‘rating_photo’:
if ( in_array($col, $show_on_mobile)) {$mobile = ‘show-on-mobile’;} else {$mobile = ‘hide-on-mobile’;}
$output .= ‘<td class=”‘.$col.’ ‘.$mobile.'”>’;
if ( userpro_field_is_viewable(‘rating_photo’, $user_id, $args) ) $output .= ‘‘;
$output .= ‘</td>’;thanks
in reply to: v1.0.82: A New Users Table Template! Check it!i also added in this to show col content
case ‘rating_photo’:
if ( in_array($col, $show_on_mobile)) {$mobile = ‘show-on-mobile’;} else {$mobile = ‘hide-on-mobile’;}
$col_content .= ‘<th class=”‘.$mobile.'”>’.__(‘Rating’,’userpro’).'</th>’;
break;in reply to: v1.0.82: A New Users Table Template! Check it!Hi there
I want to add a custom photo in table. I added in this code in api.php but not working, pls. advise.
case ‘rating_photo’:
if ( in_array($col, $show_on_mobile)) {$mobile = ‘show-on-mobile’;} else {$mobile = ‘hide-on-mobile’;}
$output .= ‘<td class=”‘.$col.’ ‘.$mobile.'”>’;
if ( userpro_field_is_viewable(‘rating_photo’, $user_id, $args) ) $output .= ‘” class=”userpro-list-item-rp”/>’;
$output .= ‘</td>’;
break;in reply to: v1.0.82: A New Users Table Template! Check it!Can we have social icons in the users table? Thx.
in reply to: New Update Available – v1.0.82I uploaded custom badge in the directory and it is showing well. However on pagespeed analysis I get the message that image dimensions of these badges are NOT specified. These are 18×18. I don’t know how to add the width and height to these pictures
in reply to: image dimensionI found that wordpress has this code to sort search results by custom field. Not sure though, how to apply in case of Userpro. Pls. advise.
‘post_type’ => ‘my_custom_post_type’,
‘meta_key’ => ‘age’,
‘orderby’ => ‘meta_value_num’,
‘order’ => ‘DESC’,in reply to: sort memberlist by custom fieldNot really. I want to sort search results by custom numeric field. I understand WordPress has option to sort by Meta key by inserting meta value. Can you advise the code for Memberlist sortby option? Thanks.
in reply to: sort memberlist by custom fieldthanks. i have done it and it worked.
<div class=”userpro-list-item-rp” data-key=”rating_photo”>
” />
</div>now i am facing another interesting issue. The custom photo added above is visible when i login as admin. However when no login, this does not show? any reason?
in reply to: include_fields in Listthanks. i added <?php echo userpro_profile_data(‘rating_photo’, $user_id);?> in list.php to show value of custom picture field rating_photo but the page is showing link to image and not actual image. thanks again.
in reply to: include_fields in Listthanks. I found list.php:line 28:
permalink( $user_id ); ?>” class=”userpro-list-item-name” title=”<?php _e(‘View Profile’,’userpro’); ?>”><?php echo userpro_profile_data(‘display_name’, $user_id); ?><?php echo userpro_show_badges( $user_id ); ?>
Don’t know what to do to show custom field in List Template. Sorry, pls. help
in reply to: include_fields in ListDone. Finally profile is updated. Code saved. Can you help me with requested shortcode?
in reply to: Compact Listi have tried 5 times, it did not save the purchase code. i sent code to your email. Pls. add in my profile.
in reply to: Compact ListSame here. Can’t verify and save changes
in reply to: [Resolved] Cannot update profiledone. pls. advise help on short code.
in reply to: Compact List