Forum Replies Created
-
In reply to: creating custom link
Just looked over the code you’ve posted. That doesn’t really help. That’s just the code to display the registration form for the user to complete when signing up.
In reply to: creating custom linkYour registration page code which you linked to.
In reply to: creating custom linkCan you post your code here?
In reply to: creating custom linkHi @tsabar
You’ll need to insert the variables using PHP. So for example, if your variable is
$emailand you want to insert it into the link, you’d do it like this:a href=”http://gowoa.me/i/XXX?email=<?php echo $email; ?>&firstName=[FIRST_NAME_HERE]&lastName=[LAST_NAME_HERE]”>Register Now /a> (i removed opening tags so the code would show as is)In reply to: WHERE DO I EDIT IT TO ALLOW PROFILE IMAGES?Try typing the link into your browser. You should be able to see an ‘upload image’ button. So for example, type the following:
http://your-website.com/members/your-username/profile/change-avatar
In reply to: WHERE DO I EDIT IT TO ALLOW PROFILE IMAGES?That’s odd. You should be given the option to upload so there’s certainly a problem that needs looking at. Usually you can just go to http://example.com/members/username/profile/change-avatar/ and upload your avatar. Your theme should provide a link to this page.
1. If that link is not accessible then there could be a problem with BuddyPress (likely caused by a theme or plugin conflict).
2. If your theme isn’t providing the link to the page (usually found via Profile > Change Profile Photo, then perhaps file a report on your theme’s support site so that the theme developers can make it compatible with BuddyPress.
Hope this info helps. Let me know if there’s anything else we can help with here.
In reply to: Hook for when a user first logs in@ndh01 what does
new_memberhave to do withbp_get_user_last_activity()?In reply to: WHERE DO I EDIT IT TO ALLOW PROFILE IMAGES?Profile images should be allowed by default although where you go to upload your image will depend on the theme you’re using. What theme are you using?
In reply to: Hook for when a user first logs in@shanebp’s approach is probably the simplist. Did anyone manage to test?
In reply to: Hook for when a user first logs inHere’s my stab at it, in actual code (demonstrating what I mean by my rambling above):
function my_add_meta( $user_id, $key, $user ) { add_user_meta( $user_id, 'first_login', 'not_yet' ); } add_action( 'bp_core_activated_user', 'my_add_meta', 10, 3 ); function my_check_meta( $redirect_to, $redirect_to_raw, $user ) { $meta = get_user_meta( $user->ID, 'first_login', true ); if ( $meta == '' ) { // The user has logged in before } else { // The user is logging in for the first time. // Do something here. delete_user_meta( $user->ID, 'first_login' ); } } add_filter( 'bp_login_redirect', 'my_check_meta', 10, 3 );References
https://codex.wordpress.org/Function_Reference/add_user_meta
https://codex.wordpress.org/Function_Reference/get_user_meta
https://codex.wordpress.org/Function_Reference/delete_user_metaIn reply to: Customizing emails templateYeah – those are the hooks that’ll let you filter the recipient, subject, body – with your HTML 🙂
In reply to: Social loginThere are lots in the WordPress Plugin Directory. The problem with social login plugins is they’re very hard to maintain from the developer’s point of view. Often, social networking sites update their APIs which results in the plugin code no longer working. My suggestion is, find a plugin that’s actively maintained – that way, you’ll be in a better position should it need updating in future.
In reply to: Hook for when a user first logs inI haven’t tested yet. There is an activity entry for ‘new_member’ that gets created. Not sure if that is when they first login or or first activate.
new_memberis an activity type. It’s created when a user activates their account (at the point at which thebp_core_activated_userhook fires).In reply to: add privacy using bp_activity_add()Setting
hide_sitewidetofalsewill allow you to hide the activity item from the site-wide activity stream. Is that what you’re trying to do?In reply to: Secure enough for medical patients?Security out of the box is fairly tight but as @shanebp mentions above there are ways of ‘hardening’ WordPress security. Also, you have to be careful when custom code or plugins are added – be sure the code is secure.
Separate to security but important to you would be the issue of privacy. BP offers some privacy control but you could always extend on that depending how sensitive exactly your info is (and it sounds like your info will be extremely sensitive).
In reply to: Registration hooksAh yes, the
bp_signup_pre_validateaction will give you access to the$_POSTvariables. Nice idea! 🙂In reply to: post follow optionAre you using BuddyPress Follow?
In reply to: Reliable hosting for BuddyPress installations?I may be wrong but I think there’s two separate issues here.
1. Response time is slow which results in pages taking 10 – 20 seconds to load.
Why exactly are response times slow? Which resources are bogging things down? You mention that Varnish caching doesn’t work on a membership site but what is causing your site to be slow to begin with?
2. Users don’t benefit from the Varnish acceleration if they’re logged in.
To the best of my knowledge, you can cache content for logged-in users when using Varnish. I’ve never tried to, and am no expert when it comes to using Varnish, but take a look at this article
I’m aware you don’t want to cache stuff like the activity feed but perhaps you could cache content selectively.
In reply to: post followI’ve replied here
In reply to: post follow optionHow are you getting the follow button? I’m not sure that one arrives with BP by default. Perhaps you’re using a plugin?
In reply to: Query all users and metaHow about WP_User_Query?
Ref: https://codex.wordpress.org/Class_Reference/WP_User_Query
In reply to: Customizing emails templateHi @shmk
It’s definitely possible. BuddyPress uses the
wp_mail()function to send emails. By default, it usestext/plainas the content type which doesn’t allow HTML. The good news is you can change this. For example:function set_content_type( $content_type ) { return 'text/html'; } add_filter( 'wp_mail_content_type', 'set_content_type' );Ref: https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail_content_type
In reply to: Registration hooksHi @shmk
That would be
bp_signup_usermeta. You’d filter$usermetawhich is an array of the sign-up info.In reply to: Reliable hosting for BuddyPress installations?Hi @sbraiden
The response time on ANY page/link can range from 10-20 seconds, even with virtually all of the plug-ins disabled.
A standard WordPress-BuddyPress install, running on the most basic hardware with little web traffic would respond far quicker than this so there is definitely a problem. Sometimes (although not always) the problem can be elsewhere (not your host). I’ve seen some badly-written themes cause page load times to lag and the same goes for certain plugins. I think the first step for you to take (before you go through the upheaval of changing hosting company) is to determine the exact cause of the problem. If you’re definitely sure it’s the host, then definitely make the switch. From a personal point of view, I’ve had problems with 1&1 in the past so switched host and have never been happier.
Hi @laynerogers
Rather than changing BP core files, you should contact the theme author asking that they look into making their page titles compatible with BP. The changes you’ve made to bp-core-filters.php will be lost each time you update BuddyPress.