Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 14,251 through 14,275 (of 69,016 total)
  • Author
    Search Results
  • #233702
    Mathieu Viet
    Moderator

    Hi,

    If “featured posts” are sticky posts, just tested on twentyfourteen with latest BuddyPress and i don’t see any troubles. Posts are listed above the other ones.

    #233701

    In reply to: Updating

    Mathieu Viet
    Moderator

    Hi,

    Sorry to read you’re having an issue after updating to latest version.

    The problem is due to the BuddyBoss media plugin. It looks like it’s calling a BuddyPress function too early in the process. Unfortunately, it’s a premium plugin so it’s hard for me to find what’s going wrong. Could you contact the support team of this plugin to report the problem ?

    If the support team needs any help, i’ll be glad to bring my hands on it.

    #233699
    Mathieu Viet
    Moderator

    Hi @tranny

    I’m sorry to read about the problem you’re having when activating BuddyPress. From what you’ve described it looks like a plugin or a theme is checking for a capacity very early in the process, well at least before the BuddyPress members component has been fully loaded.

    BuddyPress hooks ‘plugins_loaded’ at a 10 priority and define its components a little while after. So your target is a plugin, a theme, or a specific code direclty loaded in global scope that is doing a current_user_can() before the action ‘plugins_loaded’ has been fired.

    If you look at this page, you’ll see there are 3 actions fired before ‘plugins_loaded’ : https://codex.wordpress.org/Plugin_API/Action_Reference#Actions_Run_During_an_Admin_Page_Request

    Searching the cause of the problem won’t be easy, if i were you i’d do a back up of your entire site and would do some tests on a local server making sure the local server environment contains a x-debug client so that it would display the different functions called before the error appears.

    #233696
    Paul Wong-Gibbs
    Keymaster

    Hi @kkradel

    Sorry to hear you’re having problems with 2.2. How has it broken Featured Posts — can you explain what you’re seeing, and also what you expect to see?

    Did you update any other plugins, translations, or core files at the same that you updated BuddyPress?

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

    #233598
    Henry Wright
    Moderator

    /wp-content/plugin/buddypress/bp-activity/activity-template.php is a core file and you are indeed right to think that any changes you make will be overwritten when you upgrade the plugin.

    As I mentioned earlier, you should modify your activity template (sorry for not being clearer). The link I provided (to the BuddyPress Template Hierarchy) explains how you can create your own templates.

    To explain what I meant about bp_activity_add(), you’d write your own function which contains a call to bp_activity_add(). bp_activity_add() will add an item to the activity stream for you. Hooks are a feature of WordPress, you can read more about them here. You’d hook your custom function to a particular action which will result in bp_activity_add() executing at exactly the time you need it to.

    Hooks take a bit of getting your head around at first, but once you master them you’ll see how powerful they can be.

    PS – When I crack it, is there any way I can contribute to the codex so other newbies like me have access to the stuff? How?

    Sure you can! See the Participate and Contribute article for info on how you can help improve BP documentation.

    Hope all this info helps! Give me a shout if you need any further help

    #233597
    rexsilex88
    Participant

    I’ve got similar issues. On 2.1 you have create for all 5. I’m on this new 2.2 RC2 release and whenever I set a page for activate or register it correctly stores it in wp_options table as bp-pages array with the right ID. But those pages remain blank and the dropdowns on the Buddypress->Settings->Page also revert to “NONE” even though its correct in the database.

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

    r-a-y
    Keymaster

    BuddyPress 2.2 should fix this problem.

    Release is imminent so stay tuned!

    Bill
    Participant

    Just a couple further thoughts about this, since you guys are re-thinking it:

    If you really want people to get into the right sub-forum, why show a long list of topics in the first place? If they’re browsing, they’ll click an interesting-looking topic, and then end up posting their own question in whatever category they find themselves in (or append their question to an existing topic).

    On the other hand, if they arrive at /support with the intention to post a query without browsing first, it isn’t immediately obvious that a category must be chosen first in order to do that.

    An alternative:
    buddypress.org/support perhaps shows a couple/few sticky posts, but the main content is a modified version of @modemlooper’s ‘When Asking for Support’. I’m guessing few people actually open that link before posting. For clarity, it might even be sub-divided into its troubleshooting advice, and the installation-environment probes.

    I’d follow (or even precede) that with concise instructions on initiating a query by first selecting the relevant category from the sidebar list.

    If there is a desire to just have all posts sorted by most-recent, just link to such a page. The /support page as it stands now seems to be geared for browsing.

    #233574
    wanderingsoles
    Participant

    In other words, my register page does not actually show up at all… just BuddyPress Create an Account form.

    #233561
    deshmukh
    Participant

    @henrywright Thanks! Here is what I did:

    edited /wp-content/plugin/buddypress/bp-activity/activity-template.php

    Found the activity loop and changed $defaults = array(
    ‘display_comments’ => ‘stream’

    That puts all comments on the top but only the comments are pulled to the top. What I really wanted was the entire conversation is pulled to the top.

    Also, I think what I have done is crude and somehow, not ‘proper’. For instance, when I update buddypress plugin, all my changes will be gone.

    How do I make sure that the changes remain?

    Also, I have gone through https://codex.buddypress.org/developer/function-examples/bp_activity_add/

    But still am nebulous about:
    You can add items to the activity stream using bp_activity_add(). You’d write a custom function and hook it to the relevant action which fires when a group message has been posted (see a)

    Can you elaborate?

    Lastly, the codex page talks about adding new activity to database. I hope, it makes sure that one gets to see messages posted to only those groups one is authorized to see.

    PS – When I crack it, is there any way I can contribute to the codex so other newbies like me have access to the stuff? How?

    Thanks!

    #233556
    shanebp
    Moderator

    It sounds like a bug.
    Please create a ticket on trac.
    Use the same user / password you use here.

    #233555
    Henry Wright
    Moderator

    Careful not to confuse the bp_get_activity_user_id filter hook with the bp_get_activity_user_id() function.

    See here for the function and here for the hook.

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

    #233548
    peter-hamilton
    Participant

    You should copy the entire buddypress folder from the bp-legacy folder to your root anyway, this will allow easy adjustment of those core templates, and you get easier access to those files to copy code for new page-templates you can add to your root folder.

    Perhaps you might have to alter Brajesh Singh’s code to this, not sure.

    <?php bp_get_template_part( 'buddypress/activity/index' ); ?>

    Another way around would be plugins that allow activity as shortcode to be placed on any page, but more plugins is not necessarily a good idea.

    Good luck

    Peter Hamilton
    Onlijn.com

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

    #233532
    screampuff
    Participant

    Sorry, I should have done it before posting.

    Yes the hook is you mentioned is in that template, I ran the user check and it was successful, however it also removed the main list of achievements.

    Also I was looking here: https://github.com/paulgibbs/achievements/blob/master/src/includes/class-dpa-wpcli-achievements-users-command.php#L33

    And it looks like this is where the list for a specified user is created, but I wasn’t able successfully run a user check on it, but I assume that’s because it’s not going through buddypress.

    #233523
    Henry Wright
    Moderator

    You could be right. I think bp_core_remove_nav_item() might do a little more than just visually removing an item from the member’s nav menu.

    If it helps, this is the method that adds the item to the nav menu.

    #233522
    screampuff
    Participant

    No luck with

    if ( bp_is_user() && bp_is_current_component( 'achievements' ) && bp_is_current_action( 'all' ) )
        return;

    My guess is that since I removed the tab with bp_core_remove_nav_item('achievements'); that it is treating it like Buddypress is disabled like you mentioned above.

    #233519
    Henry Wright
    Moderator

    @screampuff

    I experimented with the code but couldn’t get it to work

    Looking into it now…

    As an aside, whilst looking through the plugin’s code, I noticed that endpoints (example.com/author/username/achievements) are used if you ever have BuddyPress disabled. Just something to keep in mind.

    #233516
    fanmusic
    Participant

    Hi,

    Actually no, thats not it, there is no option for that in buddypress, I need to hide the buttons notifications and settings (that are along with profile, messages groupes etc.)
    it’s in the front office.

    thanks a lot

    PS : someone posted this, I think it’s on the right track but it doesn’t work :/
    [ edited – please use ‘code’ button when posting code ]
    Try this in bp-custom.php

    function fanmusic_remove_profile_nav_remove( $nav ) { 
            
         $nav = '';
                    
         return $nav;
    }
    add_filter('bp_get_displayed_user_nav_notifications', 'fanmusic_remove_profile_nav_remove', 10, 1 );
    add_filter('bp_get_displayed_user_nav_settings', 'fanmusic_remove_profile_nav_remove', 10, 1 );
Viewing 25 results - 14,251 through 14,275 (of 69,016 total)
Skip to toolbar