bijaysharma
Forum Replies Created
-
instead of username I want there to be phone number and password to login.
hello @champsupertramp
Is there a way or code for individual organizations to download his members in CSV?
Hi @champsupertramp
It worked.. Thanks…Hi @champsupertramp
It won’t work as after activating my site always goes to technical issue and I have to delete this plugin to exit recovery mode of WordPress.hello @champsupertramp
One more help please…
Which plugin to use to insert above codes. Because after the theme gets updated all the extra codes gets erased from function.php
Hello @champsupertramp
Thanks Again for your help. Without your help my problem would not have been solved.
I have added the following code only, in function.php
add_action('pre_user_query', 'um_010422_show_referred_members', 999999 ); function um_010422_show_referred_members( $user_query ) { global $pagenow, $wpdb; if (is_admin() && 'users.php' == $pagenow && ! current_user_can("manage_options") ) { $user_query->query_where .= " AND umf.meta_key = 'um_referred_by_id' AND umf.meta_value = ".get_current_user_id()." "; $user_query->query_from .= " INNER JOIN {$wpdb->usermeta} as umf ON ( {$wpdb->users}.ID = umf.user_id )"; // additional joins here } }
Do i need to add more?
also you mentioned about user meta . How do i know that?
hello @champsupertramp
still not workinghello @champsupertramp
thanks for quick reply, but its not working..
hello @champsupertramp
Please help me….
hello @champsupertramp
Your given code was working absolutely perfect until today. Today when I logged in as an organization, I was unable to see any members added by me, nor any of the individual organization could see their own members. For the administrator, it’s working fine. Please help me with it…..
hello @champsupertramp
Thanks a lot for your help. It worked
For Organization its working perfect but I want Administrator to view all the members. Could you please do some changes in the above code so that administrator can also see all the added members by different organizations. Administrator should not be restricted by viewing anything.
yes, because I have given access of backend to organization so that he can add and see the list his members