> Do you think you could tell me where exactly I should paste the code?
No. We don’t know what you’re trying to do.
But you definitely don’t want to paste it into a template.
You want to put it in theme functions.php or bp-custom.php
Maybe you want to run it once to handle existing users.
Maybe you want to run it in certain situations, for example on new registers:
function make_user_active( $user_id ) {
bp_update_user_last_activity( $user_id );
}
add_action ('user_register', 'make_user_active', 1, 11);
I want buddy press members directory to show all the users that have registered with my website, not only the recently active ones and I want buddy press to remember this setting for all my future users without them needing to log in again after registration in order to become active.
I use custom community theme, bp. 2.0 and wp. 3.9
i just found theme functions. php folder but dont know where to paste the code ( i suppose the second one in your previous message but please confirm)