waprothero (@waprothero)

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • @waprothero

    Participant

    ROBIN,
    OK, I understand. I will work on that.
    Thanks.

    @waprothero

    Participant

    Robin:
    I have already found that bbPress, if inactivated, the problem goes away. Are you thinking that another plugin might be part of the process?

    @waprothero

    Participant

    Another thought…Is there any setting in the bbstylepack plugin that could affect,the wordpress user role setting? I have only seen ways of configuring the forum role setting, and the wpform registration plugin has a setting form that maps the Forum Role to the wp dasboardd user settings.

    @waprothero

    Participant

    Robin,
    wpForms was only minimal help. They told me it was bbPress problem. They did tell me that the user role was set when the user who is registering clicks the “acknowledge” link. It seems that bbPress is setting the user role to empty after wpForms sets it. So, is there a snippet that could set the user role to “Subscriber” that would activate after bbPress sets the user role and forum role?

    Almost all new users will be subscribers and only a very few will be different, and I don;t mind setting those manually.

    @waprothero

    Participant

    By the way, it did set the bbPress role to “Participant”, which is what I wanted for that person. However, for the main wp user role, which is essential for other parts of the web site, it left it blank.

    I can set the wordpress user role to the “Subscriber” role, manually in the dashboard. Unfortunately, after the user logs in, they will not be able to see other content that requires the “Subscriber” role to be set in the wordpress default role assignment system.

    @waprothero

    Participant

    Robin:
    I did the test, several times, clearing caches, etc, etc.
    No change. The default role is still blank. No change.

    At the top of the page, I see the snippet, so it’s running.

    @waprothero

    Participant

    Robin:
    Following your simple instructions for a snippet, I just wanted to check to make sure I’m making the test you suggested (thanks, btw):

    Snippet Content, using wpCode snippet plugin:

    add-action(‘plugins_loaded’,’rew_remove_bbp_role’);
    function rew_remove_bb_role'(){
    remove_action( ‘bbp_user_register’,’bbp_user_add_role_on_register’,10,1);
    }

    Snippet location: Universal Snippet

    Is this correct?

    @waprothero

    Participant

    Robin, thanks for your response. I’m out of town until Monday and will try out your suggestions then. Some quick question tho. I’m an experienced programmer, but not with wordpress. I’m unclear where to insert these code items. So….
    _———-here’s your suggestion
    so use this code

    —where do I add this this.. To the bbPress functions file?
    add_action (‘plugins_loaded’ , ‘rew_remove_bbp_role’) ;

    function rew_remove_bbp_role () {
    remove_action( ‘bbp_user_register’, ‘bbp_user_add_role_on_register’, 10, 1 );
    }

    Put this in your child theme’s function file –
    I am guessing this goes in wp initiation file.

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    @waprothero

    Participant

    Robin, thank you. I had installed the plug-in, but I gave up on it. However, I’ll give it another try. I have set certain forums to private in the dashboard, so they are not visible to non-logged in visitors. For logged in visitors, I want specific forums to be invisible to members role, but visible to author role. Seems simple.

    Do you have a quicky procedure for doing this? I spend too much time fiddling with various settings, to get the desired result otherwise. Thanks for your contributions to this great forum tool.

    @waprothero

    Participant

    I forgot to set reply notification. No other purpose for this post.

Viewing 10 replies - 1 through 10 (of 10 total)