Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 2,351 through 2,375 (of 22,602 total)
  • Author
    Search Results
  • #282205
    lookingahead
    Participant

    OH guess what…? 😀 Figured it out.

    I have a solution that so, sooo…..SSOOOOOOO many other people have been looking for, and I’m elated to say I’ve found it.

    Been cruising Stack Exchange, various WordPress plugin support threads, installing plugin after plugin, reading blogposts made by developers, comments made by disillusioned masses….I mean, it’s endless.

    But THANK GOD I found a solution!

    So it turns out that the code that BuddyDev mentioned was not to blame for the 500 error I mentioned in my intro. It was actually due to one of the two plugins that is recommended in BuddyDev’s tutorial (and they are now fixing that bug). 🙂

    I figured this out as I tried to reproduce the error while activating plugins in a different sequence.

    The first time I did this, I’d had BuddyPress disabled when I’d installed both plugins. I’d also already put the code mentioned in their tutorial into my bp-custom file. I then activated BuddyPress, and the site failed.

    This time, I had BuddyPress already activated, then installed and activated one of the two plugins BuddyDev recommended to use in the tutorial…and all was well. THEN…I installed the second plugin. And upon clicking ‘Activate’ the site failed again. NOTE: on the second attempt to reproduce the 500 error, I hadn’t put the code from the tutorial into my bp-custom file….

    And according to BuddyDev, even before I tried to reproduce the error, the bp-custom code I was using was sound.

    So when the site failed upon my attempt to reproduce the error, I knew: that plugin was to blame.

    Then, I found out more about that plugin…it is designed to be used for users to have extra fields to fill out upon signup, fields that would show in their Member Profile. And I have Member Profiles disabled. Wa-la!

    I then asked BuddyDev if I needed the plugin that failed…and THANKFULLY they said, ‘no — not needed for what you want to do.’

    WHEW!! 😀

    So, a summary:
    – Use custom code in bp-custom (pasted below)
    – Use one plugin in particular from BuddyDev
    – Do not use another plugin recommended by BuddyDev

    The plugin to DEFINITELY use, that was listed in their tutorial: ‘BuddyPress Member Type Generator’…that affects the ability for Webmasters to set custom member types AND an avatar specific to every custom type created! 😀

    The other plugin that was recommended in that tutorial, that is NOT needed to change user avatars for custom member types…not ever, as it has nothing to do with avatars — it was merely recommended in their tutorial so people could manage user profiles: ‘BP XProfile Member Type Field’

    SO. If you want to have a different default avatar for different member types, then you will need to use the ‘BuddyPress Member Type Generator’ plugin. Not the other one.

    Steps to take:
    1.] Download the ‘BuddyPress Member Type Generator’ plugin from BudyDev

    2.] Read their tutorial (I’ll paste a link below in follow-up comments to this comment)…do everything EXCEPT install the ‘BP XProfile Member Type Field’ plugin — it’s not needed for assigning an avatar via custom member type; it just is recommended in their tutorial to use so you can manage user fields 🙂

    3.] Use the code I’ll also paste below (in the follow-up comments) — modify it to your site’s name but insert your site name where I typed ‘sitenameprivate’…etc.

    4.] For creating more avatars with custom member types in the future, you’ll always have to update that same code in the bp-custom file…via FTP/SFTP; tbh that process is easy as pie once you realize how to do it

    5.] For making your life easier with switching out avatar images for member types without having to re-do the bp-custom file: just save over the image in your media library that is used for that particular member type…so the path is the same and your code won’t need to be changed

    Simple, yet difficult to find.

    Thank GOD FOR BUDDYDEV!!! <3

    #282198
    Venutius
    Moderator

    Ah ok, so you are taking a login widget and displaying it on that page.

    I think given you are a novice, then my first thought would be to try some different login widgets to see if they improve things.

    how about https://wordpress.org/plugins/ajax-login-and-registration-modal-popup/ ?

    #282192
    Kristian Yngve
    Participant

    WordPress: 4.9.8

    BuddyPress: Version 3.2.0

    #282191
    Kristian Yngve
    Participant

    Some goodens here:

    10 Free BuddyPress Themes

    #282178
    Venutius
    Moderator
    #282171
    shanebp
    Moderator

    … it sure looks like it’s being loaded but it just keeps reloading the same page

    Well, it’s loading the slug for a single group.
    But something is pulling in another template – perhaps the groups-loop template.

    It seems like your profile pages are heavily customized – can you try it with the standard BP templates ?

    I cannot duplicate this issue.
    Tested with the latest versions of WP & BP with Nouveau, in several themes.

    If you feel you have an issue that can be duplicated by others, you can create a ticket here.
    Be sure to include a link to this thread.
    Be sure to include all the steps necessary to recreate this issue.

    lookingahead
    Participant

    oh, by the way: my site has user profile creation disabled. also have disabled the ‘extended profiles’ as well as the option to allow users to upload avatars to their profiles.

    i tried re-enabling those things (‘extended profiles’ and ‘allow users to upload avatars’)…..my site stalled, then crashed not long after.

    sooooooo enabling those two things is not an option, lol!

    one interesting thing to note: whenever i use ‘buddypress first letter avatar’ then the buddypress avatar changes to be whatever the plugin says to put there (the first letter of the user’s name)….that’s awesome!! AND i am using that ‘buddypress first letter avatar’ without extended profiles being turned on and also using it without allowing users to upload avatars to their profiles.

    so i know that you CAN indeed change a user’s profile via programming without having to enable those two (annoying, lol) features in BuddyPress.

    i’ve considered modifying that plugin, but to be honest that’s a little above my paygrade. 🙂

    thoughts, @prashantvatsh? is there a simple solution i’m overlooking — a filter or something? no plugin i’ve found (so far) in the WordPress plugin repository can alter the BuddyPress avatar except the ‘buddypress first letter avatar’ plugin.

    lookingahead
    Participant

    hi @prashantvatsh! so i went to that link you posted (above) which then leads to a WPMUDEV thread…which uses an outdated chunk of code that apparently was created to work with a “social login” plugin….and many users from back in 2015 (which is after the code was shared) say it no longer works with their site, and a couple commenters even said it crashed their site. 🙁

    so….is there a filter/code that i can use to get BuddyPress to use the WordPress avatar that I set instead of the BuddyPress avatar…?

    i don’t think that article will help get BuddyPress to use the same avatar that WordPress is using on a site.

    please note: i have gravatars shut off on my site for WordPress and also for BuddyPress. i did it via code for BuddyPress, and am doing it via a plugin for WordPress. i will not be using gravatars…not EVER. 😀

    so now, all i need to know is how to get BuddyPress to use whatever avatar that WordPress is using on a site.

    please also note: i am “forcing” WordPress to use a local avatar….which is exactly what i want. then, if i could only get BuddyPress to use the same avatar that WordPress is using….that would also mean that bbPress will use the same avatar, because bbPress uses whatever avatar BuddyPress uses.

    so…..if i could find a way to get the avatar that WordPress is using to be used by BuddyPress, that would make me SOOO HAPPY!! 😀 it would be the last piece of the puzzle in my website avatar issue.

    main question: can you help me “remove the condition where it is checking if the user has uploaded avatar or not”….?

    follow-up question: in the future, would that mean that BuddyPress’s avatar is always in synch with WordPress’s avatar? in other words, would any changes to the WordPress avatar then automatically show up within BuddyPress (which would then mean bbPress changes too, because bbPress uses the BuddyPress avatar)…?

    thanks in advance for any and all assistance! 🙂

    #282137
    lookingahead
    Participant

    Ohhh, GOT IT!!

    looks like this code is exactly what is needed….i pasted it into a custom plugin and wa-la…credit goes to the fabulous @prashantvatsh! he replied in the support forum on his plugin (the ‘BP Custom Functionalities’ plugin)…like super quick, with the correct solution to me needing to restrict access to a user’s OWN profile. brilliant!

    here’s that support thread:

    https://wordpress.org/support/topic/restrict-access-to-users-own-profile/

    and here’s the code from prashant that i wound up putting into a custom plugin file and uploading to my site:

    add_action( 'wp', 'bp_own_profile_member_redirect' );
    function bp_own_profile_member_redirect(){
    	if(bp_is_user()){
    	    global $bp;
    	    $current_user_id = (int) trim($bp->loggedin_user->id);
    	    $member_id  = (int) trim($bp->displayed_user->id);
    	    if (!current_user_can('manage_options') && $current_user_id == $member_id)
    	    {
                    //Only admins can view their own profile
    	        wp_redirect(site_url()); //you can set any URL here
    	        exit;
    	    }
    	}
    }

    thanks again for all your help, @venutius — your help was fundamental to me figuring out the next steps (how the BuddyPress avatars exist and how to get those avatars to show what i wanted without messing with bbPress code)…i am truly grateful for all your assistance!

    #282133
    lookingahead
    Participant

    @venutius oh thanks for the suggestions, appreciate the plugin links…but they don’t accomplish what i need to do

    i need specific avatars for classes of users, ones that correspond to the styling and hierarchy of my site

    so identicons being ‘fun’…? sadly i don’t need fun, lol….i need a streamlined business look and fun with random identicons won’t work

    and creating local gravatar avatars for users that ‘don’t have one’ is also random — not corresponding with my site; if i wanted to have default gravatar avatars populate i’d just choose the options that come with WordPress by default — that already is an option

    and gravatar is incredibly cumbersome with its pinging to the servers where the gravatars are stored….it may seem minor to many, but it does burden a site

    plus, gravatars have weak coding that allow the email address of the user to be ‘scraped’ by bots

    so to protect my users from future spam and to keep my site as speedy as possible AND to have my site avatars correspond to the styling of my site i need gravatars to never ever ever be used, and nothing random either

    #282132
    Venutius
    Moderator

    I’ve found a couple of plugins for you to look at:

    BP Local Avatars

    And there is henry’s plugin:

    BuddyPress Identicons

    #282118
    Venutius
    Moderator

    What about – https://wordpress.org/plugins/disable-user-gravatar/ to disable the gravatar?

    #282102

    In reply to: Avatar blurred

    Venutius
    Moderator

    Might be an idea to raise this as a feature request on Trac – https://buddypress.trac.wordpress.org/ Maybe they can set the cropping window to max size as a solution?

    #282093
    alriknijdam
    Participant

    This was already including my childtheme & custom functions.php.
    Literally everything slightly related to wordpress was checked.

    Best regards,

    #282068
    Venutius
    Moderator

    Hi there,

    If you are using BP Nouveau the sitewide notice widget is not supported:

    https://buddypress.trac.wordpress.org/ticket/7893

    #282050

    In reply to: Hackers Getting In….

    Venutius
    Moderator

    Ah great! Glad that one is solved. It’s only half of the solution though. These bots will still plague your site with registration requests. To get rid of those try https://wordpress.org/plugins/simple-google-recaptcha/ thi sworked like a treat on my sites, totally eliminating spam bot registrations (for now…).

    #282008
    Venutius
    Moderator

    This plugin looks like it could be very handy for your quest:

    BP xProfile Location

    #281940
    shanebp
    Moderator

    I cannot duplicate this using PHP Version 7.0.26

    As you probably know, it’s just a warning and can safely be ignored.
    And won’t be visible when you turn debug off.

    afaik, part of the next release is cleaning up some calls re PHP 7+

    If you’d like to open a ticket, you can do so here.
    Be sure to include the steps necessary to reproduce, including which template pack you have selected in Settings > BP > Options.

    #281894
    david22c
    Participant

    Hi,
    Would someone be kind enough to help me with changing a buddypress error message? (wordpress 4.9.8, buddypress 3.1.0)

    I am restricting private messaging to user’s friends/connections. Currently, the error message returned when sending a private message to someone not in your network is “Message not sent. Please try again.” which doesn’t make sense. I would like it to say something like, “Sorry, you can only send a private message to connections in your network.” How might I change this error message?

    I have been using the following code in child functions to restrict private messaging:

    // if not site admin, restrict PMs to friends
    function pp_check_message_recipients( $message_info ) {
    
    //  site admins are not restricted
    if ( is_super_admin() )
    return $message_info;
    
    $recipients = $message_info->recipients;
    
    $friend_ids = friends_get_friend_user_ids( bp_displayed_user_id() ); 
    
    $nf = 0; 
    
    foreach ( $recipients as $key => $recipient ) {
    
    if ( ! in_array( $recipient->user_id, $friend_ids ) ) 
    $nf++;
    
    }
    
    // if any recipients are not friends, remove everyone from the recipient's list
    if (  $nf > 0 ) 
    unset( $message_info->recipients );
    
    return $message_info;
    }
    add_action( 'messages_message_before_save', 'pp_check_message_recipients' );
    #281880
    Prashant Singh
    Participant
    #281879
    Prashant Singh
    Participant

    Hi,

    These are general problems and not associated with BuddyPress at all. Sometimes we only need to google it and we will find the solution.

    Anyways, please check this https://webania.net/customize-email-sending-header-in-wordpress/ and use the snippet they gave, just replace from ‘name’ and ’email’ to yours.

    Thanks

    #281854
    rgutierrez1014
    Participant

    Anyone have an update on this? I’ve resorted to changing the active components manually since I can’t get them to keep their state when I login to WordPress after

    #281846
    shanebp
    Moderator
    #281843
    Design Team
    Participant

    I have all plugins except for BuddyPress disabled and also have switched out to a basic WordPress theme again but still am not getting any sort of confirmation messages/notices when I save a new password change. I’ve checked in my BuddyPress files as well (am running the Nouveau template but have tried switching between that and Legacy to see if it would fix anything) and both have the proper code you specified in it, but nothing’s showing up.

    #281842
    Prashant Singh
    Participant
Viewing 25 results - 2,351 through 2,375 (of 22,602 total)
Skip to toolbar