Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide private forum topics from public search?

Published on March 6th, 2016 by Lars Henriksen

Hello,

I have found a code snippet somewhere, that does a fine job by including forum topics in the ordinary WP search. The only problem is that I have now added some private forums on the site where teachers can share assignments and problem statements for use in class.

So I would like to exclude private forum topics and replies from search results unless you are logged in as ‘contributor’ and up.

Does anybody know how to code that?

My code snippet is here:

/**
 * Include bbPress 'topic' custom post type in WordPress' search results */
 
function ntwb_bbp_topic_cpt_search( $topic_search ) {
	$topic_search['exclude_from_search'] = false;
	return $topic_search;
}
add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' );

/**
 * Include bbPress 'forum' custom post type in WordPress' search results */

function ntwb_bbp_forum_cpt_search( $forum_search ) {
	$forum_search['exclude_from_search'] = false;
	return $forum_search;
}
add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' );

/**
 * Include bbPress 'reply' custom post type in WordPress' search results  */

function ntwb_bbp_reply_cpt_search( $reply_search ) {
	$reply_search['exclude_from_search'] = false;
	return $reply_search;
}
add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );

Thanks.

Current WordPress and bbPress

Historielaerer.dk (a site for history teachers)

Stuck on “Starting Conversion”

Published on March 6th, 2016 by aleahl213

Hello!

I’m trying to import from my old forum (PHPFox) to bbPress. It worked earlier, the problem was that my computer turned off so the import didn’t finish. So I cleared everything and tried starting it again.
It starts with “Starting Conversion” and the little loading icon. After about a minute, the loading icon disappears and nothing happens…

Can someone help me?

Importing from vbulletin –> strange characters!

Published on March 5th, 2016 by braveheart1980

Hello there!

We are in the proccess of migrating from a vbulletin v 4.2.3 forum to wordpress and bbpress
BUT importing results in completely unreadable characters!
For instance take a look here –> http://www.ninty.gr/home/forums/
The text is like :
Καταρχάς, μην είστ”
The originating vbulletin forum is in Greek (http://www.ninty.gr/content.php) if it means anything btw
Amy ideas?

Limit replies to posts to moderator and topic creator

Published on March 5th, 2016 by Syllogic

Hi,

I have several forums setup and manage access to them based on membership level by Membermouse. This works great. But now I am setting up a new forum for “Expert Advice”. The idea is that:

– all forum users have access to the forum
– all forum users can start a topic in the forum
– only moderators and the user who created the topic can reply.

I have found several plugins that manage forum access, but have not found one that offers a solution like I need. Does anybody know of such a plugin?

Thanks!
Syl

Editing “Reply To”

Published on March 5th, 2016 by pwonlineblog

I installed WordPress as an add-on to my webpage with Aabaco Small Business (formerly Yahoo), so I don’t have folders downloaded on my computer to access code. I want to make a couple of changes to the “Reply To” form in my forums. One box asks for “Mail” and I’d like to change that to “Email” to make it more understandable. I’d also like to eliminate the box for “Website” if possible since it wont be applicable to the people who will be responding on my forum.

I’m not all that experienced with coding, but I have done a little of it on my website and I’m good at following directions! Is it possible to make these changes since I don’t have WordPress as a stand alone?

Logged in users can’t see forums

Published on March 5th, 2016 by angeljs

I’m running a WordPress Multisite install and have bbPress setup on the main site. However, logged-in users can’t access the main forum. Admins and guests can see them, which doesn’t seem to make sense. Users can see group forums, but not the main page, they just get a page not found error. I’ve even tried creating the forums page and adding the shortcodes, but still get the same error.

New users are supposed to have the participant roll, which I’ve checked. I’ve also tried repairing the forums, but nothing works.

What is Username displayed by default?

Published on March 5th, 2016 by Brovashift

Hi anyone and everyone,

Im just wondering why bbpress displays participants real name instead of their username by default? I want to change this as I can’t remember ever seeing a site before where you create a username for it not to be used, even this bbpress support forum shows usernames!

I see topics on this matter going back 4+ years, and still its the same solution, why?

So why is it that we have to edit code to achieve this? It should at least be a simple edit in the admin area.

hide if there’s no freshness topic

Published on March 5th, 2016 by leev

Hello, I’m looking for a way to hide something that will be with the <?php bbp_forum_freshness_link(); ?>. Whenever there’s a topic for the forum, <?php bbp_forum_freshness_link(); ?> will display a link. If there’s no topic in the forum or it’s empty, then there will be no link. How do I add the same function to some custom added codes.

Examples, I’m looking for something like this:

<?php don’t display if there’s no topic or it’s empty ?>
topic title
by author
<?php bbp_forum_freshness_link(); ?>

<?php endif;?>

how can I put forums on all pages

Published on March 4th, 2016 by selenii

How can I edit this code

	<?php if ( bbp_has_forums() ) : ?>

		<?php bbp_get_template_part( 'loop',     'forums'    ); ?>

	<?php else : ?>

		<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>

	<?php endif; ?>

I will put forums on all forum pages, because in the subforum I have not any forums.

Plugins for easy thread creation?

Published on March 4th, 2016 by deadtomorrow

Can anyone recommend a plugin for making it easier to create threads on bbPress? E.g. create a thread from anywhere on the site.

Just want something to make it easier for new people to create threads as they’re unlikely to find the form at the foot of the forum.

Thanks 🙂

Skip to toolbar