Forum Replies Created
-
In reply to: Providing a link to login
> 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, ORIn reply to: Providing a link to login> > What’s the “best practice” for modifying the languages file?
>
> Best pratice is never to edit existing filesCould you give a little more guidance, Pascal?
TIA,
Eric Pretorious
Portland, ORIn reply to: DISable trackbacks and pingbacks [on this page]Thank you, Pascal!
In reply to: Providing a link to loginThis 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, ORIn reply to: Understand forums structure> Thanks, Pascal: That worked perfectly!
One, very important correction: If visitors to the site aren’t logged in, they see nothing – not 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, ORIn reply to: Understand forums structure> 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, ORRobin:
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, ORRobin:
I installed bbPress by following the instructions here on bbPress.org:
- I created an empty page named “Forums” using the default forum root slug heading (i.e., ‘forums’).
- Then I added the empty “Forums” page to the site’s main menu.
Eric Pretorious
Portland, OR