-
Author
Tagged: private buddy press
-
November 10, 2014 at 22:50 #34950briceemryParticipant
Hello. I would like to redirect unregistered users to the registration page when they try to access on all buddpress / bbpress pages. I would like to use no plugin for that.
Thanks!November 11, 2014 at 23:27 #35111AbeKeymasterHi,
I came up with this code for you to redirect all users on bbpress and buddypress pages to registration pageCOPY CODE/** * Redirect buddypress and bbpress pages to registration page */ function kleo_page_template_redirect() { //if not logged in and on a bp page except registration or activation if( ! is_user_logged_in() && ( ( ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) || is_bbpress() ) ) { wp_redirect( home_url( '/register/' ) ); exit(); } } add_action( 'template_redirect', 'kleo_page_template_redirect' );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 14, 2014 at 19:32 #39082briceemryParticipantThank you, it works as I want!
By cons, is it possible to redirect the user to the current page after login / registration?December 14, 2014 at 20:53 #39083bujanggaParticipantHey, why me buddypress error. I use member mansorry and user can’t open images media for their activity . Sory i can’t speak english well.
Thanks you, regardsDecember 16, 2014 at 02:09 #39233AbeKeymasterFor the login see Peter’s redirect plugin @briceemry
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 16, 2014 at 02:09 #39234AbeKeymaster@bujangga in rtmedia settings try to enable the media popup
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 19, 2014 at 11:28 #39675mlennox10ParticipantHi Abe, thanks for redirecting me to this page. Could you let me know where I need to place this code? Should it be on each page I wish to block? I would like to block members page, forum, and activity stream.
Thanks!
December 19, 2014 at 12:23 #39676sharmstrModerator@mlenox10. It goes in your kleo-child/functions.php file. You need to be running kleo child as well.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 22, 2014 at 19:26 #40038mlennox10ParticipantHi Sharmstr,
Thanks for replying. I have just realised that I was redirected here from another discussion but this solution will block all pages. I would just like to block Forum, Activity and Members. Do you have any idea how this can be done? It seems like a common problem but a lot of the plugins people have suggested are outdated and the link doesn’t work.
Any help would be much appreciated.
February 3, 2015 at 22:43 #44625sante13ParticipantI pasted your code into the kleo-child/functions.php file and it does not work.
Any ideas?
Thank you.
February 3, 2015 at 22:46 #44626sante13ParticipantPlease disregard my previous post as the code works to the extent that it blocks individual forum posts. I would like to block the entire “FORUM LIST”. Is that possible?
February 7, 2015 at 20:20 #45122AbeKeymasterI think it should block forum root too
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.March 23, 2015 at 17:27 #51188AbeKeymasterTry to have Buddypress active if you are using buddypress functions
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.March 24, 2015 at 12:33 #51325briceemryParticipantHello. In reality, what happens is that RevSlider not working normally. It works when I connected, and when I log off, it no longer works. but when I remove the redirect code there, everything works normally.
March 30, 2015 at 19:29 #52263AbeKeymasterThat makes no sense 🙂 if you get redirected then how can you see the page?? just asking…
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The topic ‘Buddypress/bbpress redirection’ is closed to new replies.