Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 4,826 through 4,850 (of 31,073 total)
  • Author
    Search Results
  • 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!!

    #250222
    zigsolutions
    Participant

    Here are the items that I’ve tried based on your previous suggestion:

    – Add text to different parts of the members-loop.php file and it doesn’t show up
    – Where it calls the page in the members/index.php I’ve commented that call out:

    <div id=”members-dir-list” class=”members dir-list”>
    <?php /* bp_get_template_part( ‘members/members-loop’ ); */ ?>
    </div><!– #members-dir-list –>

    – Checked the plugins/bp-custom.php that I created and removed the code in that file.
    – Disable all the plugins that are attached to BuddyPress
    – Renamed the members folders in the following locations to members2 to see if it affected displaying the members and it doesn’t seem like it references any of the locations: buddypress/bp-templates/bp-legacy/buddypress/members/, buddypress/bp-templates/bp-legacy/buddypress/members/ and my-child-theme-directory/buddypress/members/
    – The last thing I tried was to copy the buddypress/ folder into the WP 2013 theme and run it through that completely and still I don’t see the changes. Even after I change the theme to the BuddyPress Default theme and update members-loop.php it still shows that information.

    Not sure what else to try :P. Thank you for all your help so far! I’m very stumped!

    #250221
    aswain1
    Participant

    Probably so, but since I can’t actually see the activity, I’m not sure.

    It also disappears on the Buddy (child) theme that I was using originally.

    The button disappearing has never happened on the front page Activity Stream, but like I said, it just never loads the older results. The first five activity items do display on the front page, which is more than I can say for profile pages or the Activity page itself.

    #250218
    aswain1
    Participant

    Yes; just tested and still have the problem. In fact, it has the same problem as the profile pages, where nothing at all shows up. On Twenty Fifteen, the Load More button disappears after multiple clicks.

    I should add that, for that theme, I have to go directly to http://gratitudeexpressions.com/activity/

    #250212
    aswain1
    Participant

    It happens on all themes. I’m primarily running the Buddy theme, which I thought might be causing the issue, but after switching to the default themed like Twenty Fifteen, the Load More issue was still happening.

    #250209
    shanebp
    Moderator

    Using WP 2013 theme, I can overload the members-loop and the changes are visible.
    iow. I can’t duplicate your issue.

    Try adding some text to the top of your template overload.

    Check your plugins/bp-custom.php, if you have one, for functions re the members loop.

    Deactivate any plugins re members loop.

    #250207
    zigsolutions
    Participant

    That was great thinking! I tried to enable 2013 with the change made to members-loop.php with no luck. It still shows the Activity.

    The theme that I am using is not a true BuddyPress theme. It’s just a normal WordPress theme but I know that shouldn’t really matter for what we are talking about I don’t think.

    I’ve also tried changing it in the bp-themes/bp-default/ which I believe is not really used anymore correct?

    Thank you so much! Any other suggestions?

    #250205
    shanebp
    Moderator

    It could be that your theme is loading its own version of members-loop.
    To confirm switch momentarily to a WP theme like 2013 and see if your edits appear.

    #250198
    Henry Wright
    Moderator

    Which themes does the problem happen on?

    #250196
    @mcuk
    Participant

    Hi @dave8528,

    Replying to your q in the other thread here. Firstly if you aren’t already doing so, make sure whatever changes/amendments to code are done in a child theme if you aren’t doing so already (Google search WordPress Child Themes).

    Just checked the code and it seems to be working fine. You may not be seeing the button if you have cover images activated on your profile pages? If you do, the file you want is “cover-image-header.php” The member-header.php is used when cover images aren’t active. Was just using it as an example location.

    #250190
    dave8528
    Participant

    Since I could not find bp-custom.php and I found out that it not a default file, so the directions here: https://codex.buddypress.org/themes/bp-custom-php/ says to create it manually – which I did and added the above code as you directed. Then I located member-header.php in following directory tree shown below and added your code:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    But, I don’t see it working! Did I get the files mixed up?
    Thanks for all help.

    #250187
    @mcuk
    Participant

    Hi @missgridiron,

    Add this to your bp-custom.php:

    function add_another_friend_button() {
    	$user_id = get_the_author_meta( 'ID' );
    	$mybutton = bp_add_friend_button( $user_id ); 
    	if ( ( is_user_logged_in() && ! bp_is_my_profile() ) ) {
    		echo $mybutton;
    	}
    } 
    
    add_action( 'button_here', 'add_another_friend_button' );

    Then add the code below to wherever you want the button to appear (e.g. in the member-header.php file of your child theme if you want a button in your profile page header):

    <div id="another-friend-button">
    	<?php 
    		do_action( 'button_here' ); 
    	?>
    </div><!-- #another-friend-button -->

    for reference: https://buddypress.org/support/topic/add-friend-button-everywhere/

    m1k3k
    Participant

    This is happening to me as well. I use Genesis as my theme. No custom cover photo sizes have been set either. I find it strange that the error is 0px.

    #250167
    tolisp
    Participant

    I have changed theme, disabled all plugins but the problem persists…
    Anyone heard of something similar happen again? The buddypress is in a subsite domain/portal. I am thinking maybe the rewrite rules are the ones to blame.

    This is my htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    #250157
    Mathieu Viet
    Moderator

    Hi,

    By default the avatar sizes are :
    – 150x150px for Full size
    – 50x50px for thumb size

    If a message is asking for a different minimum size, then it’s meaning a plugin or a theme is using some of our filters/constants to edit these sizes.

    You can search for this filter bp_core_avatar_full_width or this constant BP_AVATAR_FULL_WIDTH outside of BuddyPress to find who’s setting the size to be 580x580px.

    #250156
    Henry Wright
    Moderator

    You can add functionality to BuddyPress using plugins. If a particular feature isn’t available as a plugin you could try implement it yourself or ask a coder for help. BuddyPress has a huge API that will help.

    The look and feel of your website is governed by the theme you choose.

    If you already have a dev site operational, try out some different plugins and themes to see which ones work best for your project.

    Ref:

    https://en-gb.wordpress.org/plugins
    https://en-gb.wordpress.org/themes

    #250130
    superbikerider69
    Participant

    Thanks very much for the reply

    So trying to understand, I copy the create file from the buddypress to the theme buddypress then add a conditional at the top of that copied file to check membership level?

    #250127
    shanebp
    Moderator

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\groups\create.php

    Add a conditional that checks user level at the top.

    Or use the do_action hook ( read 2nd answer ) at the top of that file:
    do_action( 'bp_before_create_group_page' );
    and write a function in your theme/functions.php

    #250120
    danbp
    Participant

    Hi,

    normally you have a filter upon the activity stream so you can sort it by different activities. By default, a stream use “anything”.

    Settings > BuddyPress > Settings -> Activity Settings and make sure that “Allow activity stream commenting on blog and forum posts” is checked. And also “Allow search engines”.

    While testing, i recommand that you use one of Twenty’s theme first. Just in case of… 😉

    jake.carvey
    Participant

    In my own exploration, it seems as though Social Chef does NOT support cover images – there on none on the example site on themeforest.

    I do intend to implement them myself in a child theme.

Viewing 25 results - 4,826 through 4,850 (of 31,073 total)
Skip to toolbar