tracykistler (@tracykistler)

Forum Replies Created

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

  • tracykistler
    Participant

    @tracykistler

    I tried updating the line and it causes a critical error to the site. I have been working on a staging site so it hasn’t been a huge problem. I would really appreciate any additional help you can provide though. If we can’t find a way to run the script we will have to manually subscribe everyone and that will take ages…


    tracykistler
    Participant

    @tracykistler

    Hmm, I tried below updating the forum id and it didn’t work.

    $list = get_users();
    if (empty (get_option (‘rew_done2’)) {
    foreach ($list as $user) {
    $user_id = $user->ID ;
    $forum_id = 327 ;
    bbp_add_user_forum_subscription( $user_id, $forum_id ) ;
    }
    update_option (‘rew_done’ , ‘done2’ ) ;
    }


    tracykistler
    Participant

    @tracykistler

    @robin-w I was able to use this code to subscribe all of our members to our main forum and it worked great. Thank you! I have since tried to run it to subscribe them to our other two forums and it’s not working. Any idea what I can do to get them subscribed to the others?

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