Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,226 through 16,250 (of 73,983 total)
  • Author
    Search Results
  • #247961
    VersGemerkt
    Participant

    Thanks for the quick reply!

    Ohhhh, I think I know why it’s not working. It’s because order.php is in de Learnpress plugin, and trying to get data from Buddypress. I’m not using your code inside Buddypress only…

    So: order.php in the Learnpress plugin needs to pull the data from the Buddypress plugin. When I change

    Opleiding: <?php
    do_action ( 'user_opleiding_field' ); 
    ?>

    in order.php to your new suggestion it doesn’t work either. Should your new suggestion work with a secondairy plugin (Learnpress?).

    Sorry if I’m asking dumb questions. I’m do have some PHP knowledge, but not enough to figure this kind of stuff out myself. I hope you can help us out!

    David

    #247934

    In reply to: bp-custom.php bp nav

    codyt
    Participant

    It’s working now but the priority didn’t change anything. I’m not sure why it’s working now. I did figured out how to turn some of the tabs off courtesy of this site. However I still can’t find a way to add my own tab named “characters”. Maybe I just have to make a copy of a tab, change the name and then link it to the the page I want. If I find out how, I will let you know.

    Thanks Henry!

    #247932
    @mcuk
    Participant

    Ahh I see. I haven’t used that approach personally for my custom CSS. Just got the one CSS file (style.css) for everything at the moment, WP Theme and BuddyPress. I use comments and sections to organise it.

    I can only think of a few things to try, though you probably have done these already (ensure the cover image option is ticked in the WP dashboard):

    1. Remove all your custom CSS files temporarily and see if the cover image appears by default. If it does, then the problem is probably isolated to your CSS rather than with BuddyPress or your main Theme.
    2. Use the browser developer tools (F12) to see if the id for cover image appears in the code even if you can’t see anything on screen. If it does try manipulating its attributes to bring it to the foreground as it may be hidden beneath other layers (z-index). Or display: none layers around it to see what is hiding it.
    3. Check the id’s against your CSS. New id’s were obviously introduced for the cover image which weren’t in old BuddyPress CSS files which you may have used as a base for your custom one.
    4. Try another theme with your custom CSS to see if it is a theme issue
    5. Put all your custom BuddyPress CSS into the standard style.css file within a child theme and see if it works that way.

    #247929
    aldin_abdagic
    Participant

    HI ! I have the same problem … I understand what coeycoey writes , here is the explanation ;

    Add BuddyPress Styles to a Theme

    Everything is great and everything works , just does not appear cover image … ??? any Solution ?

    #247927
    danbp
    Participant

    I’m pleased to announce my new plugin Buddy Progress Bar !

    A BuddyPress plugin that use a point system to display a progress bar or progress percentage for any of completed member’s xprofile fields and/or uploaded custom avatar.

    Buddy Progress Bar helps any site administrator to kindly remember his community members to complete their profile in a clear, significant and non-obstrusive way.

    A widget is also available, which let you show a progress bar outside of the positions you can activate in the settings. To get this plugin to work, BuddyPress xprofile component must be active.

    https://wordpress.org/plugins/buddy-progress-bar/

    #247919
    @mcuk
    Participant

    Maybe I’m misunderstanding you, not sure from your description whether or not you have already created a child theme with your own CSS file?

    https://codex.wordpress.org/Child_Themes

    You can just make all your styling changes in that instead of copying various whole CSS files from the BuddyPress folders (and your changes will be kept whenever WP or BP are updated).

    Also double check the box for cover photo is ticked on your WP dashboard if you want your users to be able to use them.

    #247910
    dlongm01
    Participant

    OK – I found it:

    /* Buddypress rich text toolbar – hide fullscreen button*/
    .mce-i-fullscreen::before {
    display:none;
    }

    #247908
    dlongm01
    Participant

    In fact I have found a reasonable solution using CSS. I found some key clues on in the support forum for this plugin: Buddypress Xprofile Custom Fields Type (though I’m not using that plugin).

    If anyone has any advice about how to improve this I would be glad to hear it. Thanks

    /* Buddypress profile field description position*/
    .editfield {
    position: relative;
    top: 5px;
    }
    .editfield label {
    font-weight:bold;
    margin-bottom: 30px;
    }
    .input field_4 {
    margin-top: 5px;
    }

    form.standard-form p.description {
    margin: 0 0 15px;
    position: absolute;
    top: 20px;
    line-height:1em;
    }

    #247906

    In reply to: Favourites in Sidebar

    shanebp
    Moderator
    #247899
    shanebp
    Moderator

    Where are you viewing the profile field?
    On a member profile page?
    If so, you can use this php function bp_the_profile_field_description() in a template overload of buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php.

    If you mean the register page, create a template overload of that template
    buddypress\bp-templates\bp-legacy\buddypress\members\register.php
    and move the call to bp_the_profile_field_description() wherever you want it.

    I don’t think you can do it with just css.

    #247896
    danbp
    Participant

    Hi,

    generally, a 508 error means that your website is hitting one or more of the hosting account’s virtual resource limits: CPU Usage, RAM Usage, I/O usage or Entry Processes.

    first thing to check is your server ressources. Use phpinfo() to get thoose information.

    Then compare with minimum requirements for a WordPress/BuddyPress install.

    In the meantime, open wp-config.php and activate debug mode (set it from false to true) and see if you receive some notices or warnings.

    If you get a php error, such as a missing tag, you have to repair that. Or upload a new copy of an eventually mentionned file. Or if you did some custom coding somewhere, remove it or revert back…

    If there is no error mentionned, it is your host plan which is not taylored for WordPress/BuddyPress. In this case, you have to change your host or plan, if you want to use the full power of WP !

    You will be confortable with at least php 5.5 and a memory_limit of 64 mb

    #247893
    przemyslawrosa
    Participant

    Sorry, when i wrote every plugin i mean buddypress / bbpress / time-bank. Theme is also trnslated in 100%

    #247886
    danbp
    Participant

    Hi,

    check your theme translation or menu settings and eventually your plugins (if you use some).

    On your members page source code, there is a long phrase in english inside a div which is not from BuddyPress:
    You can browse all activities here. Use menu below if you want to browse only specific activities like […]

    The theme was published in 2013, it could be possible that it is not updated for latest BP version…

    #247880
    vinaysagar4u
    Participant

    Hi Valuser,
    That’s exactly what I mean Valuser. The way they do it right now is by using third party plugins called BP Multinetwork by segregating databases for every subsite.

    My idea is that, it need not be segregated to achieve this. Actually, WordPress does this very well with Multisite. Buddypress can do it too if it stored the blog ID value in database for every activity captured, groups and members. That way you can design options to filter members of the present site, activity and groups that can all have separate and sitewide data. This way they don’t have to segregate database by the BP Multinetwork plugin and still have separate activity, groups and members. Better thing is you can “Internetwork”. Which means, you can have a group that is subsite specific and still build an option to share it with another subsite/main site as well, within the network/multinetwork platform.

    #247878
    pnet
    Participant

    Can you point me in the right direction on this?

    I am still kind of new to buddypress 🙂

    #247877
    Andrew
    Participant

    Thanks Henry. I’ve got more info on this to help the core team fix this issue.

    I think all WordPress conditionals are not working correctly inside the bp_after_has_activities_parse_args filter. Only BuddyPress conditionals are working inside it.

    I also have custom member pages too using bp_after_has_members_parse_args, but WordPress conditionals inside that are all working fine, example:

    // filter member pages
    function cm_members_filter( $retval ) {
    
    	if ( is_page('custom-page-3') ) {
    		$retval['per_page'] = 1;
    	}	
    	
    	if ( is_page('custom-page-4') ) {
    		$retval['per_page'] = 5;
    	}	
    	
    	if ( is_search() ) {  
    		$retval['per_page'] = 3;
    	}	
    		
        return $retval;
    }
    add_filter( 'bp_after_has_members_parse_args', 'cm_members_filter' );

    It is just the activity parse args that is having problems with WordPress conditionals. I can provide further info to help figure out why WordPress conditionals don’t work correctly inside bp_after_has_activities_parse_args, it has something to do with the way ajax is used on the load more button to load more items:

    If I remove activity ajax features by removing <div class=”activity”></div> or by removing bp-templates/bp-legacy/js/buddypress.min.js. The load more button now works like a pagination next page button (similar to the members directory pagination). This makes the WordPress conditionals work fine and all my custom activity pages are now filtering correctly.

    So to conclude, WordPress conditionals are working OK inside bp_after_has_members_parse_args, but they are not working correctly inside bp_after_has_activities_parse_args unless the activity ajax is removed.

    #247876
    shanebp
    Moderator

    You will need to create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php

    And write a conditional to handle the visibility of that field.

    #247873
    Paul-tCGs
    Participant

    Thanks for the quick replies @venutius and @henrywright

    re: memory bumps, I found elsewhere that edits to the wp-config.php would solve, but it didn’t… I’ll look at the php.ini next.

    re: which plugin, I’ve narrowed it down to the main buddypress plugin.

    A symptom no doubt, when I attempt to bring up the the member directory, I get…

    MEMBER DIRECTORY
    [UPB_profile_list]

    and my own photo uploaded to replace the default avatar, is not showing on my own profile.

    #247869
    shanebp
    Moderator

    See this for an example of collecting user ids based on xprofile field:
    https://codex.buddypress.org/developer/loops-reference/the-members-loop/

    If you plan to use the members loop code, BP will reorder the members based on last_activity.
    But you can preserve the order by using the user_ids field.
    More info: https://codex.buddypress.org/developer/bp_user_query/#code-examples

    You may be able to accomplish your task via bp_parse_args, but I’m not sure if you can preserve the order:
    https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

    #247861
    CoeyCoey
    Participant

    Hello all,

    I copied the buddypress.css and buddypress.min.css from buddypress/bp-templates/bp-legacy/css to mythemes/css folder, and I began editing the file to make some changes and it worked fine. However, I noticed the cover image is missing. The profile photo is fine. I thought I did something to the CSS, so I copied it over, but it is still missing. If I disable the mytheme/css folder, it works normally. I would like to edit the css in the mythemes/css folder so I don’t lose changes on edits. Is there anything else I need to do so that the css files work correctly from outside the buddypress folder?

    Thank you

    Just updated, so latest version of WP and BP.

    #247859
    synfrag
    Participant

    That works to an extent but it filters everything on the page and what I need is essentially two user’s activity streams on the same page. Any advice on how to make that work? It sounds like someone was trying to do something very similar in this post but it was years ago

    #247854
    Henry Wright
    Moderator

    Ah OK, cool. In that case you may also be interested to hear about bp_parse_args(). I think it’s a better way of doing what you want. This approach will also handle the loop pagination for you. For example:

    function my_func( $ret ) {
        // Your custom stuff here. 
        return $ret;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_func' );

    See the Using bp_parse_args() to filter BuddyPress template loops article for a complete guide.

    #247848
    Henry Wright
    Moderator

    sw_partner_activity isn’t a BuddyPress hook. Are you using a plugin?

    #247844
    Henry Wright
    Moderator

    is_page() has been problematic for me in the past (when using with BuddyPress) but I thought those problems had been resolved. Feel free to open a Trac ticket for this.

    Andrew
    Participant

    I’m filtering my activity pages using the bp_after_has_activities_parse_args filter and using conditionals depending on the activity page. But my conditionals are not working correctly for my custom pages. I’m not great with PHP but I’ve followed the instructions the best I can to put this together and I hope someone can help me with this to find a work around.

    Here is what I’ve done.

    I’m creating custom activity pages by setting them up in admin>pages>add page ‘custom-page-1’, ‘custom-page-2’ etc. I’ve setup each of these pages similar to the activity/index.php to create the activity loop:

    <div id="buddypress">
    
    	<div class="activity">
    			
    		<?php bp_get_template_part( 'activity/activity-loop' ); ?>
    				
    	</div>
    </div>

    Now with the parse_args filter, I can use conditionals to filter some of the activity pages, but my conditionals are not working correctly for my custom pages – they work to begin with but when I click the load more button, the new items are not being filtered. Here is an example to show you what is working and what is not (using the per_page filter for demonstration):

    function cm_activity_filter( $retval ) {
    
    	// The following conditionals to filter are working fine:
    
    	// Activity directory
    	if ( bp_is_activity_directory() ) {
    		$retval['per_page'] = 2;
        }
    	
    	// User profile just-me component
    	if ( bp_is_current_action( 'just-me' )) {
    		$retval['per_page'] = 3;
        }
    	 
    	 // A custom component in the members profile I setup using bp_core_new_nav_item
    	 if ( bp_is_current_action( 'custom-compenent' )) {
    		$retval['per_page'] = 10;
        }
    
    	
    	
    	// The following conditionals to filter my custom pages are not working when the load more button is clicked :
    	
    	// custom activity page 1
    	if (is_page( 'custom-page-1' ) ) {
    		$retval['per_page'] = 2;
    	}
    	
    	// custom activity page 2 
    	if (is_page( 'custom-page-2' ) ) {
    		$retval['per_page'] = 8;
        }
    	
    	
    	
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'cm_activity_filter' );

    So the is_page() conditionals are not working when the load more button is clicked. Is there a way to get this to work correctly. Any help appreciated.

Viewing 25 results - 16,226 through 16,250 (of 73,983 total)
Skip to toolbar