Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 7,051 through 7,075 (of 32,544 total)
  • Author
    Search Results
  • #242978
    danbp
    Participant

    @bruce7075,

    here a complete solution you can use for friends privacy.

    – Whe’re going to show the friends menu only to… friends !
    – We remove friends activity.

    Copy this to bp-custom.php

    function bpfr_maybe_hide_friends_nav_etc() {
    	$retval = false;
    	
    	if ( bp_is_user() && ! bp_is_my_profile() && ! friends_check_friendship( bp_displayed_user_id(), bp_loggedin_user_id() ) ) {
    		$retval = true;
    	}
    	
    	return $retval;
    }
    
    function bpfr_hide_friends_nav_to_non_friends() {
    	
    	// Stop if condition is not filed
    	if ( ! bpfr_maybe_hide_friends_nav_etc() ) {
    		return;
    	}
    	// otherwise, we remove the nav
    	bp_core_remove_nav_item( 'friends' ); // bp topnav
    	bp_core_remove_subnav_item( 'activity', 'friends' ); //bp subnav (my activities, my groups, etc)
    }
    add_action( 'bp_ready', 'bpfr_hide_friends_nav_to_non_friends' );
    
    // we want also to remove all friends related activities to non friends
    function bpfr_hide_friends_activity_type_to_non_friends( $activity_action = array(), $component_id = '' ) {
    	
    	// if condition is not filed we go back to original output
    	if ( 'friends' != $component_id || ! bpfr_maybe_hide_friends_nav_etc() ) {
    		return $activity_action;
    	}
    	
    	// otherwise, we remove member from context
    	$activity_action['context'] = array_diff( $activity_action['context'], array( 'member' ) );
    	
    	return $activity_action;
    }
    add_filter( 'bp_activity_set_action', 'bpfr_hide_friends_activity_type_to_non_friends', 10, 2 );

    Related topic (other solution, or strict answer to your question) πŸ˜‰
    https://buddypress.org/support/topic/documentation-for-remove_action-activity-streams/#post-242974

    #242974
    danbp
    Participant

    @djsteveb,

    i wouldn’t remove the whole action hook, as other functionnalities from other plugins, can use it. Filtering is even better.

    bp_parse_{component}_args is intended to filter template loops.

    If you remove an {activity} type with this function, it will remove that activity from each activity feed (swa, profile and group). Something like an all or nothing thing.

    bp_parse return values. So if you want to remove something, you have to list what you want to keep to show, and not what to remove !

    Here a snippet, listing all existing BP activity types (2.2.x). Simply comment or remove the type you don’t want.

    function my_bp_activity_types( $retval ) {
    // list of all BP activity types  - remove or comment those you won't show.
        $retval['action'] = array(        
            'activity_comment',
    		'activity_update',
    		'created_group',
    		'friendship_created',
    		'joined_group',
    		'last_activity',
    		'new_avatar',
    		'new_blog_comment',
                    'new_blog_post',
    		'new_member',
    		'updated_profile'        
        );
     
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activity_types' );

    IMPORTANT: copy/paste to bp-custom.php or child-theme functions.php. Used as-is will do nothing ! You have to remove the type you don’t want from the list….

    Third party plugins (like bbPress) use also activity types. Easiest way to get the right type name is to check xxxx_bp_activity table in DB and search for it in the Type column.


    @umar007
    , removing friendship_created will solve your question.

    @djsteveb
    , remove new_avatar ! πŸ˜‰

    #242943
    chlab
    Participant

    Hey thunksalot
    You have to upload widgets to your theme directory, never modify the contents of a plugin directory.
    So e.g. add a “widgets” directory in your theme directory and upload it to there. Then you should see a “Smart BuddyPress Sitewide Notices” widget in the WordPress backend. Activate that and disable the default one.

    jkin
    Participant

    this is not a Buddypress issue.
    I have solved it by editing the theme’s plugin.
    Solved. thanks.

    #242938
    djsteveb
    Participant

    First thing I would do – go to permalinks – note what the settings are – change setting to something else – save. Then change settings back and save.

    see if it now works.

    if not I would check the bp associated pages thing – https://codex.buddypress.org/getting-started/configure-components/#settings-buddypress-pages

    see if works..

    if not – deactivate all plugins except BP… switch to default 2014 theme… see if works..

    djsteveb
    Participant

    @wpguru6
    you MAY have a “bp login widget” under widgets in themes-appearance-widgets and not need to get into the actual php codes.. and there are plenty of other addons in the wp-repo as well ( https://wordpress.org/plugins/search.php?type=term&q=login+widget )

    add a custom post or video with another widget perhaps?

    djsteveb
    Participant

    @jrunfitpro – hopefully one of the bp devs will chime in as to whether or not the comments on static pages, and or if comments on multi-site blog posts / static pages are supposed to be pulled into activity stream when site tracking is turned on.

    This COULD be a bug that needs to be put into trac..

    or it may need to be a feature request to add an additional setting somewhere to enable or disable or something..

    The last bp update was June 18th, 2015 according to the blog and the download page here.

    Not sure how to contact one of the devs to ask if this is an intended action – also not sure if this lack of comment tracking is due to my use of some old plugins, or me not using the default theme – I could convert one of my test sites to see if doing all defaults makes any difference.

    Maybe @boone or @james or someone knows about this.

    I could see many people finding this as a normal setting getting out of control – and I wonder if new comments on an old post should show up in the most recent activity stream , or would be added to a thread WAAY back in the activity if the post / page was created a year ago.. know what mean?

    Hopefully someone else can shed some light on how this is supposed to work so we can know if it’s working and if there are any current methods for modifying the current, or future intended behaviors.

    It’s too bad the title of this thread has Optimize Press in it – as I THINK some of the BP folks will completely dismiss it as it’s main question appears to be about a paid third party thing – yet the issue itself may be related to all bp installs actually.

    #242905

    In reply to: Editing media queries

    rgrober
    Participant

    @djsteveb, I found a way to activate the bp default theme from long ago, so that I could just build upon it:

    Building a Child Theme of the BP Default Theme

    I am not using the “twenty-fifteen” or 2014 theme.

    Thanks again for responding!

    #242902
    djsteveb
    Participant

    I’d love to see some documentation on the ways to use this function..

    I’m having to retire the old “activity block plugin”

    So I guess code should be added to them functions.php… and this is more lightweight than doing a plugin or something in bp-custom? Not as easy to change main themes this way – but I prefer lighter loads with extra dev notes than heavier loads for easier to re-theme once every so many years..

    with activity block I have currently set to “disallow”
    deleted_group_document, new_blog, new_member, joined_group, friendship_created, activity_liked

    What would be the code needed to put in the theme function to block these things with how bp stuff is setup these days?

    remove_action( 'bp_register_activity_actions', 'friends_register_activity_actions', 'bp_blogs_format_activity_action_new_blog', 'bp_groups_format_activity_action_joined_group' );

    I checked hooker io and I do not see any info about friendship created, deleted_group_document, activity liked…

    I am guessing that old code “new_blog” is replaced by “bp_blogs_format_activity_action_new_blog” for current bp stuff.. ?

    “joined_group” = “bp_groups_format_activity_action_joined_group” ?
    “new_member” = “bp_members_format_activity_action_new_member” ?
    friendship created = ?
    deleted_group_document = ?
    activity liked = ?

    would adding “bp_xprofile_format_activity_action_new_avatar” stop the flood of activity showing when someone changes profile pic 10 times in an hour?

    #242900
    djsteveb
    Participant

    @labsupplyorg
    Topics? You mean like bbpress forums topics? What do you mean exactly by “topic pages”?

    I would..
    check your permanlinks perhaps? go there, note what they are.. change them to something else.. save.. then change back.. save again..
    May not be related, but on one of my sites this similar issue crops up every other time I update rtmedia plugin for some reason.

    Does this happen if you disable other plugins?
    Does this happen with the default twenty-fifteen or 2014 theme?

    #242897

    In reply to: Editing media queries

    djsteveb
    Participant

    @rgrober – I am pretty new to this as well. I wonder what you mean by the buddypress default theme – as there was a bp default theme thing some time ago – but from what I have seen (and I have not seen everything) – the bp default theme stuff is legacy – do you mean you have a fresh install of wp / bp and it is using the “twenty-fifteen” or 2014 theme?

    #242896

    In reply to: Editing media queries

    rgrober
    Participant

    Hey, @djsteveb, thank you so much for the response!

    Full disclosure, I’m very new to a lot of this.

    I’m building on the buddypress default theme. I’ve tried to add media queries to style.css in my child theme, but I’m not having any luck.

    How should I go about modifying media queries?

    Any help you can provide is greatly, greatly appreciated.

    #242895

    In reply to: Editing media queries

    djsteveb
    Participant

    @rgrober – What theme are you asking about?
    I am not sure this is even a buddypress related question / issue.

    #242894
    atfpodcast
    Participant

    never mind its theme related. it looked like it did not work in the default 2014

    #242892

    In reply to: site crashing

    djsteveb
    Participant

    @hot-head-videos – have you tried to switch to default theme, and deactivate all your other plugins, and then install BP.. and run through bp’s setup process… then start to enable your other plugins one by one to see if there is a conflict with other plugins / themes at that point?

    I highly suggest deactivating everything and get BP working with just wp and default theme first.

    #242867
    djsteveb
    Participant

    @lcarolinarb – what theme are you using?

    djsteveb
    Participant

    @jrunfitpro – one more question for ya – in your original post are you saying that you have like “static wordpress “pages”” – and when people leave a comment on one of your pages that the info does not get pulled into your activity stream?

    I think I have a similar thing going on with one of my wpmu err.. wordpress multi-site setups – and not sure that the main site’s “page” comments are pulled into the main activity stream either – I have a widget that displays the recent comments on the side, not sure if there is a way to pull newer comments on a page published two years ago into the current / top of the activity stream.

    This may be an issue that is not just a theme thing but other setting somewhere.

    #242864
    djsteveb
    Participant

    @passini – have you tried it using a “default theme” like 2014?

    If so and the problems persists, I would try deactivating all other plugins, and try with your setup running only with buddypress activated and a default theme.

    If making those changes fixes your issue, then you would know that it’s possibly your theme or one of the other plugins causing a conflict.

    #242855
    shanebp
    Moderator

    The recommended method is to turn off other plugins and / or switch to a standard theme like WP 2015.
    Due to permalinks aspect, I suspect another plugin.

    If that doesn’t narrow it down, you can submit a bug ticket here.
    But you should provide better instructions on how to duplicate the issue.
    This is unclear: “To break the site navigate to the profile and page to another page/set of users and the page does an ajax call to load the view”

    jrunfitpro
    Participant

    Here’s what they said,”The reason is because OP uses custom post type for live editor pages, and is handled a bit differently than normal and the data goes into a different database table, but the underlying issue is that some plugins just don’t look for this type of data so that is why they don’t do anything with it. Kind of a double edge sword here honestly. There are many other plugins that have similar issues where either their styles don’t work on live editor pages, or shortcodes won’t render – among other things, but it is due to how that plugin is designed as the developer didn’t take into account all the possible ways it should look for data.”

    Buddpress is cool, but it’s not worth me having to rework a whole theme for.

    #242836
    djsteveb
    Participant

    @nasongo – so you just upload it – then go to your dashboard and it’s blank?
    Are you saying that you did not even get to the dashboard and activate / enable buddypress?
    OR do you mean you uploaded it, then went into the dashboard -> plugins and clicked activate (buddypress)?

    If you just upload BP and your dashboard is broken – something REALLY strange is going on..
    If you mean that you activate it and it goes blank – then I would suggest deactivating your other plugins first – and switch to default 2014 theme (or similar) – THEN activate BP.. run through it’s initial setup stuff – THEN look into which other plugins / themes you want to try..

    #242829
    Nomi
    Participant

    Thanks for reply. I am trying to make my theme buddy press compatible. I am adding only one file which is buddypress/buddypress.php.
    I have checked css buttons are not hidden. If I remove buddypress.php from my theme it displays buttons.

    I am using simple loop in buddypress.php is that ok?

    	<?php while ( have_posts() ) : the_post(); ?>
            <?php the_content(); ?>
           <?php endwhile; // end of the loop. ?>
    #242827
    @mercime
    Participant

    @naumanahmed19 Do provide us with more information so we can help you troubleshoot. What theme are you using? Have you checked if it is just a styling issue? What plugins are activated in your site? Have you checked whether deactivating plugins except BuddyPress resolves the issue?

    #242826
    djsteveb
    Participant

    I am a total noob with this stuff – a quick look with my limited tools and understanding of all things that make this stuff work…

    I THINK your rule here:

    .buddypress ul li {
        background: transparent none repeat scroll 0% 0%;
        padding: 0px;
    }

    Is over-writing the rule here:

    .main-nav li {
        white-space: nowrap;
        float: left;
        font: 12px "OpenSansBold";
        text-transform: uppercase;
        padding: 7px 20px 11px 0px;
        letter-spacing: -1px;
        text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.3);
    }

    Which is what is being used on your home page.

    I think if you find the padding 0px on the .buddypress ul li line and change it to padding: 7px 20px 11px 0px; — that will fix your top nav current issue – now will that adversely affect some other ul li / menu or list somewhere (like a widget or something) – I don’t know.

    I am guessing that someone smarter then me can craft a rule that would work better and more specific.. something like
    .buddypress main-nav ul li

    padding: 7px 20px 11px 0px;
    }

    I have no idea if that would work – my understanding of css is like level 1 and bp is like level 1/2 – lol

    I also THINK that you have a weird triple css / child theme thing going on – again I don’t know, but looking at your css code rules in the firefox inspector, it looks like your pages are loading the exact same css file three times?

    I made a similar mistake with my first child theme – copying the whole shebang into a new child theme folder.. actually what you want is a relatively blank new folder and a relatively blank style.css that only includes rules you are going to overwrite / change from the parent theme.

    I don’t have access to your files or know the exact setup and may even be wrong in my understanding of what the firefox property inspector is showing – but you may want to look into why every rule appears to load the exact same three times and overwrites itself twice..

    hope this helps – not sure any of this is right..

    djsteveb
    Participant

    “They say it’s a BP issue” – Did they specify exactly what this issue is?

    If they could point to a specific bug we could check if it’s been listed in the trac or something..

    If they have no specifics – then it sounds like they simply have no desire to make their theme work well with BP – and I would consider other options. For the prices I saw on their site – I would expect a lot – I think you get the same functions elsewhere for free, and similar options with premium support elsewhere for about $19 –

    if it’s “becoming a popular theme” – I think that’s great, there are a lot of theme’s becoming popular and I hope more and more of them will include extra things for styling BP specific features – even basic themes can at least work with BP just fine – if there is something theme specific that breaks BP stuff then have to ask specifically why.

Viewing 25 results - 7,051 through 7,075 (of 32,544 total)
Skip to toolbar