Forum Replies Created
-
In reply to: Members Directory
1) https://codex.buddypress.org/getting-started/configure-components/
3) is built in on members directory. Each profile item becames clickable by default, letting users find others having entered the same information.
Example:
User A = City -> New York (NY is clickable)
User B = City -> New York (NY is clickable)
User C = City -> San Francisco (SF is clickable)When user B click on NY he will see user A as search result
When user C click on SF he will only see himself4) He use the buddy menu. This menu can be installed by going to dashboard > apparence > menu. If BP menu is not in the left side, under the other menus, open the screen option (top right corner) and check BuddyPress. Now you can set your BP menu like any other WordPress menu.
https://codex.wordpress.org/WordPress_Menu_User_GuideWhen you’re new to something, you must read the documentation first. Also before asking on a help forum, you must search if your question wasn’t already asked and answered.
Happy install ! ๐
In reply to: user activity stream show allIn reply to: Site Activity StreamAdd custom filters to loops and enjoy them within your plugin
Code is poetry, other days it’s just reading ๐
Please use the code button to insert code in a topic. Thank you !
Give this a try
// deny access to admins profile. User is redirected to the homepage function bpfr_hide_admins_profile() { global $bp; if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_admins_profile', 1 ); // Remove admin from the member directory function bpdev_exclude_users($qs=false,$object=false){ $excluded_user='1'; // Id's to remove, separated by comma if($object != 'members' && $object != 'friends')// hide admin to members & friends return $qs; $args=wp_parse_args($qs); if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])) $args['exclude'] = $args['exclude'].','.$excluded_user; else $args['exclude'] = $excluded_user; $qs = build_query($args); return $qs; } add_action('bp_ajax_querystring','bpdev_exclude_users',20,2); // once admin is removed, we must recount the members ! function bpfr_hide_get_total_filter($count){ return $count-1; } add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter'); // hide admin's activities from all activity feeds function bpfr_hide_admin_activity( $a, $activities ) { // ... but allow admin to see his activities! if ( is_site_admin() ) return $activities; foreach ( $activities->activities as $key => $activity ) { // ID's to exclude, separated by commas. ID 1 is always the superadmin if ( $activity->user_id == 1 ) { unset( $activities->activities[$key] ); $activities->activity_count = $activities->activity_count-1; $activities->total_activity_count = $activities->total_activity_count-1; $activities->pag_num = $activities->pag_num -1; } } // Renumber the array keys to account for missing items $activities_new = array_values( $activities->activities ); $activities->activities = $activities_new; return $activities; } add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );In reply to: BuddyPress directory structureBuddyPress seems not be activated !
All BP related links (activity stream, members, groups….) are in a menu bar, but with wrong URL’s
freefish.org/freefish-org/index.php/directory/
freefish.org/freefish-org/index.php/groups/
etcUser related items like activity, View profile are also wrong
view profile: freefish.org/freefish-org/index.php/myaccount/
activity : freefish.org/freefish-org/?page_id=13Read and follow Codex instructions !
In reply to: wp-admin blank pageIn reply to: How to display notifications for group pluginsPlease use the code button when you insert snippets. Be also carefull with quote typo, found some mixed curly and straight cotes.
In reply to: Scroll down user profile page 2https://codex.wordpress.org/WordPress_Menu_User_Guide
As part of a wordpress plugin, BP menu use the same technique.In reply to: Groups: new user notificationIf you use buddyblog, ask the author for any compat issue.
Or activate the new “old” plugin and test. I’ll be fixed immediatly.
In reply to: How to disable thumbnail of activity blog post?In reply to: Scroll down user profile page 2it’s writen in the topic you mention: members-loop.php
You’re using old code (bp 1.8).
See function groups_action_create_group() in bp-group/bp-groups-action.php
In reply to: How to change text in Actvity Stream?In reply to: BP conflict with other pluginshi @gatera,
It’s only a PHP notice, and harmless in regard of a PHP Warning message. Apparently, your plugin is not completely compatible with BuddyPress or at least called to early or something like that.
You must debug your install.
https://codex.wordpress.org/Debugging_in_WordPressMore about bp_setup_current_user function
https://buddypress.org/support/topic/debug-error-bp_setup_current_user-was-called-incorrectly/?view=all#post-186116
https://buddypress.trac.wordpress.org/ticket/4830File ref: buddypress/bp-core/bp-core-dependency.php
Documented function: http://oik-plugins.eu/buddypress-a2z/oik_api/bp_setup_current_user/In reply to: Groups: new user notificationI donโt find the link that you wrote me.
Seriously ?
In reply to: Profile Dashboard URL?i would suggest to track down your install first, before trying to ignore a setting error by adding a workaround.
With a correct BuddyPress setup, the top right menu (under Howdy) contains any links you need to your profile, groups, notifications, etc
What i see on your site is a profile link (aside forum button) who leads to what is normally the members directory.
Check your BP components and give each activated one his own page. This is mandatory to get BP to work correctly.
Check also for the BuddyPres menu if you want to use it with your theme
dashboard > apparence > menu and activate “buddypress menu” in the screen options (top right corner when on the Menu admin page) if you don’t see it in the left column of this page.Finally make a test with one of WP’s theme before activating Dynamic New.
In reply to: Default TAB on Group Activity
http://stackoverflow.com/questions/21229140/buddypress-group-activity-loop-filter-activity-type
Search also for bp_parse_args on the codex.@bphelp, thank you for your comprehensive advice, but it’s already sticky in “When asking for support”… So i’m affraid that a bit of exasperation will sometimes continue to appear in one or other topic. Sorry for that, i’m not a machine. ๐
In reply to: Groups: new user notificationdid you searched the forum before asking ?
No…https://buddypress.org/support/topic/which-plugin-for-groups-activities-notifications/
In reply to: Default TAB on Group Activityhi @zydarek,
did you searched the forum before asking ?
No…hi @roddaut,
don’t thought to much, a theme can influence over all a site, including the admin. This happens in 90% of the issues handled on this forum.
Thought the latest Canvas was 2014.10.14 – version 5.8.5
Introduced since 2.0, see bp_parse_args on the codex. It’s explained in deep how to filter templates. Then surch using same keyword or $retval on the forum. The’re several topics containing snippets to achieve that.
In reply to: Hide/Show content if is my friend or noa custom condition on the cart template ? Hum…. i don’t know that theme/plugin, but usually, an if statement is enough.
Something like:
if ( bp_is_user() && ! friends_check_friendship( bp_displayed_user_id(), bp_loggedin_user_id() ) )I would suggest you ask also on the Woocommerce support.
In reply to: Buddypress Profile Picture cropping tool brokenhi @nickfisher,
It worked well for the first few weeks of use but since this morning it hasnโt been.
That’s because the breakfast coffee was too cold. ๐ What have you done before “this morning” ?
I suggest to review your install, as at the moment, nore the Members or the Groups button are working.
Their URL is correct: http://community.yourfreedomtrain.com/groups/, but loose the directory on click. Do you use a redirection plugin or script ?Deactivate all plugins (jetpack,etc) while testing BP/WP. The couple should work properly before adding other tools.
You’re using a subdomain for BP. This can, so far i remember, only be done if WorPress is multisite configured. Is that the case ?
If yes, have you followed those install instruction ?
https://codex.buddypress.org/getting-started/setting-up-a-new-installation/install-buddypress-on-a-secondary-blog/
Has the htaccess file the correct requests for such a configuration ?Otherwhise, prefer a standard install and use a directory for BP instead.
yourfreedomtrain.com/community/Check that all of your active BP components have their own page.
Enable pretty permalinks.
De nada ! ๐
In reply to: Hide/Show content if is my friend or noWhere should this happen ?