Skip to:
Content
Pages
Categories
Search
Top
Bottom

No forum found message in a members only forum

  • @dater

    Participant

    Hi!
    I am new to bbpress but try to build up a members only forum, so all forums are marked private or hidden. When a not logged in user visits the forum a message like “Sorry! No forum found!” is shown.
    Is it possible to be more accurate and display e.g. “Sorry! You have to login or register to proceed” when a forum exists but is hidden?
    Thanks for your time!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @dater

    Participant

    Hello again,
    i think we need a setting e.g. “expose secret forums”. The statistics widget is affected too, counting strange in this setup.

    @robin-w

    Moderator

    lots of ways to do this, you might want to have a think about the best for you

    I have a plugin called

    Private groups

    which lets you set up groups and may be the best solution

    alternately

    if you are able to ftp and edit files the message is held in

    wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-forums.php

    so

    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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-forums.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/feedback-no-forums.php
    bbPress will now use this template instead of the original
    and you can amend this

    so go into it and amend the message to what you desire.

    You could instead put this in your functions file or put it in a code plugin such as

    PHP code snippets (Insert PHP)

    function rew_change_text( $translated_text, $text, $domain ) {
    	if ( $text == 'Oh bother! No forums were found here!' ) {
    	$translated_text = 'whatever you want it to say in here!' ;
    	}
    	return $translated_text;
    }
    
    add_filter( 'gettext', 'rew_change_text', 20, 3 );
    

    @dater

    Participant

    Or use bbp style pack >= v4.0.1
    Thanks!

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