Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,526 through 12,550 (of 73,985 total)
  • Author
    Search Results
  • #261022
    nicolabajo
    Participant

    Good day I created new website with buddypress…
    I have problem with Avatar uploading…

    Everytime I upload any picture as my avatar/profile picture..always get an HTTP error…how can I fix this…hope someone help me..im only new…thank you

    aapi001
    Participant

    Hello I had a question in continuation of the topic below ref removing the delete-group from group admins using the code provided below :
    https://buddypress.org/support/topic/how-to-remove-tabs-from-group-admin-nav-2/#post-261003

    function turker_remove_group_admin_tab() {
    	if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
    		return;
    	}
    
    	// Add the admin subnav slug you want to hide in the
    	// following array
    	$hide_tabs = array(
    		'group-avatar' => 1,
    		'delete-group' => 1,
    	);
    
    	$parent_nav_slug = bp_get_current_group_slug() . '_manage';
    
    	// Remove the nav items
    	foreach ( array_keys( $hide_tabs ) as $tab ) {
    		bp_core_remove_subnav_item( $parent_nav_slug, $tab );
    	}
    
    	// You may want to be sure the user can't access
    	if ( ! empty( $hide_tabs[ bp_action_variable( 0 ) ] ) ) {
    		bp_core_add_message( 'Sorry buddy, but this part is restricted to super admins!', 'error' );
    		bp_core_redirect( bp_get_group_permalink( groups_get_current_group() ) );
    	}
    }

    Dan writes:

    Get Ready! 2.4.0 will introduce important changes in Groups homes

    “The function is still working, but not completely (tabs aren’t hidden). You probably need to complete it with $component (read above document)”

    This code was written circa 2.2. Im not sure where/how to add the $component to get the code to work. Any assistance is appreciated thank you.

    #261020
    mashauri
    Participant

    I tried to de activate buddypress so I could re-activate t nd see if it made a difference. Bt I was unable to do as as I receved the following error:
    Fatal error: Call to undefined function bp_core_get_user_displayname() in /home/mashauri/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1416

    Please NOTE: this is input to my main query – not the issue itself of incorrect passwords

    #261019
    mashauri
    Participant

    I have a user who keeps being unable to access their account. They get a message that they are using incorrect passwords. I have tried:

    Putting in new passwords from the administrative area (multiple times)
    Resetting their passwords using “forgotten password” (multiple times)
    I have checked the database and the account looks to be normal. I have checked the database to be sure the password changes when we change it – and it does.
    I deleted the account and opened a new one. That worked for a while, but then they got locked out again with the same message.
    The only clue I have is that if I go into “users” and go to their account and click “log out everywhere”, the account seems to open again.

    Please help – he is a paying customer and I have had to refund him a months fee because of this problem. (I also had a previous user with the same problem – although with their new account that seems to be OK now).

    As admin I am able to login OK.
    Other users can also login OK.

    I am using WPLMS and buddypress 2.7.2
    WordPress 4.6.1 running WPLMS theme.
    My site is http://www.mashauri.org

    #261018
    jaumearagay
    Participant

    I have:

    a.- Updated to BP 2.7.2. <– Still same problems but warnings hidden by my code.

    b.- Removed the buddypress folder in my theme with edited files and checked. <– Still same problems: Warnings (as my code did not hide them), “Moderators” tag and “no mods” string.

    c.- Downloaded and activated Twenty Sixteen theme. <– Same as in previous step.

    And I get the same warning explained in the first entry in this post so it’s not about my modified files and it’s not about a theme problem.

    There are still two problems:

    1.- The warning points to get_group_moderator_ids( $group_id ) in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php

    I don’t have (or have had) moderators in any group so, “Creating default object from empty value” <– What default object from what empty value?

    2.- The problem is somewhere else: In line 33 of the group-header.php file (in groups/single/ ) we find this line:

    if ( bp_group_has_moderators() ) :

    where “bp_group_has_moderators()” is giving a false “true” value as I don’t have moderators in any group so it should not execute in the first place. And after the Moderators tag it says “no mods”, so it on a later step recognizes there are no moderators!!!

    Has the bp_group_has_moderators() function or get_group_moderator_ids( $group_id ) function been altered? Or the data about mods and/or admins in the groups?

    Because one of them creates two warnings (one before listing the admins and one before listing the mods) that were not there before and also shows a “Moderators” tag that did not appear as the if ( bp_group_has_moderators() ) returned the FALSE value my no-mods groups “deserve” (which it later recognizes when adding the “no mods” string) that now returns this “buggy” TRUE value and shows the tag.

    #261012
    bcanr2d2
    Participant

    I currently have used the example shown in the following post https://buddypress.org/support/topic/custom-avatar-upload-page/ and then edited bp-core-template.php to change the function that lets it know when to load the full avatar loading page.

    My issue is now that the crop image is not functioning, any help?

    #261009
    danbp
    Participant

    Hi,

    wherever your members registered from (wp, bbp or bp), they are all in the same table: wp_users. To be counted on BP’s member directory, these members must have been loggedin at least once.

    Did you synchronized WP and BP members (see BP settings) ?
    Once done, go to Tools > BuddyPress and run all options one by one. Do also the same for Forums.

    #261008
    danbp
    Participant

    @dkelm,

    if you’ve found a bug, please refer it on Trac.
    Login with same credential as on this forum, describe the issue and give any details to reproduce it.

    https://buddypress.trac.wordpress.org/report

    #261006
    dkelm
    Participant

    @henrywright This is a valid bug…
    Please fix this issue.
    Only happens when users are not logged in
    The site isn’t doing a redirect to login screen

    Do I have to rollback to 2.5.3?

    Reproduce the bug by logging out then entering in the url…

    This should be an issue for every BuddyPress site!!

    #261005
    Bingo Bongo
    Participant

    Hey Guys –

    I’ve done some searching, but can only find posts from X years ago that suggest manually editing the DB.

    The situation with our site (www.zetaunit.com) – is that it was first a WordPress site – then installing bbpress for forums, and now buddypress. So all our Members were registered before installing BuddyPress.

    I imagine this is not an uncommon situation, but I’m not sure.

    We have 100+ Members – but if I go to e.g. http://www.zetaunit.com/members/ – only 15 show up.

    If not implemented already (maybe I missed it?) – a simple button in Tools, to Activate All Members, would be a great feature for these cases where Buddypress is not installed with zero Members first.

    I want our community to be able to just go to Members, and start adding friends – but at the moment, unless I’ve missed something, they can’t do that, only with the 15 that recently posted in the bbpress forums, or however that ‘recent activity’ thing works.

    Maybe I missed an obvious option somewhere? If so, please point me in the right direction 😉

    Many Thanks,
    (WP V 4.6.1, Avada Theme V 5.0.3)

    Venutius
    Moderator

    Have you thought about just using BP Registration Groups?

    #260998

    In reply to: Registration problems

    Venutius
    Moderator

    Taking a look at it you do not have a register page by the looks on things, are you sure you have created a register page and associated that to the BuddyPress Register component?

    #260996

    In reply to: Registration problems

    Venutius
    Moderator

    Have you logged out in order to try to register?

    Did you set up the registration page as a menu item? If so what happens when you are logged out and try to access it?

    I’m setting up a website for people looking to set up BuddyPress social networks, you might want to take a look. It includes a guide to setting up and using BuddyPress for the first time:

    http://www.buddyuser.com

    #260994
    valleev
    Participant

    Thanks @modemlooper, I tried changing the members page to something else, then changing it back but the “Members” item still does not appear in Appearance/Menus/Buddypress.

    #260989
    antaluk
    Participant

    Hi all,

    First things first, I am using the below version of WordPress and BuddyPress.

    WordPress 4.6.1
    BuddyPress 2.7.2

    Don’t want to make the site public as it is for internal use for our company only, but the issue is pretty straight forward but complicated to fix. Since BuddyPress has been updated the user profiles will no longer function correctly, instead whenever any one clicks on their profile it redirects them back to the main home page.

    So far I have tried resetting Permalinks, checking for spaces in usernames and reverting back to older versions but nothing seems to work.

    It isn’t just the basic profile that this happens to, all the buddypress functions inside push a redirect to the home page.

    Any suggestions would be great appreciated!

    Regards
    Gary

    BexxBl
    Participant

    I’m currently want to display a ribbon on certain profile pictures depending on the membership level my users have.

    I’m currently rocking this code to achive this on the member listing and friendship listing:

    CSS:

    #buddypress #members-list li{padding-left:20px;}
    #buddypress #members-list li .action{margin-right:20px;}
    #buddypress #members-list li.premium {background-color:#fdf8e8;}
    .ribbon {
      position: absolute;
      left: -5px; top: -5px;
      z-index: 1;
      overflow: hidden;
      width: 75px; height: 75px;
      text-align: right;
    }
    .ribbon span {
      font-size: 10px;
      font-weight: bold;
      color: #FFF;
      text-transform: uppercase;
      text-align: center;
      line-height: 20px;
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg);
      width: 100px;
      display: block;
      background: #79A70A;
      background: linear-gradient(#E9AD00 0%, #F79E05 100%);
      box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
      position: absolute;
      top: 19px; left: -21px;
    }
    .ribbon span::before {
      content: "";
      position: absolute; left: 0px; top: 100%;
      z-index: -1;
      border-left: 3px solid #F79E05;
      border-right: 3px solid transparent;
      border-bottom: 3px solid transparent;
      border-top: 3px solid #F79E05;
    }
    .ribbon span::after {
      content: "";
      position: absolute; right: 0px; top: 100%;
      z-index: -1;
      border-left: 3px solid transparent;
      border-right: 3px solid #F79E05;
      border-bottom: 3px solid transparent;
      border-top: 3px solid #F79E05;
    }

    functions.php:

    function bp_visibility_add_member_visibility_css_class( $classes ) {
    	global $members_template;
    
    	if (user_can($members_template->member->id,'s2member_level1')){
    		$classes[]  = 'premium';
    	}
    	if (user_can($members_template->member->id,'s2member_level0')){
    		$classes[]  = 'basic';
    	}
    	
    	return $classes;
    
    }
    add_filter('bp_get_member_class','bp_visibility_add_member_visibility_css_class'); //Mitgliederliste
    add_filter('bp_user_query_populate_extras','bp_visibility_add_member_visibility_css_class'); //freundesliste
    
    function add_ribbon(){
    	global $members_template;
    
    	if (user_can($members_template->member->id,'s2member_level1')){
    		echo "<div class='ribbon'><span><i class='fa fa-diamond' aria-hidden='true'></i></span></div>";
    	}
    }
    
    add_action('bp_directory_members_item', 'add_ribbon');

    As you can see i added my function ‘bp_visibility_add_member_visibility_css_class’ to the 2 different filters with:

    add_filter('bp_get_member_class','bp_visibility_add_member_visibility_css_class'); 
    add_filter('bp_user_query_populate_extras','bp_visibility_add_member_visibility_css_class'); 

    It works just fine but i also need to ribbon to apear in the following places on every member profile with the membership level 1:

    profile picture/avatar
    activity feed
    group activity stream
    Does anyone knows to hooks/filters i need to attach my function and achieve this.

    By the way I’m currently running WordPress Version:4.6.1. and BuddyPress Version 2.7.2

    Thanks for the help guys. It’s much appreciated.

    If you need more Information please ask.

    #260984
    danbp
    Participant

    I don’t understandd this paranoïd question: So this is another case where they decided to leave out any option.

    – Who are “They” ?
    – What are the other case ?
    – Which options are leaved out ?

    Really mysterious, unless the truth is elswhere ? May be in the Twilight Zone ?

    You have the option to disable the Toolbar under Settings > BuddyPress > Options.
    You have the possibility to use BP’s login widget under Apparence > Widgets

    #260982
    danbp
    Participant

    Hi @vickievik,

    the right question here would be how to make my theme compatible with buddypress.

    The thing to understand is that BP use dynamic content for its page and that these page are NOT ordinaty WP pages.
    For each content, BP fires a so called template-part.
    Lets take as example a profile page

    The slug is /members/ which exist as “page” on wp’s page list. This wp page has no content and also no model or template. It’s just a “slug” in the wp ecosystem.

    When you’re on a profile you have the page(aka /members/) but also many template parts, depending what you’re doing on that profile. Aside the common parts header – content – footer, you’ll find also personnal activity, frineds, groups, mentions, notifications, messages and not the worst, profile settings. All this on the same “page”.

    Most theme mistakes are at this point. People try to design the page, instead to work the template parts.

    When you design a theme, you usually design something for a page, independantly from any plugin. This structure is used by any Twenty Theme and you can follow them as model, because these themes are bullet proof and systematically used by all wp devs when building (in our case) BuddyPress

    BP can be used with almost any existing theme, so far this theme is respecting WP’s coding standarts.

    If you have brocken elements, and specially thoose using JS, it could be due to missing ID or class or even more simple, some missing instructions/conditionnals in your theme.

    BP’s template parts are designed to fit with a majority of themes. The best to do, at least while creating your first theme, is to use BP “as is” and build your theme around thoose existing parts and not to remove/modifying BP arts to fit your creation.

    #260979
    EMar
    Participant

    Hi,

    There are two links on the left side of the admin toolbar: Login & Register
    How do you remove them? does Buddypress add them? and where is the option to disable them if so?

    img

    #260977
    adambware
    Participant

    I want non-users of the website to be able to view a Private Group’s member list. But I cannot find anywhere I can catch this redirect.

    So far I’ve found..

    This no access redirect must be happening from a call to the function bp_core_noaccess

    I found the filter bp_group_user_has_access within the function bp_groups_group_access_protection … But this does not appear to fire for the group members screen when a logged out user tries to access.

    I’m currently on WordPress version 4.5.4 and BuddyPress version 2.5.2

    Thanks in advance!

    #260976
    livingflame
    Participant

    Hi there!

    Hi,
    I am looking for solutions to How to automatic scroll down page when I click for example “messages” or “notifications” or “friends” on Main Menu.

    I would like to when user click “notifications” he can see your notifications instantly (automatic scroll down to “notifications” or whatever).

    Please help!

    –––––––

    Reference: https://buddypress.org/support/topic/scroll-down-user-profile-page-2/

    Solution there: Nothing.

    matt2006
    Participant

    Hi BuddyPress community,
    can you help me with this:
    How can I addd a member to a certain buddypress group automatically if he ticks certain checkbowes in his member profile?

    Thank you!
    Cheers,
    Matt

    #260972
    Earl_D
    Participant

    This might be a good place to start if you looked at it already?

    BuddyPress Theme Development

    #260971
    vickievik
    Participant

    Hello friends,

    I spent a long time to learn using wordpress and create my own beautiful custom wordpress themes…

    But for the last 3 days I am tryiing to run BuddyPress with the custom theme I designed…and after 3 days I am stuck tired of not being able to make my theme compatible with Buddypress…

    I searched n read hundreds of topics but still I m confused…and buddypress is not working welll with my theme…

    Kindly someone help and let me understand how to make buddypress compatible with my theme…or you can say how to make a buddypress compatible wp theme

    problems
    – cover image is not showing
    – activation page not loading
    – registration page not loading
    – profile image cropper not working…

    and a lot of other errors.. Pls let me know how to add buddypress to my theme… and make it work properly….

    Million Thanks in Advance
    Vickievik

    #260970
    davehakkens
    Participant

    OK, we got it to work in a different way. Special thanks to @coffeywebdev for the help.
    For those interested:

    This snippet is used in the functions.php to get the locations from the profile fields and show the flag image.

    function dh_get_flag_by_location($country){
      if($country <> '' && !empty($country)){
      $country_filename = get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '.png';
      $country_path = get_stylesheet_directory() . '/img/flags/' . sanitize_file_name($country). '.png';    
         if(file_exists($country_path)){
           $html = '<img src="' . $country_filename . '"/>';
         } else {
           $html = $country;
           echo '<!--' . get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '-->';
        }
      echo $html;
      }
    }

    Then we needed to change 2 templates to show this flag image in
    the Bbpress forum replies and on the buddypress members page. So we added the code necessary to show the flag
    bbpress/loop-single-reply.php
    <div id="country" style="float:left;margin-right:.5em;"> <?php $user = get_userdata( bbp_get_reply_author_id() ); $country = xprofile_get_field_data( 42, $user->ID ); dh_get_flag_by_location($country); ?></div>

    buddypress/members/members-loop.php
    <div class="member-location"> <?php $country = bp_get_member_profile_data('field=Location'); dh_get_flag_by_location($country); ?></div>

Viewing 25 results - 12,526 through 12,550 (of 73,985 total)
Skip to toolbar