Forum Replies Created
-
In reply to: child theme functions.php
The step there isn’t really clear.
By renaming functions, what the codex article means is renaming the function name and not the filename.
Continue using /wp-content/themes/YOUR-THEME/functions.php. Just try to prefix your function names in this file.
eg.
`
// bad
function do_crazy_stuff() {}`
`// better
function my_theme_do_crazy_stuff() {}
`In reply to: Need original WordPress Registration page back@snowlas – Sorry! I didn’t test that snippet.
I just tested this and it will work:
`
/**
* Removes BP’s redirect from the regular WP registration page.
*/
function my_remove_bp_register_redirect() {
remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
}
add_action( ‘bp_loaded’, ‘my_remove_bp_register_redirect’ );
`Snippet belongs in `/wp-content/plugins/bp-custom.php`.
I took a look at bbPress last night to see what it was doing differently.
Note: this is becoming more into a dev discussion than anything so bear with me!
bbPress does things differently in `bbp_template_include_theme_supports()` compared to BP in `bp_template_include_theme_supports()`.
bbPress:
`https://bbpress.trac.wordpress.org/browser/tags/2.1.2/bbp-includes/bbp-template-loader.php#L13`BuddyPress (trunk):
`https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-template-loader.php#L236`We could probably mirror the same changes as bbPress by adding the page conditionals in `bp_template_include_theme_supports()` like bbPress does.
What do you think, @djpaul @johnjamesjacoby ?
Update: Just read through the dev chat and it looks like Paul is already working on something!
or am I over thinking this?
Hugo, my answer was towards Roger’s question about having different areas on the external page template based on his requirements. It’s not meant to be a page router for everything as BP already does that.
Example: Like Roger, I want to have a sidebar on member profile pages only.
I don’t want to let BuddyPress use the `page.php` template as a default, so I’ll create a template file called `plugin-buddypress.php`.
BuddyPress will use `plugin-buddypress.php` instead of `page.php` for the skeleton. Like `page.php`, this new template file will need to include “ somewhere in the template as that is what BP looks for to inject our content.
Now, I only want to enable a sidebar for member profiles only.
So somewhere in `plugin-buddypress.php`, I’ll do something like this:
`<?php
// are we on a user profile page? if so load up our special members sidebar
if ( bp_is_user() ) :
get_template_part( ‘my-special-members-sidebar’ );
?>`This will enable me to show a different sidebar on a user profile page only.
In reply to: Buddypress Link don’t workCan you try disabling W3 Total Cache to see if that solves your issue?
@mercime – Gigantic ‘Yes’ to no more BP Template Pack questions! You have answered so many of those questions and helped out so many users with these issues.
Yup, we need new codex pages to detail all the cool BP 1.7 stuff in the works.
If you need some help drafting some pages, let me know.
In reply to: Need original WordPress Registration page backIf you were using the WordPress registration page before while running BuddyPress, then it was actually a bug in BuddyPress!

However, if you really need to use the WP registration page, add this code snippet to /wp-content/plugins/bp-custom.php:
`remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );`
This snippet disables the redirect from WP’s registration to BP’s registration page. It’s not really recommended to this, so I note this as a disclaimer now!
You’ll also want to probably remove the “Registration” page from the BuddyPress admin settings area so that page cannot be used for registering.
Glad to see interest in the BuddyPress Follow component. Wasn’t even aware that there were two forks of it!
To be fair, the original code for BuddyPress FollowMe was from BuddyPress Followers restructured to use the BP Skeleton Component. Other than that, from my quick look through the plugin, I did not see any new features or changes. Let me know if I’m wrong!
BuddyPress Followers is the original plugin created by Andy Peatling; I made an update to that plugin a long time ago and started maintaining the plugin.
It hasn’t had any updates as of late. If developers want to submit patches or ideas for BuddyPress Followers, you can do so on Github here:
`https://github.com/r-a-y/buddypress-followers`—
EthanVan, I guess I can toggle the `’wrapper_class’` if you’re currently viewing a directory page, but other than that, you shouldn’t have to create a duplicate of the `$button` variable. Your code is not necessary when there is a filter available – `’bp_follow_get_add_follow_button’` – so you can hook in there and change the class if desired.
In BP 1.7, BuddyPress looks for the following files in your theme’s folder to determine which page BP uses for the skeleton:
`’plugin-buddypress.php’
‘buddypress.php’
‘community.php’
‘generic.php’
‘page.php’
‘single.php’
‘index.php’`If you need to do a conditional based on a specific BP page component, there’s a filter in `bp_get_query_template()` to override it. Note: I haven’t tested this yet.
You could also use BP page conditionals with template parts within one of the templates listed above. That’s probably the easiest way without having to use filters.
References:
bp_get_theme_compat_templates():
`https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-template-loader.php#L292`bp_get_query_template():
`https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-template-loader.php#L140`In reply to: How to chage text friends?If you want to change the labels on your BuddyPress site, try creating a custom language file:
https://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/Hope that helps!
In reply to: Architecture Advice1) Here’s a great tutorial post about Multisite and how to map subsites to domains:
http://wp.tutsplus.com/tutorials/wordpress-multisite-beyond-basics-essentials-and-domain-mapping/2) As for BuddyPress on the niche sites, you might want to look into a BuddyPress multi-network plugin.
There are a few plugins out there that do this.
Here are some examples:
https://wordpress.org/extend/plugins/bp-multi-network/
http://buddydev.com/buddypress/introducing-buddypress-multi-network-plugin-create-multiple-separate-social-networks-on-a-single-buddypress-install/3) This would require using switch_to_blog() function and using some BP-specific code on the main site I believe.
4) If you use the steps in point 2, then I believe so. If you want to share the same BP data across all your sites, then don’t do point 2 and you won’t have to use a different registration page.
Note: This is all off the top of my head and I could be wrong in a few areas!
Hope that helps somewhat!
@buddyok – Sites can be created here:
`http://sveablogg.se/site-tracking/create/`In reply to: Issues with some of the profile pagesBoth pages look like they work; it’s just that the group template needs to be reformatted to gel with your theme.
Off the top of my end, I think the template file in question is:
`/wp-content/YOUR-THEME/groups/single/plugins.php`Mirror the changes that are in:
`/wp-content/YOUR-THEME/groups/single/home.php`In reply to: Search Buddypress Support Forum??Another topic derailed. Closing topic.
In reply to: HTML Code Showing in ProfileWhat happens when you switch the theme to the BuddyPress Default theme?
Do you have any plugins or code snippets (check the theme’s functions.php and /wp-content/plugins/bp-custom.php) that might be interfering with profile links?
In reply to: Put ’Edit My Profile’ Link in sidebarFind the template file you want to add the profile link in and add the following:
`<?php
if ( function_exists( ‘bp_loggedin_user_id’ ) && bp_loggedin_user_id() )
echo bp_loggedin_user_domain() . ‘profile/edit/’;
?>`The “business-services” theme is probably an older BuddyPress theme; the theme developers shouldn’t be copying the ajax file into their theme without changing the ajax function names.
Try using a different theme if possible.
In reply to: Create a simple registration formHave you turned on registration?
https://codex.buddypress.org/troubleshooting/frequently-asked-questions/#registerIn reply to: Posting to activity stream issuesIf you are using any BP plugins, try disabling them and retry.
Next, activate them one by one to see which plugin is causing the duplicates.
In reply to: problem with https links to activity actioncharlietech – This is not the same question. Please create a new forum topic and I’ll answer.
In reply to: problem with https links to activity actionYou should be able to use the `is_ssl()` function to do this.
In reply to: Need help on email configurationThe ‘BuddyPress’ string is used when BP cannot find a site name from the database.
Did you name your site under the “Settings > General” screen in WordPress?
https://codex.wordpress.org/Settings_General_ScreenAre you using multisite?
charlietech – It looks like a problem with Suffusion. Tell the Suffusion developer to search through his theme code to look for “adminbar.css”. The developer is probably trying to enqueue it without a `file_exists()` check.
In reply to: problem with https links to activity actionEach activity item is saved once into the database, so if your user recorded their activity on regular HTTP, then the link from the database would use that HTTP link.
You can hook into the filter you suggested to switch out ‘http://’ for ‘https://’ or you can try redirecting via .htaccess as well.
This should be fixed in the latest trunk version of BuddyPress.
However, if you need to fix this for BP 1.6.1, apply this change to your 1.6.1 install:
https://buddypress.trac.wordpress.org/changeset/6332If that doesn’t work, let us know.