Search Results for 'bbpress'
-
Search Results
-
I’m using the [bbp-forum-form] shortcode to allow forum moderators to add subforums on our site (is there a better way to do this?) and when submitting the form I get the error “ERROR: Your forum must have a parent.”
I’ve dug through the source code thoroughly to figure out what would be causing this and I just can’t track it down. Any ideas?
After user searched key wards in one of the parent forums, I want to suggest topics that are a member of the parent forum.
For example,
Forum Top |- Forum B |-topic A
| |-topic F
|
|- Forum C |-topic A
|-topic ZIf an user now in Forum B searches topic A, only show topic A in Forum B, not Forum C’s topic A.
What I tried
First, I add this cord to my child theme’s function.php.
`function my_bbp_search_form(){
?>
<div class=”bbp-search-form”><?php bbp_get_template_part( ‘form’, ‘search’ ); ?>
</div>
<?php
}
add_action( ‘bbp_template_before_single_forum’, ‘my_bbp_search_form’ );`Next, Add a field to the search form. I override form-search.php in my child themeโs /bbpress directory.
if ( bbp_allow_search() ) : ?> <?php $forum_id = bbp_get_forum_id(); ?> <div class="bbp-search-form"> <form role="search" id="bbp-search-form" method="get" action=""> <input type="text" value="" placeholder="Search <?php the_title(); ?> Topics" name="s"/> <input type="hidden" name="forum_id" value="<?php echo $forum_id; ?>"/> <input type="submit"/> </form> </div>
Finally, I filter the search query to only search a specific forum. I add this code to my functions.php.
<?php function my_bbp_filter_search_results( $r ){ $s=htmlspecialchars($_GET['s'], ENT_QUOTES, 'UTF-8'); $forum_id = htmlspecialchars($_GET['forum_id'], ENT_QUOTES, 'UTF-8'); if(isset($s)){ $args=array( 's'->$s, 'post_parent'->$forum_id, ); } return $r; } ?>
However, it didn’t work so I want to know how to achieve this.
In addition, I challenged another way like this.
if(bbp_has_topics(array('s'->$s, 'post_parent'->$forum_id))) bbp_get_template_part('bbpress/loop', 'topics');
This code is that I edited above last additional functon “my_bbp_filter_search_results()” in function.php.
However, I can’t get search’s value(name=’s’) in the first place. I tried to use “echo $s;”, $s didn’t output the value. Where is the search results file of bbpress?Please advise me. Thanks for reading.
Topic: Change default template
I have bbPress installed and configured.
If I create a page, with the shortlink: [bbp-forum-index]
then I can go to the page attributes, and change the Template from the Default Template to “Full Width Page (no sidebar)”, which is a template available from my Theme (Responsive by Cyberchimps), and it looks great.When I attempt to browse any of my forums from there I, of course, leave that Page, and enter the normal forum pages, which use the Default Template again. What I’d like to do is change what theme Template is used for all of bbPress. Possible?
I don’t have any need to edit the template itself, I just want to change which template the bbPress pages use.
Thanks!
Rick
Topic: Graphic issues with replies
Hi
I have three issues when it comes to replies to a topic.
As one can see there is a blue square around the avatar. How comes and how can I remove it?
Furthermore the size of the fonts is suddenly too big. The username beneath the avatar as well as the links in the signature.
Can you please help to fix these issues.
Thanks a lot in advance.
WP 5.4.2
bbPress 2.6.5
Theme: Blog Diary ProI’m running bbPress 2.6.5 with WordPress 5.4.2, and using SendGrid to process notifications. When I check the SendGrid activity log, I see that the forum notifications, which are being sent from a “noreply@domainname” email address, are also being delivered TO that same “noreply” email address. I have searched every setting and can’t find any reason why emails would be sent to that address. Does anyone know how this could happen? My hosting company tells me this could be seen as spam, which could affect delivery. The forums are members-only so I can’t post a link. Any advice would be greatly appreciated.
HI there
I was setting up BBPress and testing ‘register’ and couldn’t figure out why i didn’t get the verification email. Then I realised I had mis-typed my email. I was therefore wondering if there was any way to add a ‘re-type’ email field to the BBpress registration form?
WP 5.5
BBPress 2.6.5
Theme Groppe from Victor Themes (https://themeforest.net/item/groppe-nonprofit-wordpress-theme/20351940?gclid=EAIaIQobChMIsvqPo_Wz6wIVVrTVCh3mVQpjEAAYASAAEgKMKPD_BwE)Thanks
MartinHello,
I’m trying to migrate an old phpbb 3.0.2 based forum to new bbPress based forum. The default importer gave me errors like “no forums to import” and “no users to import”. I found this importer fix: https://gist.github.com/TheRobotFactory/e8ac4b3dea7920d69f1a959d216f92a3 and it fixed the user import, but still the other stuff (except posts) fail: forums, topics, etc.
Any known importer fix to be able to import from phpbb 3.0.2?There used to be a plugin called ‘bbPress Profile Link Shortcode’ created by ‘Tyler Tervooren’
Alas this plugin is out of date, is there any equivalents ?