Forum Replies Created
-
In reply to: Home URL redirects to Members page
OK, in that case you could try something like this:
function my_redirect() { // Bail if the user is not logged in. if ( ! is_user_logged_in() ) { return; } // Redirect users away from the homepage if ( is_front_page() || is_home() ) { bp_core_redirect( get_option( 'home' ) . '/stream/' ); } } add_action( 'init', 'my_redirect', 1 );In reply to: Home URL redirects to Members pageThe Theme My Login plugin is useful in handling redirection. Taken from the plugin’s feature list:
Redirect users upon log in and log out based upon their role
I’ve done this myself using the plugin and can confirm it works quite well with BuddyPress installed.
In reply to: help with test and live environmentsYou could set up a local install on your computer to use for testing? You’d need to install a stack such as LAMP (if you’re using Linux) which will give you all of the things you need (Apache, PHP and MySQL).
In reply to: Home URL redirects to Members pageAre you logged in? If you visit /registration/ as a logged-in user, then you will be redirected to /members/. Setting your homepage to your registration page will mean you get redirected to /members/ when you visit your homepage (when logged-in).
To the best of my knowledge, @-mentions in BuddyPress require the activity component to be active.
In reply to: Registration and Activation pagesTake a look under the Pages section in your admin area. If you don’t have a page for either of them, then you should create them yourself.
In reply to: Why bpthumb == bpfull ?Then I’m out of ideas. It seems you’re doing everything right. There must be something strange going on.
In reply to: Why bpthumb == bpfull ?You seem to be doing everything right so this is quite strange! How about plugins, could you have a rogue plugin installed which might be causing the issue?
In reply to: Why bpthumb == bpfull ?Where in your folder hierarchy do you have your bp-custom.php file?
In reply to: Why bpthumb == bpfull ?Where are you adding your constant definitions?
In reply to: Reduce Large Numbers to Human Readable FormatsYou will need to use hooks. The basic idea is to attach a custom function to the relevant filter hook then inside your custom function you can use
number_format()to group the thousands.In reply to: Why bpthumb == bpfull ?Are you checking the size of the image when it’s displayed in your theme or are you checking the raw image size? I ask because CSS can resize the image.
Thanks for the links @mcpeanut, I’ll check out HHVM!
I am currently testing my buddypress install on one of my servers with nginx
Are you using Nginx with php-fpm? I’ve been tempted to do that for BuddyPress. It’d mean moving all of my .htaccess directives to Nginx server blocks but I think the effort would be worth it for the performance improvements.
In reply to: Can’t fill out registration formConsidering this is a fresh install, the problem is likely coming from a) the theme you’re using or b) a rogue plugin you have installed.
In reply to: Having problem, I get log out now and thenI’m pretty sure WordPress sets authentication cookies when you log in. Make sure these aren’t being deleted by your browser.
In reply to: [Resolved] period or special characters in usernameI think you might find it is the
user_loginproperty has the value john.doe. I can’t remember where the hyphenated username is stored but tryuser_nicenameinstead.In reply to: [Resolved] period or special characters in usernameThe Restrict Usernames plugin is pretty cool actually. I’ve used it in the past. Aside from specifying illegal characters, it will let you reserve words you don’t want normal users to register. Site name, admin, help, support all spring to mind.
In reply to: UnsubscribeSettings > Email should do it. Alternatively you can go straight to the page via:
https://buddypress.org/members/username/settings/notifications/
In reply to: [Resolved] function enqueue depend of dynamic urlYou’re not using the function I gave you right. There’s no need to use server variable or do a string replacement.
In reply to: [Resolved] function enqueue depend of dynamic urlI believe
bp_is_change_avatar()is what you are looking for.In reply to: Where to learn.The best place to learn how BuddyPress works is the codebase. Over the past few years, the inline docs have been improved tremendously and are now at a point where they’re very useful.
HTML
<button id="me">Click this button</button>JavaScript
document.getElementById('me').addEventListener('click', function() { alert('Hello'); }, false);It’s fairly straightforward to do. See this demo. You could also use jQuery if you wanted instead.
I doubt there is a WP hook for that event; instead, you should use JavaScript for that.
That should be the hook to use. See here for it in context:
https://github.com/buddypress/BuddyPress/blob/master/src/bp-activity/bp-activity-functions.php#L2180