Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,151 through 20,175 (of 68,967 total)
  • Author
    Search Results
  • #167211

    In reply to: Creating New Plugins

    modemlooper
    Moderator

    Actually just wrap notice check in if class because bp_include won’t run if bp isn’t active.

    add_action( ‘bp_include’, ‘private_community_for_bp_lite_init’ );

    function private_community_for_bp_lite_bp_check() {
        if ( !class_exists( 'BuddyPress' ) ) {
    	add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' );
        }
    }
    add_action('plugins_loaded', 'private_community_for_bp_lite_bp_check', 999);
    #167208
    Asynaptic
    Participant

    Hi @darrenmeehan looks interesting. Is this like cubepoints vote it up module? where users can like or vote on posts, comments, etc.? can you provide a screenshot?

    #167206
    darrenmeehan
    Participant

    I’m currently working on some support and tidying up code. I’m not sure whether to fix a few things at a time or to do the massive rehaul I’d like to. Smaller amounts would be more manageable though I’d like to know from experienced plugin developers which is easier when you’ve different users using your plugins.

    Information on BuddyPress Like

    #167201

    In reply to: Creating New Plugins

    modemlooper
    Moderator

    You can also wrap everything in a class. Look at bp-loader.php to get an idea of how to do that. I’m guilty of not following the best way out of laziness but I always go over my code and try and perfect as much as possible. I look at how BuddyPress core code is written and look over others plugins that I feel are doing it right.

    #167199
    bp-help
    Participant

    @pewee123
    Dashboard/Settings/General and beside Membership check the box that anyone can register.
    Note:
    This setting really should be checked before installing BuddyPress because if not it will not automatically create the register and activate pages upon activation.

    #167189
    mewrd
    Participant

    https://wordpress.org/themes/

    filter by buddypress responsive

    #167187
    @mercime
    Participant

    @number_6 Only the 5 widgets listed at https://codex.buddypress.org/user/buddypress-components-and-features/buddypress-widgets/ are the BuddyPress defaults. Could you please clarify what you mean by the community navigation widget? Member navigation in WP Toolbbar perhaps?

    #167186
    disqusnow
    Participant

    @mercime thanks. I will try that.

    #167185
    @mercime
    Participant

    @disqusnow Please do not post in more than one forum on the same topic. Closing this topic for original post https://buddypress.org/support/topic/excessive-vertical-gap-in-buddypress/#post-167184

    #167184
    @mercime
    Participant

    @disqusnow the large vertical gap is caused by the style applied to the container of the group avatar and group admin/s avatar. To correct the issue, add the following at the bottom of your theme’s stylesheet:

    #buddypress div#item-header {
    overflow: visible !important;
    }

    #167183
    disqusnow
    Participant

    @mewrd thanks for your prompt reply. What other free theme do you suggest that looks similar, that is WordPress and BuddyPress compatible and also responsive. Ideally am looking for a theme that looks like this current one.
    Thanks in advance.
    Benjamin

    #167182
    mewrd
    Participant

    i am also a newbie but if i am not mistaken the theme you have selected is not buddypress compatible(only wordpress)- and you may encounter even more difficulties later is it possible to change theme?

    #167181
    mewrd
    Participant

    i did read it, but as a newbie its sometimes a little complex and i thought there was a way to bypass dealing directly with php files.so in order to change the single member page layout i have to make changes directly to child-theme php files?im trying to understand the logic because my problem (remove the right side bar from the single member page )was already posted a lot of times and none of the solutions worked for me -the theme i have installed (and child theme i have created) has an option for 3 culomns layout
    so if can you help me – which of these files will help me to remove and how, the side-bar from the single member page )

    the optional files theme/members/single/home.php
    theme/members/index.php

    there is no page.php in members directory.

    i have tried to remove `<?php get_sidebar( ‘buddypress’ ); ?> from them -didnt help

    there are few more files
    in the theme directory left-sidebar.php right-sidebar.php and page.php but i will probably have to use conditional tags <?php is_page_ and since i don’t know how to call this page i dont know how to write this function.

    #167179
    disqusnow
    Participant

    Am using WordPress 3.5.2, BuddyPress Version 1.7.2 and BBPress Version 2.3.2. The theme is a custom theme. This is the the link http://mythemeshop.com/themes/ribbon/
    Here is how its behaving http://www.disqusnow.co.uk/groups/test-group/forum/. Still working on the look.

    #167176
    disqusnow
    Participant

    @mercime Am using WordPress 3.5.2, BuddyPress Version 1.7.2 and BBPress Version 2.3.2. The theme is a custom theme. This is the the link http://mythemeshop.com/themes/ribbon/
    Here is how its behaving http://www.disqusnow.co.uk/groups/test-group/forum/. Still working on the look.

    #167175
    Hugo Ashmore
    Participant

    You don’t edit the dashboard BP pages, they are simply placeholders for BP, you mention the BP codex did you not see this page? :
    https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/

    That should help.

    #167171

    In reply to: Creating New Plugins

    modemlooper
    Moderator

    Mika and John were just pointing out you didn’t need to load that extra file to check for BuddyPress. The code you were using has been copy & pasted over the years from some early plugins.

    #167169
    crashy11
    Participant

    Yes that could work with shortcodes, but You need to put content every time you make post between that shortcode.

    #167168
    crashy11
    Participant

    I tried to put your code and changed user login but its not working.

    echo 'Username: ' . $current_user->user_login . "\n";

    echo 'User ID: ' . $current_user->ID . "\n";

    This situation could be done with custom post type, but another problem is that posts are not showing in category that you mark.

    I found on this forum someone had similar problem like mine:

    Posts are added to the activity stream when the post is saved.

    It’s done in the bp_blogs_record_post() function, which is hooked on to the save_post action.

    There isn’t any easy way to filter bp_blogs_record_post() to stop certain categories appearing, so, your best options may be:

    1. To unhook the whole bp_blogs_record_post() function and replace with your own
    or:
    2. Use a custom post type for your teaser posts – the built in function will only post to activity stream if the post type is ‘post’

    That questions and solution is from this link:
    https://buddypress.org/support/topic/resolved-filter-posts-with-specific-categorytag-from-activity-stream/

    If I go with solution 1. that was offered “unhook the whole bp_blogs_record_post() function and replace with your own”, where to find bp_blogs_record_post(), and just to delete it or?

    #167167
    mgrmn
    Participant

    See answer of @shanebp , or use the shortcodes, as explained http://www.s2member.com/kb/simple-shortcode-conditionals/

    #167165
    crashy11
    Participant

    Ok thank You I will try and let you know.

    What I am trying to accomplish is this. I created couple of categories by membership levels (1,2,3). I restricted those categories in S2 members options so only user that have certain level of membership can see posts in those category.

    Now problem is, when I create post for example for category level 3, everyone (all levels) can see that post in activity stream, that is what I am trying to remove. Posts don’t need to be in activity stream at all, or just to remove activity stream from account that I am making those posts.

    #167161
    @mercime
    Participant

    @disqusnow WP/BP versions? Theme used? Change to Twenty Twelve, is the issue resolved?

    #167159

    In reply to: Creating New Plugins

    modemlooper
    Moderator
    /*** Make sure BuddyPress is loaded ********************************/
    if ( class_exists( 'BuddyPress' ) ) {
    	add_action( 'bp_include', 'private_community_for_bp_lite_init' );
    } else {
    	add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' );
    }
    
    function private_community_for_bp_lite_init() {
    	require( dirname( __FILE__ ) . '/private-community-for-bp-lite.php' );
    }
    
    function private_community_for_bp_lite_install_buddypress_notice() {
    	echo '<div id="message" class="error fade"><p style="line-height: 150%">';
    	_e('<strong>Private Community For BP Lite</strong></a> requires the BuddyPress plugin to work. Please <a href="https://buddypress.org/download">install BuddyPress</a> first, or <a href="plugins.php">deactivate Private Community For BP Lite</a>.');
    	echo '</p></div>';
    }
    #167157
    mgrmn
    Participant

    See this link http://www.s2member.com/kb/s2member-conditionals/ it explains how to get the conditionals using PHP, since I do not have s2 installed can’t get them for you

    Did some more reading for ya.

    try if (current_user_is("s2member_level1")) { echo "Woohaa got LEVEL 1" ; }

    and or echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL;

    #167156
    mgrmn
    Participant

    To see the output of that, you can either put that in your theme/functions.php or i would say bp-custom.php in dir /plugins/pb-custom.php i saw that simular code of yours on stackoverflow.

    Not sure what you are tying to accomplish with that s2, but the issue is probably not that piece of code, but more trying to get the right levels.

    That code all it does, is checking usernames, so if username is “fred” it will remove the bp_core_record_activity but not according to levels. You need to figure out a way getting it to print out the levels. and then do a if or else statement per level.

Viewing 25 results - 20,151 through 20,175 (of 68,967 total)
Skip to toolbar