Is There A List Of What Buddypress Template Files Go Where And What They’re To Be Renamed?

This answer is for Buddypress 1.7. No idea how much of it, if any, still applies to the current version (2.8+) Here’s an as of yet incomplete listing of what files go where. I’ll update it as I get more into theming buddypress sites. The official ‘hints’ page can be found here.. https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/ If you … Read more

Target “admins” with different styles on the front end [closed]

There are a couple of ways to do this: With template overloads Overload these files: \bp-templates\bp-legacy\buddypress\members\single\profile\edit.php \bp-templates\bp-legacy\buddypress\members\single\profile\change-avatar At the top of the overload, do a current_user_can() check and then do or don’t show the rest of the template. Filter the button creation based on a current_user_can() check. See the filter in bp_get_displayed_user_nav() in ‘bp-members\bp-members-template.php’

Set maximum number of letters limit on xprofile fields [closed]

Try this code, if it will helps: function filtered_profile_data( $args ) { $data = bp_get_member_profile_data( $args ); $defaults = array( ‘field’ => false, // Field name ‘user_id’ => $user_id ); $r = wp_parse_args( $args, $defaults ); extract( $r, EXTR_SKIP ); switch($field) { case ‘Field Name’: // for specific field character limit $max_len = 10; break; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)