Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 826 through 850 (of 3,925 total)
  • @r-a-y

    Keymaster

    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() {

    }
    `

    @r-a-y

    Keymaster

    @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`.

    @r-a-y

    Keymaster

    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!

    @r-a-y

    Keymaster

    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.

    @r-a-y

    Keymaster

    Can you try disabling W3 Total Cache to see if that solves your issue?

    @r-a-y

    Keymaster

    @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.

    @r-a-y

    Keymaster

    If 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.

    @r-a-y

    Keymaster

    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.

    @r-a-y

    Keymaster

    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`

    @r-a-y

    Keymaster

    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 Advice

    @r-a-y

    Keymaster

    1) 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!

    @r-a-y

    Keymaster

    @buddyok – Sites can be created here:
    `http://sveablogg.se/site-tracking/create/`

    @r-a-y

    Keymaster

    Both 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`

    @r-a-y

    Keymaster

    Another topic derailed. Closing topic.

    @r-a-y

    Keymaster

    What 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?

    @r-a-y

    Keymaster

    Find 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/’;
    ?>`

    @r-a-y

    Keymaster

    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.

    @r-a-y

    Keymaster

    @r-a-y

    Keymaster

    If 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.

    @r-a-y

    Keymaster

    charlietech – This is not the same question. Please create a new forum topic and I’ll answer.

    @r-a-y

    Keymaster

    You should be able to use the `is_ssl()` function to do this.

    @r-a-y

    Keymaster

    The ‘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_Screen

    Are you using multisite?

    @r-a-y

    Keymaster

    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.

    @r-a-y

    Keymaster

    Each 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://&#8217; for ‘https://&#8217; or you can try redirecting via .htaccess as well.

    @r-a-y

    Keymaster

    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/6332

    If that doesn’t work, let us know.

Viewing 25 replies - 826 through 850 (of 3,925 total)
Skip to toolbar