epretorious (@epretorious)

Forum Replies Created

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

  • epretorious
    Participant

    @epretorious

    > Have a look if you find something in my response here:
    > https://bbpress.org/forums/topic/setup-login-for-private-forum/

    I didn’t find anything in there about modifying the languages file (bbpress.pot).

    This thread seemed promising but it left too many questions unanswered: https://bbpress.org/forums/topic/bbpress-language-files/

    What else have you got, Pascal?

    TIA,
    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    > > What’s the “best practice” for modifying the languages file?
    >
    > Best pratice is never to edit existing files

    Could you give a little more guidance, Pascal?

    TIA,
    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    Thank you, Pascal!


    epretorious
    Participant

    @epretorious

    This may be easier than I’d thought:

    [root@cp bbpress]# grep -r 'You must be logged in' *
    languages/bbpress.pot:msgid "You must be logged in to create new forums."
    languages/bbpress.pot:msgid "You must be logged in to reply to this topic."
    languages/bbpress.pot:msgid "You must be logged in to create new topics."
    templates/default/bbpress/form-forum.php:			<p><?php is_user_logged_in() ? _e( 'You cannot create new forums.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></p>
    templates/default/bbpress/form-topic.php:			<p><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
    templates/default/bbpress/form-reply.php:			<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>

    What’s the “best practice” for modifying the languages file? Is that something that I can achieve with a child theme?

    TIA,
    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    > Thanks, Pascal: That worked perfectly!

    One, very important correction: If visitors to the site aren’t logged in, they see nothingnot even the warning that “You must be logged in to…” 🙁

    There must be an easy way to do away with that “Oh bother!…” bit of text without leaving visitors in the dark. 🙁

    Maybe I should just manually change the source:

    [root@cp bbpress]# grep -r bother *
    languages/bbpress.pot:msgid "Oh bother! No forums were found here!"
    languages/bbpress.pot:msgid "Oh bother! No replies were found here!"
    languages/bbpress.pot:msgid "Oh bother! No search results were found here!"
    languages/bbpress.pot:msgid "Oh bother! No topics were found here!"
    templates/default/bbpress/feedback-no-topics.php:	<p><?php _e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></p>
    templates/default/bbpress/feedback-no-replies.php:	<p><?php _e( 'Oh bother! No replies were found here!', 'bbpress' ); ?></p>
    templates/default/bbpress/feedback-no-search.php:	<p><?php _e( 'Oh bother! No search results were found here!', 'bbpress' ); ?></p>
    templates/default/bbpress/feedback-no-forums.php:	<p><?php _e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></p>

    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    > If you don’t want to install the plugin but want to play with
    > CSS, then the below should hide the message…

    Thanks, Pascal: That worked perfectly!

    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    Robin:

    Originally: I hid the top primary menu by adding a bit of CSS to the child theme:

    .primary-navigation {
            display: none;
    }

    …but I have since enabled the top primary menu.

    HTH,
    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    Robin:

    I installed bbPress by following the instructions here on bbPress.org:

    1. I created an empty page named “Forums” using the default forum root slug heading (i.e., ‘forums’).
    2. Then I added the empty “Forums” page to the site’s main menu.

    Eric Pretorious
    Portland, OR


    epretorious
    Participant

    @epretorious

    Thanks, Robin:

    The site is PracticalXenServer.org.

    Eric Pretorious
    Portland, OR

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