-
shanebp replied to the topic problem in display order – bp_has_member in the forum How-to & Troubleshooting 10 years, 8 months ago
Yes, BP_User_Query now supports preserving the order the ‘user_ids’ parameter.
So if you’re using a function to collect member ids, take a look at
Note the last entry.
-
shanebp replied to the topic Override Xprofile Group Name with Field Value in the forum Creating & Extending 10 years, 8 months ago
>…not used on the profile group tabs when the user is editing their profile
Try using the ‘xprofile_filter_profile_group_tabs’ filter hook in
bp_profile_group_tabs() in
buddypressbp-xprofilebp-xprofile-template.php -
shanebp replied to the topic Xprofile Update keep the ID of field and children field in the forum How-to & Troubleshooting 10 years, 8 months ago
Don’t use ‘id’ in your plugin, use ‘field_id’ instead.
-
shanebp replied to the topic Editing Field error in the forum Creating & Extending 10 years, 8 months ago
>I think it occurs because the user can not see the hidden fields.
The field is not hidden.
It doesn’t exist in the form because you skipped it.
But it is included in the hidden input ‘field_ids’, near the bottom of the form.
BP will try to save it, based on the fields ids, but not find it and then throw the error.Instead of skipping, try…[Read more]
-
shanebp replied to the topic Optimising complex queries: piggyback in-built or write from scratch in the forum How-to & Troubleshooting 10 years, 8 months ago
I’d use the approach @boonebgorges suggests – a custom table with these fields:
-user_id unique
-long
-latThen you don’t need any joins.
>individual forum posts are geo-tagged
Based on where they were created or based on the existing geo-tag for the user?
If the former, you can add a column to the custom table.
If the latter, you’re good to… -
shanebp replied to the topic Using get_post_meta() in activity stream in the forum Creating & Extending 10 years, 8 months ago
@lonepalmus – let’s assume you’ve cleared all the am-I-a-dummy hints suggested so far.
The timing can be tricky on these things.
You might try changing the priority so that the function runs later.Once I had an issue including a thumbnail in an entry for the activity stream upon the creation of a cpt.
The solution was to save the cpt as a…[Read more] -
shanebp replied to the topic Optimising complex queries: piggyback in-built or write from scratch in the forum How-to & Troubleshooting 10 years, 8 months ago
>to use the normal bp loop functions to return all potential results regardless of location, and then write a PHP function to apply the radius test.
Don’t do that.
Use the radius, etc test first to gather matching user ids.
Then pass them to BP_User_Query, using the bp_pre_user_query_construct hook, so that you only have BP process the relevant…[Read more] -
shanebp replied to the topic Using get_post_meta() in activity stream in the forum Creating & Extending 10 years, 8 months ago
Are you sure the post meta exists?
And exists at the moment you are calling it?If your code is only a few lines, paste it here.
Otherwise make a gist.[ You have Site Tracking selected here: /wp-admin/options-general.php?page=bp-components ?]
-
shanebp replied to the topic Buddypress for students in the forum How-to & Troubleshooting 10 years, 8 months ago
Unless you have some other ideas for the site, you don’t need BP.
Google ‘WordPress booking scheduling calendar’.
There are several premium plugins that should do the task.
Maybe somebody else here can may a direct recommendation. -
shanebp replied to the topic member profile links broken in the forum How-to & Troubleshooting 10 years, 8 months ago
Links in members loop work properly here in Chrome and IE – was not logged in. -
shanebpdev updated the bp_notifications_add_notification page, on the BuddyPress Codex 10 years, 8 months ago
bp_notifications_add_notification() is used to insert new notifications into the database table $wpdb->bp_notifications.
Notifications were refactored to be a separate component for BP […] -
shanebp replied to the topic How do I use Buddypress xprofile fields inside bbPress? in the forum How-to & Troubleshooting 10 years, 8 months ago
You don’t have to add the do_action.
It already exists in the template file.Just :
– remove any changes you made to the template
– add the function I provided to your theme/functions.php
– make sure all quotes are single and straight, sometimes they are changed during copy / paste.I just did a test and it works fine.
-
shanebp replied to the topic stop public groups posting to the activity stream? in the forum How-to & Troubleshooting 10 years, 8 months ago
Template overloads
-
shanebp replied to the topic How do I use Buddypress xprofile fields inside bbPress? in the forum How-to & Troubleshooting 10 years, 8 months ago
Make sure that all quotes are not curved, as in
xprofile_get_field_data( ‘Location’
in the post above.
They should be straight, like the ones in the add_action in the post above. -
shanebp replied to the topic How do I use Buddypress xprofile fields inside bbPress? in the forum How-to & Troubleshooting 10 years, 8 months ago
Remove your changes.
Untested, but try this in your theme/functions.php
function bbp_add_xprofile_field() {
[Read more]
$user_location = xprofile_get_field_data( ‘Location’, bbp_get_reply_author_id() ) ;
if (strlen($user_location) > 0 )
echo 'Location: ' . $user_location;
}
add_action( 'bbp_theme_after_reply_author_details', … -
shanebp replied to the topic stop public groups posting to the activity stream? in the forum How-to & Troubleshooting 10 years, 8 months ago
> exclude creation of public groups and comments posted in them from displaying in the activity stream.
Changing to $hide_sitewide will prevent it from appearing anywhere ( including the group activity stream ) except the activity stream for the person who created the item.
You probably want items to appear in the group stream, so try this in…[Read more]
-
shanebp replied to the topic New to this, need some help please! in the forum How-to & Troubleshooting 10 years, 8 months ago
Just looked at your site.
All page url include ‘index.php’.I don’t know why, but suggest you do a search or ask on the WP forums.
You’re not the first to have this problem:
https://wordpress.org/search/remove+index.php+from+urls -
shanebp replied to the topic New to this, need some help please! in the forum How-to & Troubleshooting 10 years, 8 months ago
Permanently delete the Groups page – don’t just put it in the Trash.
Then go to /admin.php?page=bp-page-settings
And assign or create a new page for User GroupsIf that doesn’t work, then there is some other problem with either your BP or WP install.
-
shanebp replied to the topic New to this, need some help please! in the forum How-to & Troubleshooting 10 years, 8 months ago
The problem is the ‘index.php’ in your url.
On this screen: /wp-admin/options-permalink.php
Is ‘Post name’ selected?On this screen: wp-admin/options-general.php
what does WordPress Address (URL) say?
And Site Address (URL) say?Go to Pages > Groups and click edit.
If you see ‘index.php’ in the permalink, remove it. -
shanebp replied to the topic Is profile fields treated as posts ? in the forum How-to & Troubleshooting 10 years, 8 months ago
There are 4 tables related to xprofile. The table names all include _bp_xprofile.
If you’re looking at the correct database and cannot see them, then there is not much anyone can do to help you.
- Load More
@shanebp
Active 16 hours, 28 minutes ago