Forum Replies Created
-
Hi. If it still an issue , I d recommend you to look at bp-xprofile-settings.php
function bp_xprofile_get_settings_fields( $args = '' ) { //if u have ome custom user roles you can simply filter here which groups to hide if(!current_user_can("owner")){ $query='5,6,4'; }else{ $query='1,3,4,5'; } // Parse the possible arguments. $r = bp_parse_args( $args, array( 'user_id' => bp_displayed_user_id(), 'profile_group_id' => false, 'hide_empty_groups' => false, 'hide_empty_fields' => false, 'fetch_fields' => true, 'fetch_field_data' => false, 'fetch_visibility_level' => true, 'exclude_groups' => $query, 'exclude_fields' => false ), 'xprofile_get_settings_fields' ); return bp_has_profile( $r ); }
Nice , Thanks. Actually i d like to change messaging logic a little bit. In case of writing to user a private message i d like not to create a new message thread object, but to search instead for existing message thread between me and the user. If there is one, send my message to that thread and open existing dialog. I ve researched send function and i came to conclusion ,that i must change the function.
I believe that wont hurt the logic.I m alomost sure. What d say other participants about my idea?@danbp, Thanks, actually I was already trying to search on this site some info earlier but my antivirus was banning it. )
oh,thanks,Henry. That mean , i can simply hook to these filters ?
I m kind of not pro in php (java coder) thats why i could have some misunderstanding for now)