-
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;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
Hi Ahmed
I want to show few specific users in the custom table. I tried users= shortcode, but didn’t work? what code to use? thx
Hi Ahmed,
Nice the new table and responsive parameter!
I think it would be useful to add the author content resume:
What do you think about?
Best Regards
the “name” shortcode seems to reveal the usernames too, i just wanted the display names or first/last names to be public, but the usernames are public too and that hurts user privacy.
Hi guys,
The template uses same principle of main members directory (width is 100% by default) of its CONTAINER.
@Ananya Zaman the display name can be revealed by using “display_name” as field instead of name. name is a clickable username with display name, but display_name is treated as custom field which stores the user display name only. Remember ANY custom field can be retrieved with the table fields.
See memberlist_table_columns= should be list of fields you want to include in table. default is: user_id,picture,name,country,gender,role,email_user,message_user
show_on_mobile option control the responsive fields it currently set to picture,name,country,email_user,message_user which means that only these fields can be displayed in MOBILE view. You can add more fields to make the table more responsive.
Thanks for verifying your purchase.
kumarv, The memberlist directory can show users based on Role, it does not support specific users by comma as of this moment.
This shortcodes take full width:
[userpro template=memberlist age_range=18,75 search_from_age=”Age from,dropdown” search_to_age=”Age to,dropdown” search_gender=”Gender,dropdown” search_country=”Country,dropdown”]But this shortcode not:
[userpro template=memberlist memberlist_table=1]Why?
Is there a way to add a follow button?
Also what if there is multiple options – i.e mine results in “array”
Third time.
This shortcodes take full width:
[userpro template=memberlist age_range=18,75 search_from_age=”Age from,dropdown” search_to_age=”Age to,dropdown” search_gender=”Gender,dropdown” search_country=”Country,dropdown”]But this shortcode not:
[userpro template=memberlist memberlist_table=1]Why?
You must be logged in to reply to this topic.