Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,276 through 6,300 (of 32,562 total)
  • Author
    Search Results
  • #250335
    Tranny
    Participant

    @hnla

    Help me out – how do I implement BuddyPress styling into my Twenty Sixteen child theme?

    #250323
    Henry Wright
    Moderator

    Take a look at Theme My Login. That plugin has a redirection module which will help you do that.

    #250321
    webifydevs
    Participant

    Hi, you can add this

    
    <script>document.getElementById("signup_with_blog").checked = true;</script>

    in the footer or header of your theme

    #250317
    paddy33
    Participant

    @djpaul @r-a-y Brilliant! I added theme support for BuddyPress and it worked πŸ™‚ Thank you both so much for your help.

    The only thing is, now that the template is loading properly, for some reason, the BuddyPress nav and subnav bar (which was looking as it should before) has now lost its styling. Is there something that needs to be done to get the theme’s custom styling back? I tried adding this wp_dequeue_style( 'buddypress' ); to the same function but it didn’t work.


    @r-a-y
    “may I ask what URL you are attempting to load …” this is the URL i see in the browser – http://www.domain.dev/users/username/dashboard/

    “If this is a non-BuddyPress page …” as far as i can tell, it appears to be a BuddyPress page.

    #250310
    shanebp
    Moderator

    You mean the ‘Member Type’ fields?

    It may be an issue with your theme.
    Try switching momentarily to a WP like 2013 to confirm.

    #250309
    shanebp
    Moderator

    Basically, the core uses these files for display:
    buddypress\bp-templates\bp-legacy\

    If you want to change the display, you can overload those files and thereby avoid changing anything in the BP plugin folder.

    #250305
    shanebp
    Moderator

    The current files re themes are here:
    buddypress\bp-templates\bp-legacy\

    You should always use those when overloading to a theme or child theme.

    The use of ‘legacy’ in the dir name is unfortunate and confusing, imo.

    newjerseydads
    Participant

    After reading some of the general comments here, I loaded Twenty Thirteen as my theme and the issue persists.

    cappy2
    Participant

    I had the same problem. I could upload an cover image but got the warning “For better results, make sure to upload an image that is larger than 0px wide, and 225px tall. ”

    After entering the following code in /wp-content/plugins/bp-custom.php i could i could upload the image. but it is still not showing.

    function your_theme_xprofile_cover_image( $settings = array() ) {
            $settings['width']  = 640;
            $settings['height'] = 300;
    	$settings['default_cover'] = '/wp-content/uploads/2014/12/blog_header_640x300.jpg';
     
        return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_xprofile_cover_image', 10, 1 ); // for the members Cover Images
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_xprofile_cover_image', 10, 1 ); // for the groups Cover Images

    To test if i can show an cover image i did enter the following CSS code with Firebug and the cover image will show. Unfortunnaly not the one i uploaded πŸ™

    #buddypress #header-cover-image
    height: 300px;
    width: 640px;
    background-image: url('/wp-content/uploads/2015/12/blog_header_640x300.jpg');

    I think i experience this problems because i’m using a child theme, but not sure for that.
    See my post: Cover image in child theme

    #250291
    paddy33
    Participant

    Hi Paul @djpaul.

    #1 Yes, you’re right. If it’s a custom template that loads ok with BP 1.7.2 all the way up to 2.0.3, and only has an issue when updating to BP 2.1, is it safe to assume that it’s not anything in the custom template’s code that’s causing the problem? If not, i can dig into it and share anything that’ll help to solve this.

    #2 “it doesn’t mean the templates were built with *that* version” – do you think it’s a strong possibility the code in the custom template may be culprit? I just took a quick look and it seems to be quite standard.

    add_theme_support( ‘buddypress’ ) is only in these files:

    > wp-content\plugins\buddypress\bp-core\bp-core-theme-compatibility.php:
    > wp-content\plugins\buddypress\bp-themes\bp-default\functions.php:

    #3 “compare where its looking for a template vs. where the template actually is.” – The strange thing is that it works with BP 2.0.3 and only ‘breaks’ upon update to 2.1, and the template is sitting in the same place (child theme’s root) all the time. Appreciate any suggestions if you have them, as i’m out of ideas as a novice tinkerer.

    #250290
    dave8528
    Participant

    @tranny

    I came across this discussion here which may help to get answers to this question: https://buddypress.org/support/topic/editing-buddypress-core-files-within-the-childtheme/

    #250288
    r-a-y
    Keymaster

    @paddy33 – Try adding this line to your theme’s functions.php in your 'after_setup_theme' hook.

    add_theme_support( 'buddypress' );

    This should bring back support to use bp_core_load_template() in your theme. However, may I ask what URL you are attempting to load bp_core_load_template( 'template-user-account' ) on?

    If this is a non-BuddyPress page (eg. example.com/dashboard), just use get_template_part() instead of bp_core_load_template().

    #250277
    Tranny
    Participant

    @airsid

    Are you saying I need to install a sidebar plugin to see changes to the theme?

    #250276
    airsid
    Participant

    Hello,

    @Tranny

    1) Use Twentysixteen Theme
    2) Install Content Aware Sidebars plugin
    3) Create a sidebar then select Buddypress Members type and add all proposed subcategories. Then save the sidebar. Do not add any widget in this sidebar.

    You should be good πŸ˜‰

    #250275
    Tranny
    Participant

    @dave8528

    I’m also interested in learning how to do child theme edits to BP pages that will survive BP updates.

    #250273
    Tranny
    Participant

    @hnla

    I found that BP comes with changes which are suggested on that page already in the code. But the profile page does not look like on that page.

    I am left in complete darkness. How can I modify profile pages to have that type of look? Can it be done with mods to the child theme, in order to preserve BP source files so I don’t lose the changes with the next BP update?

    #250265
    paddy33
    Participant

    After rolling back to 1.7 and gradually updating each version, it appears it’s the update to 2.1 that’s the issue, as the templates are still loading fine with BP 2.0.3

    Digging deeper, it seems that it’s the /plugins/buddypress/bp-core folder which causes the problem

    Couldn’t track down the cause looking for clues in the changelog https://codex.buddypress.org/releases/version-2-1/

    This line is a potential but i couldn’t understand the info from r8820 – “In bp_core_load_template(), only use locate_template for older bp-default themes (r8820)”

    #250262
    aswain1
    Participant

    Here are screenshots with the Twenty Fifteen theme. Deactivating all plugins (besides BuddyPress) does not affect how it appears.

    I had to go to each URL directly in order to bring up the pages. The “Load More” button disappears after four clicks.

    Screenshots2

    cybmeta
    Participant

    Please, don’t be as silly as me.

    If you find yourself having problems with BuddyPress, even with all plugins deactivated, remember to check if there is a bp-custom.php file in your plugins folder.

    cybmeta
    Participant

    Once more test.

    wp_registration_url() returns https://example.com/wp-singup.php incorrectly.

    As soon I deactivate BuddyPress, it returns https://example.com/wp-login.php?action=register correctly.

    With no other active plugin and using a core theme, this just confirm that the problem is in BuddyPress.

    I’m really stuck with this issue.

    I said it is not a multisite installation, and it is not, is_multisite() returns false. Which is probably what is generating the infinite redirection. In wp-signup.php there are these lines:

    if ( !is_multisite() ) {
    	wp_redirect( wp_registration_url() );
    	die();
    }

    But because wp_registration_url() returns incorretly example.com/wp-signup.php when BuddyPress is active, I get the infinte redirection loop.

    cybmeta
    Participant

    I’ve made some more tests.

    In the database, the bp-pages row seems correct and the “register” option is correctly set to the page ID for registration.

    If I do this in the header.php of the theme:

    var_dump( bp_get_signup_page() );

    I get the incorrect value `https://example.com/wp-singup.php

    If I do this inside the function bp_get_signup_page() (I’ve tried to include the full code function but the system gives error submiting the post, so I’ve include only the modified lines of the function):

    var_dump( $page );
    return apply_filters( 'bp_get_signup_page', $page );

    I get the correct value http://example.com/register/.

    If I remove the filter bp_get_signup_page inside bp_get_signup_page() , just to check if there is some filter altering the value:

    return $page;

    Then I get the correct value in the header.php of the theme, but if I go to http://example.com/register/, the page doesn’t shows the registration form.

    It seems that there is some bp_get_signup_page filter changing the value but the problem exists without any other active plugin and with a core theme, so it have to be a filter insdie BuddyPress itself. Anyway, with the correct value of bp_get_signup_page(), the registration page doesn’t work.

    #250238
    Paul Wong-Gibbs
    Keymaster

    Ooh. Hi @paddy33! Sounds like you’ve got yourself an interesting challenge. I’m very interested to keep in touch to learn about what it’s like to upgrade a site between these versions.

    My initial thoughts:

    1) template-user-account.php is not/has never been the name of a template part bundled with any version of BuddyPress, so we’re dealing with a custom theme integration, which will make things a bit trickier for us to help (since we can’t see its code).

    2) While the Original site might be BP 1.7.2, it doesn’t mean the templates were built with *that* version; it could have launched on 1.5 or 1.6, etc. In this case, it’s quite possible theme compatibility was explicitly disabled.

    Does this line appear anywhere in your codebase?

    add_theme_support( 'buddypress' );

    3) I think you’re going to have to debug (hopefully in a development environment or development server) bp_core_load_template and compare where its looking for a template vs. where the template actually is.

    #250236
    Paul Wong-Gibbs
    Keymaster

    The cause is most likely going to be some other plugin or some code in your theme. Was there any extra information in that error log? If there’s only what you provided, there’s not enough information to help. (Try toggling plugins on/off one at a time until the issue goes away?)

    #250233
    Henry Wright
    Moderator

    Thanks for the screenshots. Those could be issues with the theme. I can’t reproduce the issue myself with Twenty Fifteen. Can you upload screenshots for Twenty Fifteen?

    #250230
    zigsolutions
    Participant

    Found it! I needed to make the change to my-child-theme-directory/buddypress/groups/single/members.php instead of the members-loop.php in my-child-theme-directory/buddypress/members/.

    That took a while but glad I was able to find it. Now instead of the Activity information I want to display the Company field which is a custom field. I think I saw the code to do this and will try it tomorrow but it should be pretty straight forward right?

    Thanks again for all your help!!

Viewing 25 results - 6,276 through 6,300 (of 32,562 total)
Skip to toolbar