Skip to:
Content
Pages
Categories
Search
Top
Bottom

restrict topic creation to specific forums

Published on April 14th, 2020 by antonv

I needed to restrict participant topic creation to selected forums but allow replies to all topics in all forums. I came up with this solution

function my_bbp_restrict_topic_creation( $can ) {
		
	$forum_id = array(18,22,56); //change your forum id

	if ( ! bbp_is_user_keymaster() &&  bbp_is_single_forum() &&   !in_array( bbp_get_forum_id(),$forum_id) ) {
		$can = false;	
	}

	return $can;

}
add_filter( 'bbp_current_user_can_publish_topics', 'my_bbp_restrict_topic_creation' );  

Participants can only create topics in the three forums with IDs 18,22,and 56. Whereas the KeyMaster can create topics in all forums.

3 texts are shown in french for all my langages

Published on April 14th, 2020 by ilhat

hello guys,

i have few sentences what are displayed in french for all my languages i dont know why, my default language is english, and my theme’s developer are saying that the issue is comming from bbpress.

look pictures this sentence is translated in all language
but displays french for all languages

https://paste.pics/e3ffc065ef3ef5c140d05fc85747960d
https://paste.pics/0ac43ae103b834aca3aaf608f125fa99

help me pls

best regards

bbPress and redirect_to

Published on April 14th, 2020 by ricks033

I have two websites running custom php to create Log In/Log Out entries on the menu.

The Log Out behavior is different on the two websites. I finally tracked down the problem to bbPress. The URL created by my custom code with w_logout_url() on the bbPress site includes:
&redirect_to=…

where the URL created by the site without bbPress installed does not.

Disabling bbPpress removes the &redirect_to=… and reenabling bbPress makes the redirect_to return.

That leads me to believe bbPress is changing /setting this value somewhere, but I don’t see any choice to change that value in the bbPress settings?

add_filter( 'wp_nav_menu_items', 'ccc_add_loginout_link', 10, 2 );
function ccc_add_loginout_link( $items, $args ) {
    if (is_user_logged_in() && $args->theme_location == 'header-menu') {
        $items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>';
    }
    elseif (!is_user_logged_in() && $args->theme_location == 'header-menu') {
        $items .= '<li><a href="'. site_url('wpflogin') .'">Log In</a></li>';
    }
    return $items;
}

Thanks!!

wrong pagination in the user profile page

Published on April 14th, 2020 by giovanni

Hi,
I don’t understand why it’s shown the pagination in user profile page.
I’m refering to this page: https://www.make4future.com/forums/users/giovanni/

I was thinking of hiding it with css for example:
.pagination { display:none; }

But the question is:
what is it caused by ?
There is a better way to resolve the problem ?

Thanks in advance !

Regards,
Giovanni.

2 questions

Published on April 13th, 2020 by janvb

Hi everyone, I have 2 questions:

1 My website has the language Dutch, but the bbPress plugin I installed still shows everything in English, while the bbPress.org website states that this plugin automatically changes the language … That doesn’t happen, what am I doing wrong?

2 both guests and users can post to the forum, but these posts will be immediately visible without being approved for publication.
How can I set this up?

Thanks in advance

Too many redirects on forum, not on normal pages

Published on April 12th, 2020 by Juha Metsäkallas

Hello!

I don’t know whether my site has had this from the beginning or not, since I haven’t used <!-- nextpage-> before, but…

Paging works on normal pages (post_type=page), but on forums paging causes the “too many redirects” error (even with a post with just text, no links, no images).

My site has a DV certificate from the web host provider (they took care of everything), Settings → General has the same https address for WP and the site.

WP 5.4 and bbPress 2.6.4

Allow Guests to post through moderation + Social login

Published on April 11th, 2020 by terotolkki

I am trying to achieve the following:

Allow users to post as guests but those would always go to moderation first. Registered users can post normally.

Allow users to register to my forum through some social plugin so they don’t need to register yet to another website. I just haven’t found a suitable social plugin that would help with this.

Point with all this is to lower the bar for people to start using the forum.

Any help would he highly appreciated.

I am running WordPress version 5.4 and bbPress version is 2.6.4. Website is in coming soon mode so I can’t provide a link to it.

When I reply to topic I am taken to first topic page

Published on April 11th, 2020 by splintercell

Hey there – when I or another member submits a reply to a topic we are taken to the first page of that topic. Is there anyway to stay on the page you currently submitted the reply on? Example of what we would like – we are on page 50 of the topic and reply, we would like to stay on page 50 after reply submitted, not taken to page 1.

www.livingdipfree.com

Thanks!!

lost plugin

Published on April 10th, 2020 by eco123

I downloaded the plugin. Activated and can’t see it anywhere in the site?

placeholder text in new topic form

Published on April 10th, 2020 by devansh1995

hello all,

i was able to add a placeholder text using below in reply form

add_filter( ‘bbp_get_the_content’, ‘amend_reply’, 10, 3);

Function amend_reply ($output, $args, $post_content) {
if ($args[‘context’] == ‘reply’ && $post_content == ”) $output=str_replace(‘></textarea>’, ‘placeholder=”If you are attaching media, please wait for few seconds as media uploads after clicking submit button. Do not click on refresh or back button. Depending on media size, upload time will depend.” ></textarea>’,$output) ;
return $output ;
}

however i don’t how to do this for new topic form. please help me.

Skip to toolbar