Forum Replies Created
-
In reply to: Custom classes for profile pages, possible?
what Henry posted is correct way. scroll down to Add Classes By Filters
In reply to: avatar auto cropmoved this to its own thread, please refrain from posting new issues on other topics
In reply to: BuddyPress from developer's perspectiveFrom a developers perspective, BuddyPress gives you a large amount of functionality in what a social network is known to be. For FREE. The last bits that you need for a unique site/app/experience is up to you. BuddyPress even includes many APIs to add more functionality.
BuddyPress dropped theme dependency in version 1.7. The base templates that come with the plugin are generically a basic social network. This is just one example of how to use the core software on the front end.
Here is a perfect example of doing something besides a “dated social network” as you put it, and this was years ago, it’s a web based game with BuddyPress. http://www.bpinspire.com/zombies-vs-hippies
It is really a disservice to the contributors of this project when people post these rants. They work countless hours to give you something that is ridiculously feature rich. No one is ever going to develop for you a “magical just what you expect” social network for free.
If you think there are areas that need enhancement then help contribute to the project.
In reply to: BuddyPress Custom Nav and Page Templateshow for displayed user
remove that
In reply to: BuddyPress Custom Nav and Page Templateyou can create a plugin for you extra code or us bp-custom.php
https://codex.buddypress.org/plugindev/bp-custom-php/The contents of about.php go in the content function. There shouldn’t be a template file.
In reply to: Admins to create friendships between membersNo plugins for that specific function. Closest to that are plugins to add a default friend on sign up.
There is a function you can use as a basis to create this functionality.
friends_add_friend( $initiator_userid, $friend_userid, $force_accept = true );Buddy-default looks the same as bp-default but it’s stripped of BuddyPress template so the templates get loaded from new template compatibility. Only a theme getting template capability files will use ajax new posts notice.
In reply to: Custom classes for profile pages, possible?bp-custom.php goes in wp-content/plugins. If that file exists BuddyPress will load it. By using this file instead of function.php you will preserve your added code if you ever wish to change themes.
In reply to: BuddyPress Custom Nav and Page TemplateDo not use your own template files. Use plugins.php and hook your content.
function about_page() { add_action( 'bp_template_title', 'about_page_show_screen_title' ); add_action( 'bp_template_content', 'about_page_show_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function about_page_show_screen_title() { echo 'About Page'; } function about_page_show_screen_content() { echo 'the content of the page'; }You could try to use https://github.com/modemlooper/Buddy-Default
It’s the BP-default theme but it uses new bp-templates. You’ll have to change the parent: in style.css. Also, the template files in current BP are a bit different than the original bp-default.
In reply to: Notifications template missing in 2.0?buddypress/members/single/notifications
folder is missing?
In reply to: 2.0 no Extended profile tab under edit userYou should not use your super admin account for your profile on BuddyPress. Create a new administrator account for that and reserve the super admin for backend admin tasks only.
Load new doesn’t happen immediately, are you saying it doesn’t happen at all? Also, make sure it’s turned on in your BuddyPress settings
In reply to: How to allow group avatars, but not user avatarsEdit the template file bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php
remove the form upload code and replace text with info that avatar is served from elsewhere
In reply to: Hide profile fields from registration pageCreate profile field groups. Only the first group shows on the registration page.
In reply to: wp-admin/profile.php content in Buddypress ProfileMost plugins that add user fields are for the WordPress profile. The new Extended profile in the admin is for BuddyPress specific user information.
In reply to: function get_friend_user_ids() questionempty() can be true even when value is false.
You can also use these two function so you don’t have to edit templates.
function me_and_friends_filter_activity( $query ) { if ( empty( $query ) && empty( $_POST ) ) { $friends = friends_get_friend_user_ids( bp_loggedin_user_id() ); $friends[] = bp_loggedin_user_id(); $friends_and_me = implode( ',', (array) $friends ); $query = 'user_id=' . $friends_and_me ; } return $query; } add_filter( 'bp_ajax_querystring', 'me_and_friends_filter_activity', 999 ); function me_and_friends_filter_activity_ajax( $query ) { if ( empty( $query ) ) { $friends = friends_get_friend_user_ids( bp_loggedin_user_id() ); $friends[] = bp_loggedin_user_id(); $friends_and_me = implode( ',', (array) $friends ); $query .= 'user_id=' . $friends_and_me ; } return $query; } add_action( 'bp_legacy_theme_ajax_querystring', 'me_and_friends_filter_activity_ajax', 10);In reply to: Custom classes for profile pages, possible?try in bp-custom.php
In reply to: Latest Activity on Headerin
bp-templates/bp-legacy/buddypress/members/single/member-header.php
remove
<?php if ( bp_is_active( 'activity' ) ) : ?> <div id="latest-update"> <?php bp_activity_latest_update( bp_displayed_user_id() ); ?> </div> <?php endif; ?>In reply to: Why don't group comments show to non-users?I would deactivate and delete BuddyPress and then re download it and install. Deleting it doesn’t delete settings. Make sure all your BuddyPress plugins are deactivated first.
Having the site installed in a subfolder may be an issue as well.
In reply to: Why don't group comments show to non-users?BuddyPress plugin supplies the template files UNLESS the theme has included them. Only BuddyPress specific themes would include the files. That’s why I asked you to switch to Twenty Twelve so it would use the files from the BP plug folder.
It may be a plugin causing issue. You can deactivate plugins one by one and test each.
In reply to: Json api and buddypressread bottom of page
What version of BP are you on?
In reply to: Only Admin-Created User Groupsin the BuddyPress settings page there is an open to allow only Admins to create groups