-
shanebp replied to the topic Need help identifying errors found in debug mode in the forum How-to & Troubleshooting 10 years, 6 months ago
Are you using a custom activation page?
>Notice: bp_setup_current_user was called incorrectly.
That can be a tricky one to solve. It means it was called too early in the load order.
>Fatal error: Call to undefined function bp_xprofile_create_field_type()
That means it was called before BP is loaded or is called on a non-BP page.
I suspect…[Read more]
-
shanebp replied to the topic [Resolved] How to hide more than one profile field? in the forum How-to & Troubleshooting 10 years, 6 months ago
Try:
while ( bp_profile_fields() ) : bp_the_profile_field();
if ( bp_get_the_profile_field_id() != 'ID # YOU WANT TO SKIP' && bp_get_the_profile_field_id() != 'ID # 2nd field YOU WANT TO SKIP' ) : -
shanebp replied to the topic Probleme using BP core functions in the forum Creating & Extending 10 years, 6 months ago
You’re probably calling the BP function before BP has loaded.
Read this: https://codex.buddypress.org/plugindev/checking-buddypress-is-active/There may be additional problems with your code including the issue raised by @henrywright
-
shanebp replied to the topic Display total number of contributors in the forum Installing BuddyPress 10 years, 6 months ago
@henrywright
Much better approach – thanks. -
shanebpdev updated the Members Loop page, on the BuddyPress Codex 10 years, 6 months ago
The site members loop can be used to output a list of users that are registered on your site.
Standard LoopAccepted Parameters
Thebp_has_members()
function will accept a number of parameters that will […] -
shanebp replied to the topic show profile data in specific groups in the forum How-to & Troubleshooting 10 years, 6 months ago
Try
if( bp_get_group_id() == 5 )
or
if( bp_get_group_id() == '5' )
-
shanebp replied to the topic Translation fails only at "Sitewide Activity" in the forum How-to & Troubleshooting 10 years, 6 months ago
Did you use poedit?
Did you include _x in Sources Keywords?
I don’t know why _x is used for ‘Sitewide Activity’.
You can see it in bp-activitybp-activity-loader.php ~L. 109 -
shanebp replied to the topic Language of Item-Nav in the forum How-to & Troubleshooting 10 years, 6 months ago
-
shanebp replied to the topic Filtering E-mail Message Content in the forum How-to & Troubleshooting 10 years, 6 months ago
Yes, the above is a rather awkward solution.
Just occurred to me that you could extract the info you need from the $settings_link arg passed by the $email_content filter hook to further query the database and/or rebuild $content – and so avoid filtering wp_mail
I think it would be a reasonable request that the
$email_content filter hook in…[Read more] -
shanebp replied to the topic Filtering E-mail Message Content in the forum How-to & Troubleshooting 10 years, 6 months ago
>adding the two on the end is useless
You can’t add new args to an apply_filters call.
You might try using the first filter in wp_mail()
https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/pluggable.php#L225And then use the ‘to’ value to query the database directly to retrieve the recip’s username.
Look at…[Read more] -
shanebp replied to the topic Programmatically assigning avatars to groups? in the forum How-to & Troubleshooting 10 years, 6 months ago
Group avatars are stored in /wp-content/uploads/group-avatars/[group_id]
So to ‘set’ each one, you have to mkdir, create file names, upload a full and & thumb version for each group. I’ve done it; it’s a pita.
Given that you’re always using the same avatar, filtering the function is easier and would be my choice.
-
shanebp replied to the topic Remove tabs and pages from BuddyPress profile in the forum How-to & Troubleshooting 10 years, 6 months ago
-
shanebp replied to the topic BuddyPress theme – Looking for ideas in the forum Requests & Feedback 10 years, 6 months ago
Nice.
There is definitely a need for BP Themes aka Template Packages.
When the upper right mobile-mode nav is clicked, the layout is rather awkward.
Please keep these forums informed of your progress.
This will be a premium theme?
There are some good testers here that might be willing to take a look: hnla, mercime -
shanebp replied to the topic [Resolved] Mobile Billing in the forum Creating & Extending 10 years, 6 months ago
Use init?
Maybe, I’m not sure when is_user_logged_in() first becomes available. -
shanebp replied to the topic [Resolved] Mobile Billing in the forum Creating & Extending 10 years, 6 months ago
minor point: why wait until template_redirect?
I believe that is called after all the content has been queried.
So maybe do it sooner?
I usually hook on ‘wp’ or ‘wp_loaded’. -
shanebp replied to the topic [Resolved] Group Members Listings: show user profiles? in the forum Showcase 10 years, 6 months ago
You may be interested in this premium plugin which allows you to select which profile fields appear in the listing for members in a group:
-
shanebp replied to the topic Rename "Groups" label on profile menu in the forum Creating & Extending 10 years, 6 months ago
Try this in bp-custom.php or your theme functions.php:
function jeff_change_buddypress_profile_tabs( $translated, $original_text, $domain ) {if ( 'buddypress' !== $domain ) {
return $translated;
}switch ( $original_text ) {
case 'Groups <span>%d</span>':
return 'Bongos <span>%d</span>';…[Read more] -
shanebp replied to the topic Creating xProfiles using functions.php in the forum Creating & Extending 10 years, 6 months ago
Are you sure group_id is being set?
Take another look at :
function xprofile_insert_field() in bp-xprofilebp-xprofile-functions.phpTry passing an array to $args for xprofile_insert_field
Like you did with xprofile_insert_field_group$args = your array;
xprofile_insert_field( $args );
-
shanebp replied to the topic Creating xProfiles using functions.php in the forum Creating & Extending 10 years, 6 months ago
Yes.
Start by taking a look at :function xprofile_insert_field() in bp-xprofilebp-xprofile-functions.php
-
shanebp replied to the topic How can one member block another member? in the forum How-to & Troubleshooting 10 years, 6 months ago
@henrywright Thank you.
- Load More
@shanebp
Active 9 hours, 26 minutes ago