Search Results for '+.+default+.+'
-
AuthorSearch Results
-
December 3, 2021 at 2:42 pm #225946
In reply to: Subscription Mails
Chris
ParticipantNo success Robin. I used troubleshooting mode. I switched to a default theme, enabled bbpress and style pack – notification was still the same. On my theme the same.
December 3, 2021 at 1:46 pm #225945In reply to: Subscription Mails
Robin W
Moderatorok, so I am wondering if something else is interfering.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
December 3, 2021 at 1:31 pm #225942In reply to: Subscription Mails
Chris
ParticipantSure Robin. I’m not sure if it’s wordpress default template, but I’ll show you what I receive (as a test user, not admin) and what I set up.
Here’s what I receive:

Here’s my template:

I also noticed that “Don’t show this message” (Oh bother! No forums were found here!) doesn’t work for me. I ticked it, but the message is still there. Is there a php snippet I could add to my Woody snippet plugin? Thank you.
December 3, 2021 at 1:16 pm #225939Robin W
Moderatorfind
wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-access.phptransfer this to your pc and edit the text as desired
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above 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-access.phpbbPress will now use this template instead of the original
untested, but of you add
<?php bbp_get_template_part( 'form', 'user-login' ); ?>to the end of that form, it should also show a login
December 2, 2021 at 4:27 pm #225935Topic: Subscription Mails
in forum TroubleshootingChris
ParticipantHI. I have bbp Style Pack. I set up nice templates in Subscription Emails tab, but users don’t receive those mails. They receive default WordPress notifications. How to force bbPress to send those nice looking templates I’ve created?
Thank you
ChrisNovember 30, 2021 at 1:59 pm #225897In reply to: Hide “New Topic” Form on Certain Pages
Robin W
ModeratorUntested, but find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.phptransfer this to your pc and edit
change line 31
from
<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>to
<?php if ( bbp_current_user_can_access_create_topic_form() && (bbp_get_forum_id() != '2927') ) : ?>and save
where 2927 is the forum you don’t want to show the form for
then create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-topic.phpbbPress will now use this template instead of the original
If you want multiple forums, you could create and array and test against that
November 30, 2021 at 1:15 pm #225892In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderator@oscowordpress1 – it does on my test site
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
November 26, 2021 at 1:09 pm #225808In reply to: Paste as plain text for the Teeny Editor?
Robin W
Moderatorit’s a wordpress rather than bbpress issue.
The documentation could be clearer, but that section refers to the tinymce not the text editor
I’ve not tried it, but this might help
November 23, 2021 at 1:51 pm #225727In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderatoras far as I understand, the issue is detailed in changeset 7190 – yes?
so it is basically to hide the ‘generate passwword’ in form-user-passwords.php if the user’s browser does not support js or it is disabled.
If so, at the moment all bbpress pages end up with a no-js class as bbpress sets ‘no-js’ as the default, which means that the quicktags do not display on the topic and reply forms as they need js but the css thinks it is no-js, and the visual editor does not work for the same reasons.
At the moment you only test for js using the script technique in form-user-passwords.php viz
<script type="text/javascript"> document.body.className = document.body.className.replace( 'no-js', 'js' ); </script>so I would suggest 1 of 2 approaches
1. putting this test in more generally so it runs on any bbpress page (as usefully suggested by @webcreations907) maybe by adding to the main function, or adding a filter in \includes\core\filters.php to run the script
so something like :
add_filter ('bbp_body_class' , bbp_test_js) ; function bbp_test_js ($classes) { ?> <script type="text/javascript"> document.body.className = document.body.className.replace( 'no-js', 'js' ); </script> <?php return $classes ; }so that others could disable it
2. changing the class to bbp-no-js should work, if you do this in the bbp_body_class function and the form-user-passwords.php and in css, then I can no reason why it would not work if that is the sole intention of this.
November 19, 2021 at 10:22 am #225417Topic: Page layout only applies on main page
in forum ThemesAi Roux
ParticipantHello there,
I’ve installed bbpress on my forum, my theme is Fashify and my forum theme is the default one, nothing has been changed.
I setted the page of the forum with “full width”, and my default setting for the site has a right sidebar.How can I do to keep the full width template when I navigate through the forum ? I can’t find any setting for that.
Thanks by advance
November 16, 2021 at 12:14 pm #224410In reply to: Automatic register to bbpress
Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
November 15, 2021 at 1:56 pm #224391In reply to: Custom Registration Email
pluckvermont
ParticipantSo our site typically has minimal users, myself and a few admins. We login properly and make the edits to the site.
We have a forum set-up coming online. Our registrants to the forum will get an email when they register. They’ll register from the bbpress shortcode I included on a page.
Instead of saying “Welcome the forum”, the email they receive says New User Registration.
The URL it provides is the /wp-login, not the page with the bbpress login shortcode. It’s a default WP registration and login.I’d liked to customize emails going to forum registrants that are specific to the forum.
Does that make sense?
Thx–
November 11, 2021 at 9:57 pm #224332a7xfanben
ParticipantHow can I edit the background color of sticky threads in a forum? I cannot find the current/default color in my style.css file or anywhere else so far.
Thanks!
November 11, 2021 at 1:15 pm #224326Robin W
Moderatorok, I cannot replicate – might be a multisite issue, might not.
all I can suggest further is the standard advice :
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
November 9, 2021 at 3:15 pm #224292In reply to: Child theme/ php template files
Robin W
ModeratorFORUMS
\templates\default\bbpress\content-archive-forum.php
lists forumscalls
loop forums or feedback-no-forums\templates\default\bbpress\loop-forums.php
does forum list headerscalls
loop-single-forum\templates\default\bbpress\loop-single-forum.php
lists each forum, last post and freshness_____________________________________
SINGLE FORUM\templates\default\bbpress\content-single-forum.php
lists sub forums if needed using loop-forums
calls
loop-topics
calls
form topic\templates\default\bbpress\loop-topics.php
does topic list headerscalls loop-single-topic
\templates\default\bbpress\loop-single-topic.php
lists each topic in the forum, last post and freshnesslists topic content
___________________________________________
SINGLE TOPIC\templates\default\bbpress\content-single-topic.php
if show lead topic set, calls content-single-topic-leadcalls
loop-replies
form-reply\templates\default\bbpress\loop-replies.php
does reply list headerscalls loop-single-reply
\templates\default\bbpress\loop-single-reply.php
lists reply content
November 8, 2021 at 9:23 am #224268In reply to: WP-CLI commands for bbPress?
Ludovic S. Clain
ParticipantHi Robin,
thank you for your reply.For your reference, wp-cli commands often (if not all) have default outputs and they do not need to be explicitly declared unless particular outputs are expected.
Here is a list of all post types available on my WordPress installation:
https://markuphero.com/share/5dn5FOkMzGNpG9R6Unbx
As you can see, I have a custom post type named ‘sfwd-lessons’ so if I run the command
wp post list --post_type=sfwd-lessonsI have all these custom posts which are listed with the default outputs:https://markuphero.com/share/8Mbqbgujeaou2QH60l1k
But when i’m trying
wp post list --post_type=topicthe output is empty:https://markuphero.com/share/3APucSjLM0IHRgLHIuVb
https://markuphero.com/share/V3pihOOXPNQWUx3Knzqd
Have you really tried it on your end?
Warm regards,
LudovicNovember 2, 2021 at 8:53 pm #224183Topic: How to shorten default URL?
in forum TroubleshootingJohnnyScience
ParticipantSo I just got bbPress installed and working on getting it setup.
I noticed the URL being a bit long and redundant:
.com/forums/forum/ohio-medical/
Is it possible in setting to pull one of those “forums” out of the URL?
Thanks!
November 2, 2021 at 11:01 am #224174In reply to: Anonymous Subscribers does not work
Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
November 1, 2021 at 12:25 pm #224159In reply to: Limit users from creating topics
Robin W
Moderatorspectators should not be able to create topics.
Participants by default can.you will either need to
change participant permissions -see this
or add
and set up topic permissions which will then let you set up a group with permission to reply only
October 29, 2021 at 11:47 am #224121In reply to: Shortcodes in Sidebar
Robin W
Moderatorsuspect that as bbpress has custom post types, your sidebar manager is responsible
so standard testing advice is
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
October 29, 2021 at 4:00 am #224107Robin W
Moderatoruntested, but this should take out newlines and change the excerpt length to 150 – just change the 150 in the code to whatever length you want.
so firstly you need to alter the default in wordpress which is 55 so
add_filter( 'excerpt_length', 'rew_change_default_length' ) ; function rew_change_default_length () { return 150; }then alter it in the bbpress function, and change to take out line breaks
add_filter ('bbp_get_topic_excerpt' , 'rew_remove_line_breaks', 10 , 3) ; function rew_remove_line_breaks ($excerpt, $topic_id, $length){ $topic_id = bbp_get_topic_id( $topic_id ); //change length here $length = 150 ; $excerpt = get_post_field( 'post_excerpt', $topic_id ); if ( empty( $excerpt ) ) { $excerpt = bbp_get_topic_content( $topic_id ); } $excerpt = trim( strip_tags( $excerpt ) ); //take out line breaks $excerpt = preg_replace("/\r|\n/", "", $excerpt); // Multibyte support if ( function_exists( 'mb_strlen' ) ) { $excerpt_length = mb_strlen( $excerpt ); } else { $excerpt_length = strlen( $excerpt ); } if ( ! empty( $length ) && ( $excerpt_length > $length ) ) { $excerpt = mb_substr( $excerpt, 0, $length - 1 ); $excerpt .= '…'; } // Filter & return return apply_filters( 'rew_get_topic_excerpt', $excerpt, $topic_id, $length ); }Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
October 28, 2021 at 12:18 pm #224093In reply to: Remove Category Hyperlink?
Robin W
Moderator@joel-mohanraj
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.phptransfer this to your pc and edit
so you will want to take the link out of line 34
<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.phpbbPress will now use this template instead of the original
amending the freshness will require you to amend the
bbp_get_forum_freshness_linkfunction. if you are familiar with filters you can use the filter on line 585 of \includes\forums and a str_replace to take out the linkOctober 25, 2021 at 12:40 pm #223994In reply to: Double click on send button make duplicate post
Robin W
ModeratorJust had a thought and dug in the code further, the duplicate check doesn’t apply to those roles/users that can ‘throttle’
// No duplicate checks for those who can throttle if ( user_can( (int) $r['post_author'], 'throttle' ) ) { return true; }so default Keymaster and Moderator can post duplicates
October 25, 2021 at 4:46 am #223974In reply to: Child theme/ php template files
Robin W
Moderatorok, so
I understand from this threat that the layout of search results or topic-tag pages can be customized based on the template files stored in the bbpress/templates/default/bbpress folder.
In order to retain the customization during updates of the bbpress plugin, I have created the same folder structure inside the directory of my child theme (see screenshot).
yes that is correct and should work, BUT you would do better to only copy those templates you are changing/altering – bbpress will then use those you have changed from your child theme directory and use the unchanged from the plugin directory..
so what are users clicking to get the topic tags page ?
October 24, 2021 at 3:51 pm #223964Topic: Child theme/ php template files
in forum InstallationJan
ParticipantHi there,
I understand from this threat that the layout of search results or topic-tag pages can be customized based on the template files stored in the bbpress/templates/default/bbpress folder.
In order to retain the customization during updates of the bbpress plugin, I have created the same folder structure inside the directory of my child theme (see screenshot).
The only change I’d like to make is for the topic-tag page to look exactly like the search-result page (see screenshot) –> list of forum threats in full length rather than list of titles only.
In order to realize that I need to…
1) copy a ?-search.php file from the plugin directory into the respective subfolder of the child theme and
2) rename it into a ?-topic-tag.php file.Is this correct? If so, which ?-search and ?-topic-tag file do I need to consider?
Many thanks for your support in advance.
Best regards,
Jan -
AuthorSearch Results