Search Results for 'buddypress'
-
AuthorSearch Results
-
November 27, 2018 at 5:16 pm #282214
In reply to: Different avatars being set……?
lookingahead
ParticipantOMG…THE LINK DID NOT POST LOOOOOL…..
Because I’m like a ‘spammer’ or something right? Hahaa…
DEAR GOD.
MAN I HOPE THIS ONE WORKS LOOOOOL:
November 27, 2018 at 5:08 pm #282213In reply to: Different avatars being set……?
lookingahead
ParticipantScrew it. I tried to post the code in various ways, but I don’t have time to spend trying to post A SIMPLE COMMENT FFS.
Go to this link and use the code specified in the file.
I hope it’s still available years later when someone stumbles across this comment thread.
BuddyPress forums need some sort of fix for this crap. What an incredible waste of time and energy, just to post a helpful comment that contained code. I’m not a freaking spammer. I mean, if your forum software is needing to be THAT sensitive to fight spam, make us do captchas or some crap to verify we’re ‘human.’
Ya know, I get why spam filters exist, but when they make a site UNUSABLE FOR ACTUAL USERS then your technology is worthless.
Anyhow…lol, end of rant. Here is the link:
I hope this solution helps others as much as it’s helped me. <3
November 27, 2018 at 4:07 pm #282211In reply to: Different avatars being set……?
lookingahead
ParticipantOH FFS, BuddyPress keeps telling me I ‘move too fast’…then I go to post the response and it says I’ve ‘already said that’…DEAR GOD, lol…..
That means I have to wait, idk, HOW LONG to post again?
And why is it that even when I’m not ‘moving too fast’ that BuddyPress HATES me posting a solution that contains code — even when I format it correctly?
Dear God.
November 27, 2018 at 3:39 pm #282205In reply to: Different avatars being set……?
lookingahead
ParticipantOH 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 BuddyDevThe 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 BudyDev2.] 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
November 27, 2018 at 11:39 am #282197In reply to: Register Button be like Login Button
Kristian Yngve
ParticipantI started googling stuff from your message, and I got this:
It looks super brain surgery style complex, and I was hoping it would of been more like “Use this code, and put it here…” Kinda thing?
November 27, 2018 at 10:48 am #282192In reply to: Register Button be like Login Button
Kristian Yngve
ParticipantWordPress: 4.9.8
BuddyPress: Version 3.2.0
November 27, 2018 at 10:44 am #282191Kristian Yngve
ParticipantSome goodens here:
November 27, 2018 at 1:34 am #282184Topic: buddypress add images to article
in forum How-to & Troubleshootingdarren1985
ParticipantHi.
I am creating a site and using buddypress to bring a facebook like feel to my site where users can do all the facebook like things (which is working fine), but i also would like to be able to set users as authors to add their own content and assign to a category, again working fine but…
when you go to add an article all you can do is add a feature image, when you get to the actual article box where you add your text, you i cant seem to figure out how to also allow the user to add images to their article as you would be able to using your wp admin account.
my site is still in testing but if anyone can help my site is:
http://www.healthdigital.ukNovember 26, 2018 at 12:17 pm #282176In reply to: Buddypress Widgets Not Working
Venutius
ModeratorBuddyPress Friends Widget works for me in Graphene. Have you tried deactivating your other plugins?
November 26, 2018 at 4:43 am #282172Arrogance is Bliss
ParticipantGotta love the dedication of BuddyPress community.
November 25, 2018 at 11:43 pm #282171shanebp
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.November 25, 2018 at 10:17 pm #282170rayasunn
ParticipantYes, it sure looks like it’s being loaded but it just keeps reloading the same page (the page that links TO the group). Well, after all that – I tried switching to Legacy Buddypress instead of Nouveau and now everything works as I would expect. I can (as an admin and / or a test user) post updates. Any thoughts on that? How long will I be able to run Legacy? Any ideas why these two totally unrelated sites and themes are having the same issue?
November 25, 2018 at 7:53 pm #282162lookingahead
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:59 pm #282138lookingahead
Participantby the way….here’s a summary of what i did:
– used the code that venutius posted earlier from the BuddyPress codex page (the ‘Customizing BuddyPress Avatars’ codex page) to set a new default BuddyPress avatar
– turned on the ‘extended profiles’ and also enabled users to be able to upload avatars
– used prashant singh’s plugin, ‘BP Custom Functionalities’ to restrict listing of all profiles in the user directory — the directory is ‘still there’ but nobody is in it, lol
– used a 301 redirect (via the ‘Safe Redirect Manager’ plugin) to redirect anyone who goes to the member directory page to the front page of the site…so the page itself is now not even viewable (not even by Keymasters)
– used prashant singh’s snippet i pasted here to restrict all users from viewing their own profile…except Keymasters, who can view ALL profiles on the site, even their own (so the ‘users cannot see their own profiles’ doesn’t apply to Keymasters but this does apply to everyone else)
so happy. 😀
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:08 pm #282134lookingahead
Participant@venutius i think you may have missed my last comment before your plugin suggestions…just want to make sure, are you suggesting i use the front end (user profile page generated in buddypress) to change each user’s avatar….or are you suggesting i use the back end (from the dashboard) to change a user’s avatar after i “disable user profile uploads and see if you can change the avatar yourself from the users profile page”…??
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 4:53 pm #282131lookingahead
Participant@venutius btw…..i’m referring to the part where you said, “see if you can change the avatar yourself from the users profile page”
do you mean i should try to change the avatar from the backend, the ‘user profile’ in the dashboard or the user profile page generated in BuddyPress?
November 23, 2018 at 4:43 pm #282130lookingahead
Participant@venutius thanks!
you mean the user’s profile page in the dashboard, or the user profile page that is in BuddyPress?
November 23, 2018 at 4:23 pm #282128lookingahead
Participant@venutius if i could juuuust get BuddyPress to use the same avatar that bbPress uses, that would solve basically everything
that way i could use a plugin that changed the bbPress avatar, and then any change in bbPress’s avatar would show as the avatar for BuddyPress too
know how to do that?
November 23, 2018 at 4:19 pm #282127lookingahead
Participant@venutius agree…..
thing is, in bbPress there are plugins that easily, and in a lightweight fashion, allow for custom avatars for users
users can go to their profile in the dashboard and change it
now, because i also restrict access to the dashboard for users that are not admins, this works. it works because i am then the one, then, that can change the avatars for individual users this way, without having to allow users to change their own avatars, and without enabling the creation of user profiles in BuddyPress
simple dimple
but for some godawful reason, even though this means that bbPress avatars can be changed this way via various plugins, BuddyPress doesn’t accept the same change
i would think that bbPress is not that different, coding-wise, from BuddyPress
buuuuut hell, i don’t know 😀
if BuddyPress allowed the customization to happen like bbPress does, of individual avatars from the user dashboard, that would be great
isn’t there a way to allow BuddyPress to use a bbPress avatar? so i could use the plugin that changes the avatar in bbPress, and then any changes to a bbPress avatar…BuddyPress would show the same avatar???
November 23, 2018 at 3:19 pm #282125lookingahead
Participant@venutius ok, will test that code….but even if that code works to change the default avatar in BuddyPress, how would i change the avatar for each user on a case-by-case basis?
please note: i will not be able to go to the user’s profile to change their avatar, because profiles are disabled. they do not exist.
i want to be able to change a user’s avatar, but not allow my users to be able to change their own avatar.
November 23, 2018 at 2:44 pm #282120Venutius
ModeratorYou’d just set the default avatar for buddypress:
The default avatar is the one that appear when a user has not yet uploaded his own avatar. If you’re not a fan of the mystery man, here are the constants that you can use to define your own:
define ( 'BP_AVATAR_DEFAULT', $img_url ); define ( 'BP_AVATAR_DEFAULT_THUMB', $img_url );Change the the constant to include the URL for the location of your new default avatars and add this to your bp-custom.php file.
define ( 'BP_AVATAR_DEFAULT', 'http://example.com/default-avatar.jpg' ); define ( 'BP_AVATAR_DEFAULT_THUMB', 'http://example.com/default-avatar-thumb.jpg' );To use a default avatar without Gravatar you should also add:
add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );November 23, 2018 at 2:39 pm #282119lookingahead
Participant@venutius glad to have helped — and awesome on updating the page, thanks!
btw, i’ve shut off user profiles; i do not want my users to be able to update their profiles at all….this is not a social site i’m building, even though buddypress is built with the idea that it resembles something along the lines of facebook…
my site is going to have groups for the sole purpose of discussion, but not for socializing; i’ve deliberately shut off user profiles so users can’t even see them
so enabling ‘extended profiles’…wouldn’t that require that i go to the user profile to update an avatar for a user? i’ve disabled that…so even if i were to turn on ‘extended profiles’ how would i be able to upload a user avatar for each user?
as to that plugin, it works GREAT to shut off gravatar access; it shows the blank BP default image person thing….but even when i pair that plugin with other plugins that allow avatar customization, only bbPress avatars are affected with other plugins; BuddyPress doesn’t work with other plugins that try to get local avatars to show — even if i’ve already shut off the Gravatar display with that fab plugin you linked to (‘disable user gravatar’)
-
AuthorSearch Results