Forum Replies Created
-
Oops, sorry, just saw that you want the option in addition to choosing an existing image.
So, I would do a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\change-cover-image.php
And offer them the option of choosing an existing image or upload their own.If they choose the latter – use the existing call:
bp_attachments_get_template_part( 'cover-images/index' );And for the former – call in your custom screen as I suggest above and adjust cover-image-header.php to load the appropriate image if that metadata exists for the member.
If you hook into the uploader, then you’ll be making a copy of an existing file every time a user chooses it, yes? You don’t want that.
imo…
You want to remove the existing cover image option.
You want to create a new tab on their profile and allow them to choose an image.
Then store their choice as meta data.
Then rework member-header template so that it loads their chosen image or shows a default one.In reply to: Syntax Question: bp_before_displayed_user_fullnameI don’t see that hook in
member-header.phpYou can create a template overload of that file and add what you need directly to the template.
>Do plugins and themes create custom hooks
Yes.
In reply to: Buddypress activity ID’sThere is no such parameter called
activity_group id.
You probably wantobject = 'groups'andaction = 'updates'. Or perhapsscope.
http://hookr.io/functions/bp_has_activities/In reply to: Forums: 500 ErrorYou have a better of getting a answer on the bbPress forums.
In reply to: error (array was modified…)You probably need to adjust your php.ini file.
This isn’t a BP setting.
Talk to your hosting provider.In reply to: CSS help for Groups Page, please, please!For the text, look at this file:
buddypress\bp-templates\bp-legacy\buddypress\groups\single\cover-image-header.phpFor the nav, look at this file:
buddypress\bp-templates\bp-legacy\buddypress\groups\single\home.phpBut don’t change those files, make a copy in your theme, aka template overload.
In reply to: Syntax Question: bp_before_displayed_user_fullnameIn which file are you seeing
bp_before_displayed_user_fullname?It’s probably a wordpress do_action hook.
https://developer.wordpress.org/reference/functions/do_action/In reply to: bp_loggedin_user_domain logging me out??Cannot duplicate this issue.
And unless you are using a conditional to check if a person is viewing their own profile, you should be usingbp_displayed_user_link()instead.In reply to: Front end formBP does not provide that functionality out-of-the-box. But it can be extended to do so.
You will need to write some custom code.
Or there may be a plugin that does something close to what you need and you can adapt it.
Either way you’ll need to be able to write php code.
If you can’t write code, you can post a job listing here.In reply to: Hide Registration ButtonIt’s difficult to help you if we have to guess…
>The BuddyPress Login widget that I am using
Is it the one that comes with BP ? Or from some other plugin?
Url? Screenshot?
Right click on the register button and use your browser’s tools to find the css element for that button.
Then hide the button using the same approach as used in the solution link above.In reply to: Hide Registration ButtonSo you’re asking about a button that is not in the Login widget?
Exactly where is this register button?In reply to: Hide Registration ButtonIn reply to: error (array was modified…)bp_sort_by_keyis called in several places by BP. And may be called by some other plugin.
It’s impossible to tell which call is causing the issue.
And it may simply be caused by havingwp_debugturned on – and you’ll turn it off when you go live.
It’s just a warning and most likely not important.In reply to: How to use: wp_dequeue_scriptBP is a plugin, not a script. You can’t dequeue it.
You might be able to hack bp-loader.php to stop BP from autoloading all the BP files on your front page, but you’ll need to be experienced with php and BP.In reply to: Showing group admin in loopBy default, group admins and moderators are excluded from the loop unless you are on a group members page.
http://hookr.io/functions/bp_group_has_members/
So add the
exclude_admins_modsargument to your query and set it to0.In reply to: bp_activity_sent_mention_emailI cannot duplicate your issue using BP 2.7.4
Are you sure that the mentioned member has this option selected:
A member mentions you in an update using "@someuser"
on their.../settings/notifications/screen ?In reply to: Buddypress registration option pluginPlease use the support forum for that plugin –
https://wordpress.org/support/plugin/bp-registration-optionsIn reply to: Hide membersNo, just
$excluded_user='1, 23, 267';
And please use thecodebutton when posting code.In reply to: User Meta Output On Profile> Anywhere I went wrong?
Yeah, you didn’t read the codex page.
Try:
$staff = get_user_meta( bp_displayed_user_id(), 'staff', true ); if ( ! empty ( $staff ) ) echo $staff;In reply to: User Meta Output On ProfileDid you try using the meta function?
https://codex.wordpress.org/Function_Reference/get_user_metaAnd you don’t need
user_can.
Just request the meta and show if it exists.In reply to: [Resolved] Hide join button conditionallyAll filters need to return something.
Try:
function bp_remove_group_join_button( $button, $group ) { $member_type = xprofile_get_field_data( 'Member Type', bp_get_member_user_id()); if ( $member_type == 'Option 1' ) return ''; return $button; } add_filter( 'bp_get_group_join_button', 'bp_remove_group_join_button', 10, 2);Not activating the Groups and Messages components should not create an issue.
There is no need to delete those tables in the database – it does not help.Perhaps the issue is in your theme.
Have you tried testing with a WP theme like 2015? To see if register is still slow?In reply to: Displaying email address in profileIt works for me, there must me some other issue in your file.
In reply to: Displaying email address in profileWhat does your error.log say?
You might try using this hook instead:
bp_after_profile_field_content