Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 17,201 through 17,225 (of 68,918 total)
  • Author
    Search Results
  • #179517
    BuddyBoss
    Participant

    Need to build a site for 1000+ members with profile pages. Imagine a company where each salesman has their own page. The profile pages will allow them to post information, links, videos, etc. on a single page with their own url off the site.

    BuddyPress could be used for this, with some customizing. You’ll have to elaborate on what you mean by “with their own url off the site”.

    I also need logged in members to have access to other areas of the site based on their membership level.

    A membership plugin will be necessary for this.

    Need this to be responsive, and I need to be able to style.

    That all comes down to the theme you pick. Whether you use BuddyPress or a membership plugin or neither makes very little difference. Responsive layout is all determined by the theme.

    BuddyBoss
    Participant

    A 404 error is when the server cannot access a link. Usually a broken or dead link. WordPress uses “pretty permalinks” which basically means it creates virtual links for your site using a structure that you assign to it. If this system is messed up you may get 404 errors all over the place.

    First idea: Go to Settings > Permalinks and set the Permalinks to default. Test your site, and then set Permalinks back to whatever custom structure you had set up. Might fix it.

    Second idea: Make sure you have a page assigned to each BuddyPress component, at Settings > BuddyPress. If not, WordPress may not know where to access the BuddyPress pages and may return 404 errors.

    #179515
    BuddyBoss
    Participant

    Look in your themes for the template file:

    wp-content/themes/[theme-name]/buddypress/members/single/home.php

    If that exists, and is from an older theme, look for a “notification” section in there. If it’s missing this will break the loading of your notifications page.

    In this section:

    do_action( 'bp_before_member_body' );

    After this line:

    elseif ( bp_is_user_forums() ) : bp_get_template_part( 'members/single/forums' );

    Add:

    elseif ( function_exists('bp_is_user_notifications') && bp_is_user_notifications() ) : bp_get_template_part( 'members/single/notifications' );

    That allows the profile to load the notification template.

    iameverywhere
    Participant

    Just a heads up, because I know a lot of people have asked and not gotten anywhere, but you can use this feature + Buddypress Xprofile Custom Fields Type plugin to create a forum badges feature. That was my goal with this and it works. You just need to display:none; the field# class so that users dont see it as an option to edit in their profile. Then you have complete control and can give users badges that show up in the forums 😀

    *flys away*

    #179509

    In reply to: 3rd Sized Avatar

    darqpony
    Participant

    Yes! that! Since I know so little about php coding, I didn’t know WHAT to do instead of the choice it gave me or where to look.

    1. I understand about the upgrade will overwrite thing. If I put this bit of code in my bpcustom.php file, will it override the original “$avatar_size = ( ‘full’ == $type ) ? ‘-bpfull’ : ‘-bpthumb;” or do I have to somehow negate that first in the bpcustom file?

    2. I have this in the bp_core_fetch_avatar:

    function bp_core_fetch_avatar( $args = '' ) {
    
    	// If avatars are disabled for the root site, obey that request and bail
    	if ( ! buddypress()->avatar->show_avatars )
    		return;
    
    	global $current_blog;
    
    	$bp = buddypress();
    
    	// Set a few default variables
    	$def_object = 'user';
    	$def_type   = 'thumb';
    	$def_class  = 'avatar';
    
    	// Set the default variables array
    	$params = wp_parse_args( $args, array(
    		'item_id'    => false,
    		'object'     => $def_object, // user/group/blog/custom type (if you use filters)
    		'type'       => $def_type,   // tinythumb, thumb or full
    		'avatar_dir' => false,       // Specify a custom avatar directory for your object
    		'width'      => false,       // Custom width (int)
    		'height'     => false,       // Custom height (int)
    		'class'      => $def_class,  // Custom <img> class (string)
    		'css_id'     => false,       // Custom <img> ID (string)
    		'alt'        => '',    	     // Custom <img> alt (string)
    		'email'      => false,       // Pass the user email (for gravatar) to prevent querying the DB for it
    		'no_grav'    => false,       // If there is no avatar found, return false instead of a grav?
    		'html'       => true,        // Wrap the return img URL in <img />
    		'title'      => ''           // Custom <img> title (string)
    	) );
    	extract( $params, EXTR_SKIP );
    

    Where do I ‘pass’ thumb or full to it? Or is it already there in this original since I haven’t changed anything yet?

    3. If I change the bp_core_fetch_avatar, do I have to somehow change the first 1.’s solution?

    4. Should I post this on the other site you found my question on? LOL (Hey, I gave it two days before trying a different site! But got the same guy answering… go figure… LOL)

    … and yes, it did use the tinythumb type and it did make the thumb sized avatar fuzzy. I have an avatar for that size. I want it to use it! LOL I want to use ALL my avatars!

    #179505
    mcpeanut
    Participant

    @shanebp ty again shane, i still have not had the chance to try this, but im defo gonna get round to it in the next hour lol, so from reading that article i would make a buddypress folder in my twenty twelve child theme then add an activity folder inside it, then i should copy the activity-loop.php from the directory you specified. and then i would perform the edit you mentioned above? is this correct? just making sure im clear on what to do before doing it.

    or should i just copy the entire buddypress directory over from \bp-templates\bp-legacy\buddypress\ to my child theme before making the edit?

    i havent needed to do anything as of yet with buddypress template files you see as all other edits i have made have been in the functions.php and bp-custom.php

    #179503
    shanebp
    Moderator
    #179499
    mcpeanut
    Participant

    Hey @shanebp ty for your response, i have just woke up and read this and will be trying it in the next hour, i will update you on if this solved my problem or not.

    Create a template overload of this file:
    \bp-templates\bp-legacy\buddypress\activity\activity-loop.php

    i assume by this you mean copy this file over to my child twenty twelve theme and make the edits specified in there?

    #179497

    In reply to: 3rd Sized Avatar

    Henry Wright
    Moderator

    You’d change $avatar_size = ( ‘full’ == $type ) ? ‘-bpfull’ : ‘-bpthumb; to:

    if ($type == 'full' ) {
        $avatar_size = '-bpfull';
    } elseif ($type == 'thumb' ) {
        $avatar_size = '-bpthumb';
    } else {
        $avatar_size = '-bptinythumb';
    }

    But that approach wouldn’t be recommended because when you upgrade buddypress your changes will be lost.

    The tiny thumb will be the default avatar size. If you wanted to use the thumb or full versions then you’d need to pass thumb or full to bp_core_fetch_avatar

    #179496
    Craig
    Participant
    #179480
    shanebp
    Moderator

    > exclude creation of public groups and comments posted in them from displaying in the activity stream.

    Changing to $hide_sitewide will prevent it from appearing anywhere ( including the group activity stream ) except the activity stream for the person who created the item.

    You probably want items to appear in the group stream, so try this in bp-custom.php or your theme functions.php

    function remove_groups_from_activity( $activity ) { 
      if( $activity->component == 'groups' )
        $activity->hide_sitewide = true; 
    }
    add_action( 'bp_activity_before_save', 'remove_groups_from_activity', 1, 1); 

    Of course, this will only apply to new activity items.

    Then you need to ‘reveal’ those hidden items in a group stream…

    Create a template overload of this file:
    \bp-templates\bp-legacy\buddypress\activity\activity-loop.php

    Then before the loop, check if you’re viewing a group and if so, then change the
    bp_has_activities call to:

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&show_hidden=true') ) :

    The activity stream is quite flexible:

    Activity Loop

    mcpeanut
    Participant

    hi matthew, maybee you could you explain a little more?

    All my pages are messed up, the links are all screwy and bunch of other stuff.

    ive looked at your link and everything seems perfectly normal on the twenty fourteen theme, i notice you havent got buddypress installed?
    go to plugins and click add plugins and search for buddypress, then go to buddypress settings and tick what you will want to be using within your website, i would also suggest doing a search for rtmedia plugin for your photos. dunno if this helps as i cant see what you mean with all the links being screwy etc when buddypress isnt even installed?

    #179468
    mcpeanut
    Participant

    found this section in the bp-groups-activity.php
    this seems to relate to the public groups, does anyone have any ideas on what to change here?

    // Set the default for hide_sitewide by checking the status of the group
    $hide_sitewide = false;
    if ( !empty( $args[‘item_id’] ) ) {
    if ( bp_get_current_group_id() == $args[‘item_id’] ) {
    $group = groups_get_current_group();
    } else {
    $group = groups_get_group( array( ‘group_id’ => $args[‘item_id’] ) );
    }

    if ( isset( $group->status ) && ‘public’ != $group->status ) {
    $hide_sitewide = true;
    }
    }

    $r = wp_parse_args( $args, array(
    ‘id’ => false,
    ‘user_id’ => bp_loggedin_user_id(),
    ‘action’ => ”,
    ‘content’ => ”,
    ‘primary_link’ => ”,
    ‘component’ => buddypress()->groups->id,
    ‘type’ => false,
    ‘item_id’ => false,
    ‘secondary_item_id’ => false,
    ‘recorded_time’ => bp_core_current_time(),
    ‘hide_sitewide’ => $hide_sitewide
    ) );

    return bp_activity_add( $r );
    }

    i have tried changing the $hide_sitewide = false; to $hide_sitewide = true;
    but this doesnt work properly.

    #179460
    Rita84
    Participant

    Hi, my buddypress notifications template is missing. Please tell me how to create a simple notifications template. thanks

    #179459
    Rita84
    Participant

    Hi, please tell me how to create buddypress notifications template as it is also missing in my theme ? thanks

    #179457
    modemlooper
    Moderator
    #179445
    boblebad
    Participant

    Hi shanebp

    I have not installed xProfile. i’m using BuddyPress out-of-the-box sort of, i’ve bought a theme called Sweet Date, through that i have installed BuddyPress.

    I have checked every table in the database, nothing says anything about profile in any way.

    All the best
    Carsten

    #179439
    shanebp
    Moderator

    Have you activated groups via the checkbox on this screen?
    /wp-admin/options-general.php?page=bp-components

    Have you assigned a page to Groups via this screen?
    /wp-admin/admin.php?page=bp-page-settings

    The same and more info:

    Configure BuddyPress

    #179437
    boblebad
    Participant

    Thanks for your reply Henry 🙂

    I can’t find anything that looks like that in the database, and when going through the table names, there isn’t anything that sounds like having something to do with xProfile ?

    I need to find the ID of the fields, so i can use them with BuddyPress Profile Progression “bppp_progression_block($user_id)”.

    All the best
    Carsten

    shanebp
    Moderator

    It is simple, if you use the correct parameter, anyway…

    Create a template overload of this file:
    \bp-templates\bp-legacy\buddypress\activity\activity-loop.php

    Then change this:
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>

    To this:

    <?php
    $friends = friends_get_friend_user_ids( bp_loggedin_user_id() );
    $friends[] = bp_loggedin_user_id();
    $friends_and_me = implode( ',', (array) $friends );
    $friends_and_me =  '&user_id=' . $friends_and_me;
    ?>
    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $friends_and_me) ) :  ?>

    Creating a template overload:

    Theme Compatibility & Template Files

    #179403
    BuddyBoss
    Participant

    Not sure why it’s not working.

    For alternative spam plugins/solutions, there’s another more active thread going on here:
    https://buddypress.org/support/topic/stop-buddypress-spam/

    #179402

    In reply to: Stop BuddyPress SPAM

    BuddyBoss
    Participant

    Two more methods that help. I recently had a crazy spam attack – probably 300 fake signups per day. I implemented these two methods and it dropped to near 0.

    1. Change the /register/ slug to something unique. An example would be /create-your-account/, or something of that nature. It just needs to be unique and also make sense in a URL for your user. Spammers targeting BuddyPress look for /register/ as the signup page. It’s all automated so you want to filter them out at the first step.

    2. Add this to your functions.php file in your theme or child theme.

    It presents a dummy field that humans don’t see. Spambots will fill it out, and if the field captures a value it will reject the signup.

    // BuddyPress Honeypot
    function add_honeypot() {
        echo '';
    }
    add_action('bp_after_signup_profile_fields','add_honeypot');
    function check_honeypot() {
        if (!empty($_POST['system55'])) {
            global $bp;
            wp_redirect(home_url());
            exit;
        }
    }
    add_filter('bp_core_validate_user_signup','check_honeypot');

    Credits for #2 go to:
    http://mattts.net/development-stuff/web-development-stuff/wordpress/buddypress/anti-spam-techniques/registration-honeypot/

    I edited it slightly to remove the required redirect. Add that back from his tutorial if you want to. It requires that you make an extra page to send the spammer to, and I personally think that’s not necessary. I actually want them to have no indication their signup failed.

    #179393
    Doremdou
    Participant

    Hello 🙂
    If you uncheck the User Groups in Buddypress settings (first tab) you disable all the Group system that is why all your groups disappeared.

    I guess you are talking about the checking box on the FIRST tab of the buddypress settings, did you see the other one on the THIRD tab (called settings, just after the “Pages” tab) ? (at the top of the page)
    You have a box to check to allow/disallow users to create groups.
    Hope you are talking about that 😉

    #179390
    danbp
    Participant

    Read here exclude_admins_mods

    #179381
    CryptoSteam
    Participant

    Wow. Just installed Buddypress and it complements nicely with BBpress.

Viewing 25 results - 17,201 through 17,225 (of 68,918 total)
Skip to toolbar