Skip to:
Content
Pages
Categories
Search
Top
Bottom

What code is generating this

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

  • chrishajer
    Participant

    @chrishajer

    What does that say in English, and what theme did you start with to create that?

    It says: You must be logged in to post.

    I created that theme using Kakumei.


    chrishajer
    Participant

    @chrishajer

    I have it on line 311 of bb-includes/functions.bb-template.php in a 1.0.1 installation.

    I wouldn’t modify the core bbPress file, but that’s where the text comes from. I’m not sure of the best way to modify that text though.

    Thanks, I’ll look it up.

    I wanted to remove or replace that with an actual login form.

    Something like:

    function no_login_notice( $a, $b ) {
    if( $b !== 'You must <a href="%s">log in</a> to post.' )
    return $a;
    }
    add_filter( 'gettext', 'no_login_notice', null, 2 );

    should work I think

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