Forum Replies Created
-
My plugin is available on WordPress.org and Buddypress.org. Here is wordpress link — https://wordpress.org/extend/plugins/bp-profile-as-homepage/
Okay. I think my plugin is complete now. You will be able to do the following things with this plugin:
1. Only logged in users will be allowed to browse the contents of the buddypress enabled wordpress installation. Non-logged in users will be re-directed to Homepage of the websites where login and register options will be available.
2. Now if your user is logged in and he clicks on HOME tab or any link to homepage, he will be redirected to his / her profile page. This option is good for those who have static HomePage like I am having.I have installed this plugin on my website and testing at MyCampus.Cz.CC.
Kindly help in testing it.Till now, its working perfect for me. One thing I want to ask how can I check that my user is trying to move to homepage, because I want every logged in user should be redirected to his / her profile whenever he clicks on HomePage link anywhere in buddypress same as FACEBOOK.
@ mercime : thanks . But in that case, I have to re-design my login page, but I am not good at designing.
But I have created a new plugin for my-self which will display homepage to all users but only logged in users will be able to see other contents of the website.
soon I will upload the plugin and will let you know the URL to the plugin.Currently I am testing it with my site and it is working fine with default theme of Buddypress. If someone wants to test it, it is implemented on mycampus.cz.cc.So, I guess nobody is working on this concept ? I think this should be the part of the CORE Buddypress Pack, where security on HomePage should be provided so that only logged in users can view the content of the website same as other social networking websites are doing like FACEBOOK, ORKUT etc.
hi I just tried the following code, but it is not working as expected:
function bp_dump() {
global $bp;
if(!$bp->loggedin_user->id)
header(“location:my_website_address”);
}
add_action( ‘wp’, ‘bp_dump’ );Kindly let me know what am I doing wrong
@mercime thanks. I just downloaded and checked Brajesh’s plugin, I want to know which filter need to be used like Brajesh Singh has used filter “Login_redirect” to hook into login process of wordpress. ????
redirection after login in WOrdpress not wordpresss mu..which function to use
how can i achieve the functionality like firstly with WordPress, user should be redirected to his/her profile after logging in. It is WORDPRESS, not WORDPRESS MU.
Secondly, after logging in whenever user clicks on HOME link, he should be redirected to his / her profile….