Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,576 through 6,600 (of 31,072 total)
  • Author
    Search Results
  • #233688
    chatty24
    Participant

    Try to add it to your theme’s function.php file instead of bp-custom.php

    #233684
    chatty24
    Participant

    Try This Code :

    add_action( 'wp', 'custom_lockdown_redirect', 3 );
    function custom_lockdown_redirect(){
    global $wp;
    	if (!is_user_logged_in()){
    	if ( bp_is_activation_page()
    		|| bp_is_register_page()
    		|| ( in_array( $GLOBALS['pagenow'], array( '/login' )))
    		)
    	 return;
    		bp_core_redirect(get_option('http://yoursite.com') . "/login");
    		exit;
    		}
    	}

    Make sure the you change /login with your login link.

    Add it to your theme’s function.php file

    #233681
    deshmukh
    Participant

    Here is an update. I tried doing the same thing but changed directory to mytheme/buddypress/activity/index-directory.php with disastrous consequenes. With the code you had mentioned, it leads to a blank page and with bp-activity-template.php suitably renamed and modified, it gives an error.

    So, I guess, I will need to have the file in /mytheme/buddypress/activity and the name will need to be index-directory.php. But what goes in that file is still not known 🙂

    #233679
    deshmukh
    Participant

    @henrywright, this is going to be one long conversation, I guess. And thanks for your patience.

    OK. Went through the Codex page again. And, as I understood it, created mytheme/buddypress/activity/single/index.php with the code you had given earlier: ‘display_comments’ => ‘stream’. No effect.

    Then I copied the whole bp-activity-template.php to the same location, renamed it as index.php and changed ‘display_comments’ => ‘stream’. Still no effect.

    Obviously, I am doing something wrong. How do I get this right?

    Also, note my earlier point. This change, when successful, only pulls the comments up — not the entire conversation on which the comment was made. But that was the effect I wanted. How do I get that achieved?

    Lastly, I guess, I will need to make similar changes to other areas (display of group activity /members/username/activity/groups, favorites /members/username/activity/favorites — to be specific) or it is the same activity loop that generates those pages, too and changes at one place will reflect through all loops?

    #233605

    In reply to: How to create template

    bringmesupport
    Participant

    The BuddyPress Codex explains how to do this here:

    Theme Compatibility & Template Files

    You were on the right track, but you are copying the wrong files from the BuddyPress core. If you want to override the BuddyPress Templates in your own theme, you would copy the files you wanted to override from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress to /wp-content/themes/myTheme/buddypress, just keep the file structure intact in your theme.

    For example, if you just wanted to modify the members loop, copy just the members-loop.php file from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php and paste just that file to /wp-content/themes/myTheme/buddypress/members/members-loop.php in your theme. If the folders don’t already exist in your theme, just create them.

    5high
    Participant

    Hi there,

    (w/p = 4.1; buddypress = 2.1.1; s2member = 150203)

    I see it’s been asked before, but the suggestions I’ve found have only lead to out-of-date plugins, and I don’t want to base my new site on a plugin that may well be completely unsupported within a few months.

    my aim: I’d like to ensure that all new members are signed up automatically to at least one group, if not to all 3 groups, so they can immediately be part of a small community.

    Is there a way I can add some code into either a BP file or my (child) theme files to do this? I realise that I would have to be careful with updates, so perhaps a child theme functions.php file or similar? (I know the basics of code and how to insert in different files, but have very little knowledge of php, hooks etc so would need help with the exact code for this.)

    All help much appreciated.

    #233594
    @mercime
    Participant

    @wanderingsoles Just to be clear, you have enabled registration on your site and removed the copy correct? Have you have assigned the Register and Activate pages in Settings > BuddyPress > Pages? Have you tried changing your theme to 2014 or 2015 to check if it’s a theme issue or not?

    Toby
    Participant

    Sorry I never replied. Turning off all the plugins and going to the default theme is a bit torturous on the site I’m supporting.

    Arkadaemos
    Participant

    I’m having a similar issue with BP2.1 and WP4.1. The group pagination links aren’t working on either the front or back-end. They work fine for the member list, but not the groups.

    On the front-end, the links seem to be pointing to the correct mlpage=#, but when clicked they do nothing.

    On the back-end, the links work for page 2, but all the rest are all pointing to member_page=3.

    I’ve disabled all plugins, switched to default WP themes, and used a couple different browsers and the problem exists in all cases. Is this a known issue?

    #233551
    Henry Wright
    Moderator

    I do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays… …all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?

    You have to ‘add’ the new activity.

    Regarding the second bullet point, you’d need to modify your activity loop which will be inside your activity template. Try something like this:

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&display_comments=stream' ) ) : ?>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
            <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>

    For more info on the BuddyPress template system and where you find your activity template, please see this article.

    #233543
    deshmukh
    Participant

    @henrywright I do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays all profile updates (these are displayed even now), all updates to public groups (these, too, are displayed currently) AND all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?

    Also, I understood the second part re threads with new comments coming to top. But could you please elaborate a bit? Do I need to add some code to bp-custom.php or mytheme/function.php? In this specific case, what code should I add?

    I am sorry if my question appear to be basic. I am a newbie — I like to guess, like many others coming to forums 🙂

    #233540

    In reply to: How to create template

    djsteveb
    Participant

    I think you are playing with the old bp default theme files which are no longer being used(?)

    see – https://codex.buddypress.org/themes/bp-default-theme-moving-forward-with-bp-1-9/

    and perhaps -> https:// codex.buddypress .org/themes/

    although I am pretty sure a bunch of the info on that buddypress .org / themes is talking about the old ways of doing things.. so check dates.. I think a bunch of that info is deprecated… however you may find what you are looking for in the codex..

    maybe what you are looking for in relation to profiles is touched on here: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/

    #233530
    bazaarocommunity
    Participant

    Thanks for the advise. When I do that, it does not load the wall post text box or tabs that are normally found on the activity page. Do I have to copy the entire contents of /activity to my theme root?

    #233499
    tracymisidore
    Participant

    I just changed my theme and it seems to work. thank you! I knew it had to be something simple.

    #233498
    tracymisidore
    Participant

    I am using the latest wordpress and buddypress 2.1.1
    I have not tried changing my wp theme…

    #233497
    shanebp
    Moderator

    Please provide the versions of WP and BP that you are using.

    What theme are you using?
    If you switch to a WP theme like 2014, does the issue still exist?

    #233492
    miguelcortereal
    Participant

    Working now!

    There’s nothing wrong with the theme suffusion, any plugin or Buddypress.

    All I had to do was perform a browser’s cache cleaning.

    Certainly there was an outdated jquery version loaded on my browser’s cache.

    Thanks a lot Henry for your concern.

    #233474
    Henry Wright
    Moderator

    Hi @mastodontmedia

    You’ll need to modify your members template. Check out the BuddyPress Template Hierarchy for more info on the template system.

    To show a specific profile field inside the loop, you can just do: bp_member_profile_data( 'field=the field name' );

    danbp
    Participant

    I guess something is not translated, but in this case, the email text should come in english.

    If yo use an “old” translation from a previous version, it is possible that something is missing in your translation.

    After checking both portugese version on GlotPress, (pt_PT and pt_BR) it appears that pt_PT is not translated for 2.1.x and to 38% for pt_PT in the dev version – the one actualy used by BP 2.1.1

    https://translate.wordpress.org/projects/buddypress/dev

    If you use an email plugin, ensure it is matching with WP’s mail action. Or if your theme has is own mail function, check that he uses the same wording as BP (and particulary the $s var) who fires the link.

    Code in 2.1.1 looks like this

    %1$s,\n
    \n
    \n
    \n
    Thanks for registering! To complete the activation of your account and blog, please click the following link:\n
    \n
    %2$s\n
    \n
    \n
    \n
    After you activate, you can visit your blog here:\n
    \n
    %3$s
    #233454
    Henry Wright
    Moderator

    What should it be using?

    Do you mean which redirection function? Either is fine – but my point was, the offending code will likely involve one of those functions. I thought it might be helpful me mentioning them if you were trying to debug…

    Your best bet is to contact the theme or plugin author (as @shanebp mentioned). They’ll probably be grateful for the bug report.

    #233450
    Henry Wright
    Moderator

    Hi @baldemotions

    wp_redirect(), wp_safe_redirect() or bp_core_redirect() are the functions that redirect. It could be that your theme is using one of those?

    #233449
    shanebp
    Moderator

    Your best bet is to talk to NextGen. It’s probably a known issue. If you do, tell them what versions of WP, BP, bbPress and NextGen you have installed. Ditto re your theme.

    #233446
    Henry Wright
    Moderator

    It’s definitely AJAX-related because as you mentioned earlier, visiting /members/?upage=2 works fine. I think the way to pin-point the problem now that you can be sure the template isn’t the issue is focus your investigations on any customisation you’ve made elsewhere. Specifically, any JavaScript you’ve introduced (either in your theme or via a plugin perhaps?).

    #233443
    miguelcortereal
    Participant

    Thanks Henry for your quick response.

    I’m using Suffusion theme.

    I’m not using template pack conpatibility provided that since BP 1.7 it just became unecessary. However I’m using in child theme /buddypress/members/members-loop.php which I’ve copied from BP-legacy and customized to have a different layout and display xprofile fields information.

    I removed this file to force the use of the original BP markup and the problem remains.

    So it’s Ajax related.

    I’ll try to check theme’s and BP’s Javascript files.

    #233429
    Henry Wright
    Moderator

    What theme is it that you’re using?

    There’s a couple of things you could look into.

    Firstly, how does the markup of your theme’s members page differ from that of the template file provided by BP (in bp-legacy)?

    Secondly, take a look at your theme’s JavaScript files (if it has any) to see if there’s anything that might conflict with BP’s JavaScript

Viewing 25 results - 6,576 through 6,600 (of 31,072 total)
Skip to toolbar