jdowns1
Forum Replies Created
-
This is perfect, thank you. I did look at class-charitable-campaign-processor.php but couldn’t tell what the array should look like from that.
For anyone else looking how to do this:
<?php $user_id = um_profile_id(); //get user ID from profile page $user = um_fetch_user( $user_id ); if ( !um_profile('profile_photo') ) { echo(' <style type="text/css"> /* Hide the default profile photo if there isnt a custom photo */ .um-profile-photo { display: none !important; } </style>'); } ?>@andrewshu do you have an update you can share?
Perfect, thank you!
This is a user form, not a registration form. It is a multi-select list of roles, not a dropdown. ‘Default’ is not one of the options in the list.
I was able to implement this by installing a plugin that allowed a user to be assigned multiple roles. I kept them in their specific role already assigned to their user profile, and add them to a new ‘Expired’ role once their fundraiser is complete. Then use CSS to hide the elements based on if they were in this Expired role.
I don’t want to change the role, I use their role to make their profile forms role specific, so changing their role would no longer allow their profile page to render. I need their profile page to remain viewable – see my original question.
@andrewshu were you able to verify this is a bug with this plugin?
Yes I have done that, and while it clones the role and WP capabilities, it does not fully clone – the UM specific role properties are not cloned which is what I need. Settings like ‘can edit their profile’ and registration options like ‘require admin review’ and the custom admin review message.
I’m sorry @andrewshu, I’ve spent several days trying to figure this out with no luck.
Let’s try this instead – can you provide a snippet of how to clone an existing UM role with the same settings?
Forum: Plugins
In reply to: [Import and export users and customers] Importing Profile Picture/AvatarThanks for clarifying Javier. Based on the ‘Documentation” I thought I could use the meta tags to accomplish this but I am mistaken.
Is this a feature you could add since you’ve done it with WP User Avatar and BuddyPress? I would be willing to pay for it.
Forum: Plugins
In reply to: [Import and export users and customers] Importing Profile Picture/AvatarI use Ultimate Member to allow members to add their own profile photo.
Thanks for the info. I’ll take a look when I have the time.
@andrewshu The filter doesn’t seem to be getting applied. Here is my function, very simple, but when I go to a profile page for a user that doesn’t exist, I still get redirected to the home page.
/participant/6 is a valid page I can view.add_filter("um_redirect_home_custom_url", "123_change_um_redirect_url", 10, 3); function 123_change_um_redirect_url( $home_url, $requested_user_id, $is_my_profile ) { return '/participant/6'; }It ended up being your ‘Fields Character and Words Counter’ plugin that is suppressing all password errors on my registration form.