Forum Replies Created
-
In reply to: BBPress user profile page is restricted !!!!
yes I am using it
In reply to: BBPress user profile page is restricted !!!!I have contacted the hosting. They are saying it is something to do with bbpress !!!!
In reply to: BBPress user profile page is restricted !!!!I have disabled all the plugins except bbpress and switched the theme to twentytwenty but still it is showing the same.
https://stagemcgil.wpengine.com/discussion/ is the page where you can find the forum and please try checking one user profile.
In reply to: BBPress user profile page is restricted !!!!And another thing, there are shortcodes on many pages. Just haven’t done anything with the profile page template.
In reply to: BBPress user profile page is restricted !!!!I am using the Genesis child theme. Strange thing is, the protected page accepting the password I have set for other protected pages on my website !!!
Please check this one: https://channelmcgilchrist.com/forums/users/nayanbeta/
This is not a new site. Just started happening.
In reply to: BBPress user profile page is restricted !!!!Everyone’s.
Which page is responsible to show the user’s page? I haven’t done anything with the template.
In reply to: Code behaving abnormallyThe code is:
add_action ('template_redirect', 'forum_security'); function forum_security(){ $roles = wp_get_current_user()-> roles; if(is_singular( array( 'forum', 'topic' ) )){ if(!is_user_logged_in()){ wp_redirect('/join'); exit; }else{ if(current_user_can('administrator')){ return; }elseif(!in_array('pmpro_role_1', $roles)){ wp_redirect('/product/channel-mcgilchrist'); exit; } } } }
In reply to: Replies are sent to Trash automaticallyThank you.
In reply to: Replies are sent to Trash automaticallyI have observed that whenever user is putting a link, it is going to trash and have to allow it manually. Is there an option to allow user post link and those doesn’t go to trash?
In reply to: Replies are sent to Trash automaticallyThis is happening for one specific forum. Please help.
In reply to: I want to get the parent forum name/ID of any topicI am writing this code in functions.php and when I am trying to dump data using
print_r (bbp_get_topic_id());
It is returning 0.
When the above mentioned condition is met I will redirect to another page.
function test_rdr (){ if (bbp_get_topic_forum_id(bbp_get_topic_id()) == ‘ID of the Parent forum’){ wp_redirect('/test-page'); exit; } } add_action('template_redirect', 'test_rdr')
Please help me to get over with it.
In reply to: I want to get the parent forum name/ID of any topicOkay, here is what I am wanting to do.
if (bbp_get_topic_forum_id(bbp_get_topic_id()) == ‘ID of the Parent forum’){
do_something;
}In reply to: I want to get the parent forum name/ID of any topicThank you. But how to get the current topic_id. I mean the topic I am viewing? bbp_get_topic_id() is returning 0.
Please help
Hi @robin-w,
Thank you for the suggestion. But basically what I am trying to do is, show or adding the bbpress profile information to another page that I have created as an “My Account” page.
The information shows up but links are not taking me to anywhere. Is there something to do with global user ID?
Please help.
Please help me. I am trying to gain it but not getting it right. Just need the proper guidance from you.