Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove create new topic from guest


  • newwper3
    Participant

    @newwper3

    Hi,

    I’m using the setting “Allow guest users without accounts to create topics and replies”, but I only want guests allow to reply only.
    Is it possible to hide or remove the create new topic form at the bottom from guest users?

    Thanks.

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

  • Robin W
    Moderator

    @robin-w

    yes if you know how to FTP a file and have a child theme – come back if you do


    newwper3
    Participant

    @newwper3

    Hi,

    I know how to FTP a file and I using a child theme in my wordpress.
    Could you teach me how to remove it?


    Robin W
    Moderator

    @robin-w

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit

    change line 31 from

    <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>

    to

    <?php if ( bbp_current_user_can_access_create_topic_form() && is_user_logged_in() ) : ?>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original


    newwper3
    Participant

    @newwper3

    Hi,

    I have changed the form-topic.php, but It doesn’t work..


    Robin W
    Moderator

    @robin-w

    link to your site please


    newwper3
    Participant

    @newwper3

    Hi,

    This is my testing site
    sandboxtest1.server4.demoswp.com/forums/forum/testing/

    Thanks


    Robin W
    Moderator

    @robin-w

    When I go to your site, if I select the testing forum as a non logged in user, I cannot see the topic form, but I can reply to an existing topic.

    I thought that was what you wanted?


    newwper3
    Participant

    @newwper3

    I’m sorry, it was a cache problem. It’ working now, Thanks 🙂

    Can I ask one more question please?

    Is it possible to remove the login form as well?

    https://imgur.com/fUQIrQB

    I am sorry for any inconvenience.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar