-
shanebp replied to the topic Member Directory – how to add spacing between User Profile fields? in the forum How-to & Troubleshooting 10 years, 9 months ago
$str =
bp_get_member_profile_data('field=TestA') . ' ' .
bp_get_member_profile_data('field=TestB') . '<br>' .
bp_get_member_profile_data('field=TestC');echo $str;
-
shanebp replied to the topic Stray line of code in profile header in the forum Showcase 10 years, 9 months ago
Are you using the Easy Facebook Share Thumbnail plugin ?
Recently had the same issue, but didn’t try to solve it – just deactivated it.
-
shanebp replied to the topic When Attempting to Make a Post (attempt to access files in /wp-admin/ ?) in the forum How-to & Troubleshooting 10 years, 9 months ago
Probably related to ajax and/or js in /wp-admin/ and/or /wp-admin/includes/
You may have more luck asking on bbpress.org/forums/
-
shanebp replied to the topic bbPress forum posts not appearing in activity stream in the forum How-to & Troubleshooting 10 years, 9 months ago
Using some custom sql is probably the simplest approach for gathering old entries.
But if it’s in the activity stream, those entries should be pushed off the first page very soon so perhaps you can justify not bothering ? π
-
shanebp replied to the topic user init errors with bp_setup_current_user & bbp_setup_current_user in the forum How-to & Troubleshooting 10 years, 9 months ago
4 times – yikes.
That suggests maybe 4 plugins are calling bp_setup_current_user too soon.
Or …Do any of your plugins create widgets? Might explain the multiple calls.
Instead of deactivating plugins one at a time, have you tried greping the plugins folder for bp_setup_current_user ?
If you find it, check to see which hook is calling…[Read more]
-
shanebp replied to the topic user init errors with bp_setup_current_user & bbp_setup_current_user in the forum How-to & Troubleshooting 10 years, 9 months ago
It probably is in a plugin.
Hopefully BP and bbpress are not throwing that warning.
You could try setting debug to true in wp-config.
And then go to the dashboard and see if the warnings continue.
Then deactivate the plugins one at a time to narrow it down.> repeated thousands of times
Per what? Each load or over a large time period? -
shanebp replied to the topic scalablity of buddypress in the forum How-to & Troubleshooting 10 years, 10 months ago
>100k concurrent user order
That will be more about the setup & tuning of your servers.
BP does a lot of caching and there are plugins like w3totalcache that help alot.
But you can’t cache BP pages without serving stale content.>a large number of groups
A large number of members in a single group won’t be as much of an issue as a large…[Read more] -
shanebp replied to the topic scalablity of buddypress in the forum How-to & Troubleshooting 10 years, 10 months ago
What do you consider ‘really large’ ?
It is scalable.
A lot depends on your ability as a sysadmin. -
shanebp replied to the topic Username Error in the forum Installing BuddyPress 10 years, 10 months ago
Exactly what error message are they getting?
Are the errors coming from the WP fields – Username
Or the BP field – NameWhat names are they trying to use?
BP gives specific errors re usernames, such as ‘Username must be at least 4 characters’.
WP has its own restrictions, I think allowed chars are [a-z] and [1-0].
You should also provide…[Read more]
-
shanebp replied to the topic 404 error on request membership for private group in bp 1.8.1 in the forum How-to & Troubleshooting 10 years, 10 months ago
Thanks.
I have not tested your fix, but I did update & reopen the ticket. -
shanebp replied to the topic Custom Sort of Group Members in the forum Creating & Extending 10 years, 10 months ago
The example on the codex page uses this hook: bp_before_directory_members
So you shouldn’t see it on a group members page.
From the codex page:
“It will not affect the display of members on pages like …/groups/some-group/members/ or in widgets, etc.”It’s a bit complex the first time you use member query hooks, but they are extremely useful.
-
shanebp replied to the topic Custom Sort of Group Members in the forum Creating & Extending 10 years, 10 months ago
When Boone says manually, he means use this hook…
do_action_ref_array( 'bp_pre_user_query', array( &$this ) );
…to call a function that you write that adjusts the ‘order’ and/or ‘orderby’ clauses.
So now you have two paths for adjusting sort π
No need to edit core files. -
shanebp replied to the topic Custom Sort of Group Members in the forum Creating & Extending 10 years, 10 months ago
@dimensionmedia
>those examples and hooks donβt apply to group member pagesYes they do.
BP_Group_Member_Query extends BP_User_QueryFor example, say a member with id=2 belongs to a group.
You can leave them on the main Members page but remove them from the group members page like so:function group_exclude_two( $query_array ) {
[Read more]
$… -
shanebp replied to the topic Custom Sort of Group Members in the forum Creating & Extending 10 years, 10 months ago
You don’t say if you’re doing this on a group page.
Assuming you are…Find a hook prior to output of group users.
Hook a function that contains your custom sql.
Take a look at using the bp_pre_user_query_construct hook and ‘Preserve the Order’ here:
https://codex.buddypress.org/developer/bp_user_query/#code-examples -
shanebp replied to the topic Just Need a Little Advise in the forum Requests & Feedback 10 years, 10 months ago
-
shanebp replied to the topic Just Need a Little Advise in the forum Requests & Feedback 10 years, 10 months ago
> I do want restricted access… for a section of my site
So for area ‘x’ you want to restrict access to logged-in members?
What is area ‘x’?
What should happen when a non-logged-in person goes there?
Redirect? Membership prompt? -
shanebp replied to the topic Getting group name from id in the forum How-to & Troubleshooting 10 years, 10 months ago
Try this:
$group_ids = groups_get_user_groups( bp_loggedin_user_id() );
var_dump( $group_ids["groups"] );
foreach( $group_ids["groups"] as $id ) {
$group = groups_get_group( array( 'group_id' => $id) );
echo '<pre>';
var_dump( $group );
echo '</pre>';
} -
shanebp replied to the topic Customising default member avatar – Gravatar bug? in the forum Creating & Extending 10 years, 10 months ago
There are some resources re disabling gravatars in BP.
Here’s one, untested by me but at least will give you hints:
http://bp-tricks.com/snippets/completely-disable-the-use-of-gravatars-on-your-buddypress-site/ -
shanebp replied to the topic Hiding Activity Feed/Members from non-members. in the forum How-to & Troubleshooting 10 years, 10 months ago
You want to hide the listing of members on the Members page from everybody?
Logged or not?Either way, it’s not something you want to do with css.
-
shanebp replied to the topic How to make 'forum' the default view for BuddyPress group in the forum How-to & Troubleshooting 10 years, 10 months ago
Also make sure that your single forum slug is ‘forum’
The settings are in Dashboard > Settings > Forums > Single Forum Slugs > Forum.If it isn’t ‘forum’, before changing the slug, trying changing your ‘define’ to use your current slug.
- Load More
@shanebp
Active 20 hours, 15 minutes ago