-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 11 years, 7 months ago
Take a look at this example screen function from the BP Skeleton Component:
Instead of trying to re-use the
xprofile_screen_change_avatar, perhaps try creating your own using this as a guide. Boone Gorges looks after the BP…[Read more] -
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 11 years, 7 months ago
Can you try making a copy of
xprofile_screen_change_avatarin functions.php and renaming it tocustom_xprofile_screen_change_avatarThen try:
'screen_function' => 'custom_xprofile_screen_change_avatar', -
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 11 years, 7 months ago
In your
setup_custom_navfunction, instead of:'screen_function' => 'lf_screen_function',Maybe you can do this:
'screen_function' => 'xprofile_screen_change_avatar',And you won’t need your
lf_screen_function()function.I haven’t tested this, but don’t see why doing that isn’t possible.
-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 11 years, 7 months ago
@lflier that sounds like a good approach. The screen function will be already written for you and as you say, creating the new subnav and removing the unwanted one is easy enough.
-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 11 years, 7 months ago
Hi @josephfrio13yahoocom and @lflier
Component navigation is set-up in the component’s class. For example, the
setup_navmethod within theBP_Friends_Componentclass does this for the Friends component. See here for exactly how it’s done.To my knowledge, there is no easy way to move subnavs around.
-
Henry Wright replied to the topic Accordion-style messages in the forum Creating & Extending 11 years, 7 months ago
Hi @peipooh
You’ll need to use CSS or JavaScript to create the accordion effect. You could write that yourself or you could take the easier route and use a framework such as Bootstrap. Their collapse.js plugin is what you’d need to use.
-
Henry Wright replied to the topic [Resolved] Page not found error with buddypress in the forum How-to & Troubleshooting 11 years, 7 months ago
Do you have the BP pages created under Admin > Pages?
-
Henry Wright replied to the topic Hosting in the forum How-to & Troubleshooting 11 years, 7 months ago
Your community most probably won’t drain server resources (given it doesn’t grow) so perhaps look for a hosting package that offers good support and a good uptime guarantee. You won’t necessarily need the most powerful server (unless you’re allowing your users to do all kinds of photo editing or gaming etc).
-
Henry Wright replied to the topic Remove /members/ pages? in the forum How-to & Troubleshooting 11 years, 7 months ago
You’ll need
/members/username/messages/in order for private messages to work. You could disable the rest such as/members/username/settings/using a redirect function hooked to template_redirect -
Henry Wright replied to the topic users on the main website doesn't match my database in the forum Installing BuddyPress 11 years, 7 months ago
Could it be that unactivated users are showing up in your Admin panel?
-
Henry Wright replied to the topic adding / modifing the budypress member page links in the forum How-to & Troubleshooting 11 years, 7 months ago
Your code didn’t format very well above so here it is…
function bpfr_my_directory_setup_nav() {
echo '#main'; // link to what you want
}
add_action( 'bp_members_directory_member_types', 'bpfr_my_directory_setup_nav' );What are you trying to do?
-
Henry Wright replied to the topic Register Format and Avatar in the forum How-to & Troubleshooting 11 years, 7 months ago
@pietro_sferrino as a general guide to how templates work check out the BP Template Hierarchy
The template for the registration page would normally live here:
/your-theme/buddypress/members/index-register.phpYou can edit that file if one has been set up by Mingle but as I say, I’m not sure what Mingle does because it’s code isn’t available.
-
Henry Wright replied to the topic [Resolved] Restrict Certain Profile Fields to user AND certain role types. in the forum How-to & Troubleshooting 11 years, 7 months ago
Check out Roles and Capabilities. If your admin and custom roles share a common capability then you can distinguish these roles from the rest of the roles that don’t have that capability.
See
current_user_can() and user_can()You would use them like this:
if ( current_user_can( 'manage_options' ) ) {[Read more]
// The current user can manage options… -
Henry Wright replied to the topic Front End Profile Editing in the forum How-to & Troubleshooting 11 years, 7 months ago
Hi @paton400
This works great, but it also allows these user roles to read through other users private messages, change avatars, settings etc
If this applies to non-admin users such as contributors or subscribers, then this is a mighty big flaw. If that is happening due to the plugin then I’d expect the plugin author will want to know about it.…[Read more]
-
Henry Wright replied to the topic Register Format and Avatar in the forum How-to & Troubleshooting 11 years, 7 months ago
I notice you’re using Mingle. It’s a premium theme so I’m not sure how their templates are set-up. Have you tried asking on the theme’s support page?
-
Henry Wright replied to the topic [Resolved] /settings/profile is empty? in the forum How-to & Troubleshooting 11 years, 7 months ago
@godavid33 I remember when this was being worked on (JJJ’s project – see the GitHub repo for it here) – It wasn’t in core the last I checked but am somewhat out-of-touch so it may well have made it in.
Hopefully this helps.
-
Henry Wright replied to the topic Scroll down user profile page in the forum How-to & Troubleshooting 11 years, 7 months ago
‘whatever’ can be anything. I was using it as an example. In your case, it will be an image, or some text or anything. The key bit to understand is whichever page element you put
id='anchor'on is the page element that will appear at the top of your page, on page load. -
Henry Wright replied to the topic Scroll down user profile page in the forum How-to & Troubleshooting 11 years, 7 months ago
Try finding your
<body>tag in header.php then add an onload event attribute like this:<body onload=' location.href="#anchor" '>Then in your template:
<div id='anchor'>whatever</div>When the page loads ‘whatever’ will be at the top of your screen.
-
Henry Wright replied to the topic Scroll down user profile page in the forum How-to & Troubleshooting 11 years, 7 months ago
This will need JavaScript.
-
Henry Wright replied to the topic Confirm Email Address – Registration Form – HELP in the forum How-to & Troubleshooting 11 years, 8 months ago
This isn’t possible without adding some custom code and I’m not aware of a plugin that does this.
- Load More
@henrywright
Active 1 year, 10 months ago