Forum Replies Created
-
In reply to: two page home page?
@villnoweric
Just remove Home from the menu, then add activity to your custom menu. Then change the navigational label to “Activity Feed” or whatever you wish!In reply to: two page home page?In reply to: two page home page?@villnoweric
Try this it is a slightly modified snippet I did earlier but fits your requirement. Follow the instructions in the code.`
// PLEASE NOTE FOR THIS TO WORK:
// Before adding this code to bp-custom.php
// https://codex.buddypress.org/developer/customizing/bp-custom-php/
// you will need to create a new page in the dashboard and name it
// something like “Dummy Page” for example or any name you choose.
// Do not add this page to your menu because it is just a dummy page
// for the redirect. Then go to Dashboard/Settings/Reading.
// Under “Front page displays” select “A static page.” Then use the
// “Front page” drop-down menu to select the page you created. In my
// example for instance I selected “Dummy Page” for my front page.
// Done! Now logged out visitors get redirected to the register page,
// and logged in users get redirected to the activity stream./* Redirects to profile upon login, and logged out users are redirected to register page */
function bp_help_redirect_to_profile(){
if( is_user_logged_in() && bp_is_front_page() ) {
bp_core_redirect( get_option( ‘home’ ) . ‘/activity/’ );}else {
if ( !is_user_logged_in() && !bp_is_register_page() && !bp_is_activation_page() )
bp_core_redirect( get_option( ‘home’ ) . ‘/register/’ );
}
}add_action( ‘get_header’, ‘bp_help_redirect_to_profile’,1 );
`In reply to: [Resolved] Logged-In User Profile Link URL@xiot
There is no problem, I simply meant that by being more specific it will help all of the volunteers help you more efficiently next time around! 🙂In reply to: [Resolved] Logged-In User Profile Link URL@xiot
You said:I want the code to redirect the not logged in user to a register page
Next time you request help please make sure you are more specific. One minute you say you want the logged out users to be redirected to the register page, then you flip and say you have a front page and don’t want to change it. When we offer code here a lot of times it is dependent on what you specifically ask for.
In reply to: [Resolved] Logged-In User Profile Link URLLet me know if it worked for you as well!
In reply to: [Resolved] Logged-In User Profile Link URL@xiot
Try my trick instead. Tested and works! Get the code here:
Redirect Logged Out Visitors To Register, And Logged In Users To Profile Using A Dummy Page@jannmirch
Untested, also if you are using sitewide forums remove the comments from:
/*|| bbp_is_single_forum() || bbp_is_single_topic()*/
If you are just using group forums leave the below code as is:/* Prevent logged out users from accessing bp activity page */ function nonreg_visitor_redirect() { global $bp; if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_group_forum() || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_profile_component() || bp_is_forums_component()/*|| bbp_is_single_forum() || bbp_is_single_topic()*/{ if(!is_user_logged_in()) { //just a visitor and not logged in wp_redirect( get_option('siteurl') . '/register' ); } } } add_filter('get_header','nonreg_visitor_redirect',1);In reply to: I dont want to crop my avatar picture@rimoreno
If you want to use an entire image then the dimensions need to be square. For example 400width X 400height, or 600width X 600height. There may be other ways that include editing code but I find this is the simplest way.In reply to: Stopping auto links@loki_mdog
Have you tried this slight variation?function remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'init', 'remove_xprofile_links' );In reply to: WordPress Social Invitations@nguyendam
The plugin isn’t free the download link takes you to codecanyon and it has a $14.00 price tag.@ishanna
If you have made a child theme you could use this tutorial and it limits friends to view your profile.
http://wpmu.org/how-to-add-profile-privacy-to-buddypress/
Other than that then you are limited to the premium plugins listed above. I have tried the plugin I recommended and it works.@shanebp
And are you the author of that plugin?@ishanna
I recommend:@wickedbl0ke
Negative on the love making but you could donate a beer or two! Or a McDouble even!@wickedbl0ke
Untested!/* Prevent logged out users from accessing bp activity page */ function nonreg_visitor_redirect() { global $bp; if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_group_forum() || bp_is_page( BP_MEMBERS_SLUG ) ) { if(!is_user_logged_in()) { //just a visitor and not logged in wp_redirect( get_option('siteurl') . '/wp-login.php' ); } } } add_filter('get_header','nonreg_visitor_redirect',1);In reply to: User profile@cbedon
I personally haven’t test it and it doesn’t appear to be updated for the latest versions of WP & BP. You can test it and if it doesn’t work then contact the author on the plugins support page.
https://wordpress.org/plugins/bp-force-profile/In reply to: User Registration@whitewolf1988
Negative! I want a lot but I ain’t to old for my wants to hurt me! So please don’t ask this again!In reply to: Create a link to menu options@jorgebook1
Your welcome! Glad I could help!@whitewolf1988
Negative! The only free version is on the WP repository.@whitewolf1988
Updated to 3.6 and I also have a version that allows to unblock entire categories but I am thinking on monetizing it because hardly no one donates and I think the flexibility of unblocking an entire category is worth a couple bucks. Let me know if your interested.In reply to: Create a link to menu options@jorgebook1
See my replies toward the bottom of the page on the following topic:
https://buddypress.org/support/topic/dynamic-urls-for-buddypress-user-profiles-friends-etc/
This is just a reference and is not all inclusive.