Search Results for 'wordpress'
-
AuthorSearch Results
-
November 25, 2018 at 7:53 pm #282162
lookingahead
Participantoh, 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.
November 25, 2018 at 7:45 pm #282161lookingahead
Participanthi @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! 🙂
November 23, 2018 at 8:50 pm #282137lookingahead
ParticipantOhhh, 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!
November 23, 2018 at 5:06 pm #282133lookingahead
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
November 23, 2018 at 4:54 pm #282132Venutius
ModeratorI’ve found a couple of plugins for you to look at:
And there is henry’s plugin:
November 23, 2018 at 2:30 pm #282118Venutius
ModeratorWhat about – https://wordpress.org/plugins/disable-user-gravatar/ to disable the gravatar?
November 22, 2018 at 7:20 pm #282102In reply to: Avatar blurred
Venutius
ModeratorMight 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?
November 22, 2018 at 2:56 pm #282093In reply to: PHP fatal error in debug.log
alriknijdam
ParticipantThis was already including my childtheme & custom functions.php.
Literally everything slightly related to wordpress was checked.Best regards,
November 21, 2018 at 4:39 pm #282068In reply to: Side Wide Notice not appearing
Venutius
ModeratorHi there,
If you are using BP Nouveau the sitewide notice widget is not supported:
November 19, 2018 at 8:19 pm #282050In reply to: Hackers Getting In….
Venutius
ModeratorAh 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…).
November 18, 2018 at 12:44 pm #282008In reply to: Mapping the xprofile fields
Venutius
ModeratorThis plugin looks like it could be very handy for your quest:
November 17, 2018 at 2:57 pm #281940In reply to: Buddy Press Error When No Friends
shanebp
ModeratorI 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.November 16, 2018 at 7:35 am #281894Topic: changing buddypress error message
in forum How-to & Troubleshootingdavid22c
ParticipantHi,
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' );November 15, 2018 at 10:35 pm #281880In reply to: Set BuddyPress settings programatically
Prashant Singh
ParticipantHi,
Please check these plugins: https://wordpress.org/plugins/ns-cloner-site-copier/ and https://wordpress.org/plugins/multisite-clone-duplicator/
Thanks
November 15, 2018 at 10:33 pm #281879In reply to: How to use custom mail on new user reg
Prashant Singh
ParticipantHi,
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
November 14, 2018 at 8:33 pm #281854In reply to: Set BuddyPress settings programatically
rgutierrez1014
ParticipantAnyone 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
November 14, 2018 at 10:53 am #281846In reply to: BuddyPress Activity Plus in groups not working
shanebp
ModeratorNot true.
In fact others have the same issue.November 13, 2018 at 11:06 pm #281843In reply to: Confirmation message after changing settings
Design Team
ParticipantI 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.
November 13, 2018 at 10:01 pm #281842In reply to: Big problem with activity embeds
Prashant Singh
Participanthttps://wordpress.org/plugins/buddypress-activity-plus/ Please check this plugin.
Thanks
November 13, 2018 at 9:55 pm #281841In reply to: Adding Browse Members to Profile
Prashant Singh
ParticipantHi,
Please try this plugin https://wordpress.org/plugins/shortcodes-for-buddypress/ and use members listing shortcode to get the content of the members directory page.
Thanks
November 13, 2018 at 7:55 pm #281839In reply to: Confirmation message after changing settings
Design Team
ParticipantI have tried changing a test account’s password. I changed to a basic WordPress theme and it didn’t have that message at all. Any idea where that’s located?
November 13, 2018 at 7:25 am #281822In reply to: Can Buddy Press use Forgot Password Key
Anonymous User 16484011
InactiveHi !
Prashant,
Thanks again.
Sorry for delay in reply because I want experiments on your above article.
I read the whole third part of your above link. But it’s for making a plugin. I tried direct the changes to a demo wordpress installation php files but it’s not works for me. I mashed up because I haven’t core developer.
Can any other things or plugin solve my problem ?
I found on net about the same problem’s solution. I got the plugin pie for the same.
In this plugin I am able to add forgot password page template. Just go to pie register-> Notification -> Select tab User notification-> select template from dropdown “Password reset request”.
But after user fill password reset form when they click …
1) User got a link with token. I don’t want this ? I send just only token without link like otp.
2) After clicking user must redirect to page where they can paste the key which they received.
3) After pasting the key I have two options…
A) Either user redirect to create a new password and confirm password page.
B) OR user got a new password via mail which auto generated by site to their registered mail id.Thanks and Regards
November 9, 2018 at 3:07 pm #281214Prashant Singh
ParticipantPlease try this https://stevenword.com/wordpress/buddypress-disable-the-public-members-directory/
to disable members directory.November 9, 2018 at 10:09 am #281160In reply to: Allow Admin to Edit Users in Multisite
neilscott
ParticipantOK, it looks like I was wrong. If “manage_network_users” is enabled, the administrator can edit the WordPress user profile but NOT the BuddyPress extended profile. So, the question is: how can this be enabled in BuddyPress?
November 9, 2018 at 10:02 am #281159In reply to: Allow Admin to Edit Users in Multisite
-
AuthorSearch Results