-
Justin replied to the topic Help me fix a function that adds blog comments to activity in the forum How-to & Troubleshooting 10 years, 11 months ago
@andrewgtibbetts where di you end up with this? Would love blog comments to show up as notifications.
-
Justin replied to the topic [Resolved] Show posts written by user on profile in the forum Creating & Extending 10 years, 11 months ago
Actually solved it by limiting the post count in the loop and then adding this link to the archive of author posts wordpress already innately displays:
This is the href: href=”<?php echo get_site_url(); ?>/author/<?php echo the_author_meta( ‘user_login’ ); ?>
In case anybody else needs to reference this post like I did.
-
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
I couldn’t get any of those hooks to work. I ended up editing the members.php file in the profile progression plugin and that worked. Obviously not ideal for updating plugins but it’s working!
I also was then able to hide the progression bar from users who didn’t own that profile and hide it altogether once it was complete. Those features weren’t…[Read more]
-
Justin replied to the topic [Resolved] Show posts written by user on profile in the forum Creating & Extending 10 years, 11 months ago
@Henry, your code above was helpful. Couldn’t figure out how to loop user-specific posts on profiles. It’s all done now except, do you have any ideas on making pagination work? Googling around query_post() apparently has issues with navigation but usually the issue is displaying the same content on every page.
In my case it just redirects to a…[Read more]
-
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
It’s not working 🙁 I even tested it as simple as possible. (The original first snippet above with no conditionals but with ‘add_action( ‘xprofile_profile_field_data_updated’, ‘my_update_profile_mark’ );’ instead. It seems like ‘xprofile_profile_field_data_updated’ isn’t firing. Any way ideas what I’m doing wrong?
-
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
That’s great @henrywright! Thank you! I will try it out. It seems like if this works, then my first snippet in the original post should’ve at least updated the meta when I was testing it. But hopefully this will be different!
-
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
That’s a great idea @shanebp! I looked at that plugin before but didn’t dive into the code much.
It looks like there’s a function
bppp_get_user_progression_percent()
that can be used.Should this work?
function my_update_profile_mark() {
$percentage = echo bppp_get_user_progression_percent();if ($percentage == 100 &&…[Read more]
-
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
So to summarize, we need:
To hook into xprofile_profile_field_data_updated
We need the hooked function to check for empty profile fields in the main tab
If there are no empty fields, it needs to notify the admin – via updating a custom meta key and sending the admin an email, preferably. But we can settle for just the meta key updated. -
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
Ya all the fields in the main tab (or at least all the required fields).
For some reason wp_mail is having conflicts with our site so we may need to just update a custom user meta field instead. That’s what the code above is attempting to do, but it doesn’t seem to add the meta key. If that can work, we can keep track of who is updated by who has…[Read more]
-
Justin replied to the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
Anyone have any ideas?
-
Justin started the topic Backend notification when user profile complete in the forum How-to & Troubleshooting 10 years, 11 months ago
I am helping a nonprofit I support by building a site totally built on Buddypress: http://parishcollective.org/beta
We are allowing users to create a profile with minimal information (via Social Login) but we want to keep the user role at ‘subscriber’ until they fill out the required profile fields. At that point, we need to be notified that they…[Read more]
-
Justin replied to the topic Moderate Everything in the forum How-to & Troubleshooting 11 years, 10 months ago
Would there be a way to make all activity spam by default? Would that have repercussions with akismet and blacklisting – if it could even be done simply enough? The ideal would be to send all activity to […]
@justineterniawebcom
Active 5 years, 4 months ago