Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,451 through 5,475 (of 32,690 total)
  • Author
    Search Results
  • 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.

    #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.

    #260980
    danbp
    Participant

    Hi,

    the toolbar belongs to WordPress. How to remove items is explained here:
    https://codex.wordpress.org/Function_Reference/remove_node
    Searching the forum will certainly bring you some more hints too.

    #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!

    #260973
    Masoud
    Participant

    @danbp
    hi.
    1 – first of all i have to thank you for your time, and complete explanation on this. i’m so grateful for that.
    ———
    2 – second, i have to apologize for my limited knowledge.
    i am at the beginning and still learning about php, DB, wordpress, and bp.
    so sorry if i had mistakes in codes.
    ———
    3 – third, i have to say that:
    i was not aware of this, that the usage of components are not the same. just like the example you said about buddy nav bar.
    in this code (which was not working) :

    <?php
     if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) {
     if ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) )
     $bp->default_component = 'mentions' ;
    }
    ?>

    my logic was : if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) i use this code to understand if it’s a component or not.
    then after with this bp_is_active( 'activity' ) it will be checked , if it’s activity or not
    and with this isset( $bp->pages->activity ) to check if activity is to check whether activity is set or not.
    and if all true, then set and define a new nav default tab to mentions with this $bp->default_component = 'mentions'

    but it seems that my logic/codes are wrong from the start 🙁
    ———
    or for this code that i tried, and also went wrong:
    <?php define( 'BP_ACTIVITY_DEFAULT_EXTENSION', 'mentions' ); ?>
    my logic was, the <?php define( 'BP_ACTIVITY_DEFAULT_EXTENSION' part will force the bp, to set the default landing tab to activity.
    and with the second part , 'mentions' ); ?> it will force the Activity component to load on mentions sub-nav item.
    ———
    4 – i have to thank you for the group example. i didn’t know that set such a thing is possible.
    it was clear . i read it. and i’m trying to learn more about it.

    at last , i have to thank you again for the clear explanations.

    #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

    #260967
    Lars Henriksen
    Participant

    The defer%20onload is a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.

    Sorry, I disabled a code snippet that defers javascript – that solved the problem.

    shubhambenara
    Participant

    Hi,

    Wanted a permanent solution so that if a person puts down wrong login details. Still my website doesn’t gets blocked by hosting firewall.

    Please suggest a way or plugin

    shubhambenara
    Participant

    Hi

    Since wordpress login email id will be unique. So i want that same email id should be inserted automatically in a profile parameter.It will help a customer to search somebody by unique mail id.

    OR else suggest a different way to search unqiue person in buddypress.

    #260949
    matt2006
    Participant

    Hi guys,
    I need a solution to add people that signed up via gravity forms “User Registration Add-On” to a specific buddypress group.

    Group-o-Matic Plugin looks like a very good solution:
    https://wefoster.co/buddypress-group-o-matic-adding-members-to-groups-based-on-profile-fields/
    https://wordpress.org/plugins/buddypress-groupomatic/

    But it is very outdated. Or does it still run on an up-to-date Buddypress and WordPress installation?

    Do you know an alternative? Or another solution for my problem?

    Thankyou for your support!
    Cheers,
    Matt

    #260937
    professorq
    Participant

    Hello everyone,

    I just made a fresh installation of WP and BP (by uploading it by FTP) and when I try to activate the plugin, the website returns a “500 error”.

    The website runs on Ubuntu and there’s the error log from Apache :

    [Fri Nov 11 10:26:19.101841 2016] [:error] [pid 3931] [client …] PHP Fatal error: Call to undefined function bp_is_user_inactive() in /srv/www/…/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-caps.php on line 390, referer: http://www&#8230;../wordpress/wp-admin/plugins.php

    Could anybody guess what the problem is ?

    Thank you very much !

    #260930

    In reply to: Hiding register link

    Venutius
    Moderator

    I think you are looking for BP Registration options – that provides you with new member moderation.
    https://wordpress.org/plugins/bp-registration-options/

    If you are new to BuddyPress I’m developing a site aimed at helping people get the most out of BuddyPress http://buddyuser.com

    #260926
    notoriouspyro
    Participant

    Hi,

    Does anyone know why the register button on my site is almost invisible? The text is unreadable.

    img

    This is WordPress 4.6.1, BuddyPress 2.7.2, bbPress 2.5.11 and theme SongWriter 2.0.5.

    #260921
    modemlooper
    Moderator
    #260920
    modemlooper
    Moderator
    #260915
    jbrownwebdev
    Participant

    I’m currently working on a project for a client who wants to have the latest reply from any topic in a forum show up on the main bbpress page under the forum name. Is there a way to get this reply from the database using either built in functions or a wp_query. I also need to show the persons avatar, name, and when it was posted. Any help would be greatly appreciated. Dev site is at http://realestateinvesting.how/topics/. I can’t tell you exactly what version of bbpress they are using as the client hired a developer before me who hid the plugins unless your at a user level higher than admin. WordPress version is 4.5

    valleev
    Participant

    Hi everyone,
    I am currently setting up an association website using Paid Memberships Pro. I have decided to add Buddypress support.

    Everything seems to work well except users cannot upload profile or cover image photos. After clicking ‘select your file’ and selecting an image, the browser pauses for a moment and then nothing happens.
    However it’s possible for the admin user to upload photos via the WordPress “user” management.

    We are using accesspress theme.

    Please help

    #260892
    Masoud
    Participant

    hi.
    i am using latest versions of both wordpress and buddypress.and working on a food website.
    in this website , i wanted to allow only authors to post activity updates .
    (because it will be much easier for users to track their favorite chef recipes in the activity page.)
    so i’ve hide the ” personal ” submenu of activity tab : Activity > Personal (where people can post updates)
    with the help of following code in bp-custom.php :

    function bpfr_hide_tabs() {
    global $bp;
    if ( bp_is_user() && ( !current_user_can(author) || !current_user_can(administrator) ) ) {		
     bp_core_remove_subnav_item($bp->activity->slug, 'just-me');	}
    }
    add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );

    but now when i go to my profile (as a subscriber)
    i will see a 404 page.
    i’ve searched a lot and i noticed that , now that i’ve removed the default activity stream tab , i have to point it to another tab. so when a user profile is loading (or if a user clicks on activity tab),
    instead of default activity> personal . it load activity > mentions / OR / favorites / OR / … (some other submenu than personal )

    so my question is:

    how can i change the default activity stream tab
    from
    Activity > Personal
    To
    Activity > Mentions – Or to – Activity > Favorites – …

    thanks a lot for any help.

    #260890
    zxbchris
    Participant

    Hi,

    I have encounter an issue that I wish that I can get some help here:

    Currently I have created some custom profile field, that allows my user to input his bio and social media field. It displays at the buddypress profile page nicely. However, i will like the bio field that my user has input to be shown on the product page. You can take a look at my page, at the bottom, the “About post author” section
    http://www.chalktalk.com.sg/courses/chalktalk-demo-course/

    currently, this section is using the wordpress default description field to display it here. I will like to get the custom bio field that I created in buddypress to be display here instead. May i know how can i go by doing this? where can i retrieve the ID of my custom field to place here instead?

    Hope to hear from you soon.

    Regards

    Chris

    #260888
    Venutius
    Moderator

    You could try something like this, only it’s not been updated in a while, not tried it myself https://wordpress.org/plugins/buddypress-login-redirect/

    #260887
    Earl_D
    Participant

    It doesn’t set up predefined filters which seems like what OP wanted but this works really well for me and includes widget

    https://wordpress.org/plugins/bp-profile-search/

    #260864
    postable
    Participant

    Good day everyone, I’m new to BP and the forum as well!

    I’m using WordPress with GravityForms to signup users for monthly subscriptions.

    Basically I’m wondering if it is possible to do the following :
    – When a new user sign up via GF > create a private group(business) exclusively assigned to this new user (which will be a group admin)?
    – This admin would be able to invite users(employees) to be added to that exclusive group?
    – Would it be possible to list GF submissions for other forms (uploads for instance) by users (employees & business owners) and/or by Group(business)?
    – Any way to link a Dropbox folder created via Zapier for those specific users and/or group?
    – In the end, we want to use BP capabilities to create a sort of internal communication tool in regards of those uploads made our way?

    Thank you so much in advance !
    Tahar

    #260853
    cummingsbl
    Participant

    My site features Sensei courses that have Buddypress groups/forums associated with them. Once someone signs up for a course, they are automatically in the group/forum. Is there some way to automatically subscribe those learners to the course group’s forum so they don’t have to take any action to be notified when new topics are created? I tried this plugin (https://wordpress.org/plugins/buddypress-group-email-subscription/) but it seems to tack on separate email options functionality instead of using the built-in “subscribe/unsubscribe” functionality.

    #260847
    metalhead
    Participant

    Hello Buddypress buds!

    A lot of people have been talking over the past couple of years about “how to require a profile photo upon registration. And I know it’s a risky thing to do, but many of us are willing to take that risk.

    There are a handful of plugins that try to assist with this procedure, but some fail, and some are only partially successful. The best solution that I’ve found is Xprofile Custom Fields. With this plugin, and a lot of help from the author, I’ve managed to get profile photos to be required in the registration process. However, the issue I’m having is that the users are unable to effectively change their profile photo by using the options in the Buddypress “Profile” section/menu. The user can still click “Change Profile Photo,” and it will accept their upload, but the old photo remains in the member directory & in the user’s profile itself.

    I think there must be a miscommunication occurring due to this new way of gathering the user’s original profile photo. It seems like some code, pertaining to the Buddypress “Change Profile Photo” function needs to be tweaked, but I can not pinpoint the function, which would be the first step towards fixing this issue.

    To demonstrate how I’m requiring the profile photo upload in the registration, here is the function I’ve added to my theme’s functions.php file:

    add_filter( 'bp_core_fetch_avatar', 'my_custom_avatar', 10, 2 );
    function my_custom_avatar( $avatar, $params ) {
        if ( 'user' === $params['object'] ) {
            // Get the src of the original avatar.
            $array = array();
            preg_match( '/src="([^\"]*)"/i', $avatar, $array );
            if ( count( $array ) > 1 ) {
                $old_url_avatar = $array[1];
                // Get the new url of image.
                $uploads = wp_upload_dir();
                $img = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( 5218, $params['item_id'] ) );
                if ( ! empty( $img ) ) {
                    $new_url_avatar = $uploads['baseurl'] . $img;
    
                    // Replace the old src with the new url.
                    $avatar = str_replace( $old_url_avatar, $new_url_avatar, $avatar );
                }
            }
        }
    
        // Return the avatar.
        return $avatar;
    }

    I’d like to mention that I have asked the plugin author about this, but my message on that plugin’s support forum has been deleted twice, making me think I should give the man a break.

    Here are some specifications of my site:

    The site can be reached here.

    It’s running on WordPress v4.6.1, Buddypress v2.7.0, & using BuddyPress Xprofile Custom Fields Type v2.6

    “5218” is the field ID for the “Upload Image” field.

    Thanks and sorry if I posted in an inappropriate forum, I think I chose the right one.

    #260845

    In reply to: BP and AMP

    Ben Hansen
    Participant

    Responsiveness and AMP are actually sort of unrelated concepts any page/site that can have an AMP’ed version probably should have one (for optimal ranking) and it’s sort of the opposite idea of making a one page fits all situations notion that has made responsiveness a first order requirement in building sites these days (it’s like deja vu all over again).

    i believe that WP itself is not fully compatible with AMP yet:

    https://wordpress.org/plugins/amp/

    (see notes)

    so BP compatibility is probably a ways off at this point. Others may know more than me on this subject though. 🙂

Viewing 25 results - 5,451 through 5,475 (of 32,690 total)
Skip to toolbar