Skip to:
Content
Pages
Categories
Search
Top
Bottom

Providing a link to login


  • epretorious
    Participant

    @epretorious

    I’m really surprised to see that bbPress warns visitors to the forums that “You must be logged in to create new topics.” but does not provide a link to the login page. e.g.,

    <a href='/login.php'>Login</a> to create new topics and/or to reply to topics.

    Is there some way to correct that?

    TIA,
    Eric Pretorious
    Portland, OR

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

  • 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

    Hi Eric,
    Best pratice is never to edit existing files 🙂 It gets overwritten with the next release.
    Have a look if you find something in my response here: https://bbpress.org/forums/topic/setup-login-for-private-forum/
    Pascal.


    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

    > 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

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