Search Results for '+.+default+.+'
-
AuthorSearch Results
-
November 23, 2021 at 1:51 pm #225727
In 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-lessons
I 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=topic
the 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_link
function. 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,
JanOctober 20, 2021 at 3:39 pm #223901Topic: Change Default Display Name
in forum Requests & Feedbackdaviddossantos
ParticipantHello
I am aware I can change the display name for each user manually by navigating to dashboard>users>all users>edit user and change “Display name publicly as” but I was hoping there was a way I could change the default “Display name publicly as” to first name only so all existing forum topics/ users change to first name only and future users also only show first name only. Is this possible?
October 20, 2021 at 1:02 pm #223897In reply to: search input box
Robin W
ModeratorIf you have allowed the serach, then it should appear in your main forum list.
If it is not, 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 20, 2021 at 2:33 am #223882In reply to: Forum not showing on WordPress Dashboard coiumn
Robin W
Moderatoryou need to be a keymaster to see forums in the dashboard – check your settings
dashboard>users
If you are not, then you need to get a keymaster to set you up.
If you are a keymaster 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 19, 2021 at 9:45 am #223873In reply to: Plugins that help me fix bbpress’ profile page?
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
October 18, 2021 at 4:12 pm #223856Robin W
Moderator\includes\replies\template.php
line 127
function bbp_has_replies
but be aware -lots of plugins filter this.
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 18, 2021 at 4:12 am #223835In reply to: Portion not translated
Robin W
Moderatorbest I can suggest 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 14, 2021 at 1:43 pm #223770In reply to: Add Custom User Roles
Robin W
Moderatorok, I think it was just loading in the wrong place, try
add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 ); add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 ); function add_new_roles( $bbp_roles ) { /* Add a role called naturopath */ $bbp_roles['bbp_naturopath'] = array( 'name' =>'Naturopath', 'capabilities' =>custom_capabilities( 'bbp_naturopath' ) ); return $bbp_roles; } function add_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_naturopath' ) $caps = custom_capabilities( $role ); return $caps; } function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'naturopath' role */ case 'bbp_naturopath': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' =>false, // Forum caps 'publish_forums' =>false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => true, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; } }
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 12, 2021 at 4:52 pm #223710Chuckie
Participant@wendylady, also, if you install the “Advanced Editor Tools” plugin you can get your TinyMCE toolbar to show the menu bar. I just tried it. This menu bar has the “Restore last draft” on it.
But I have not added any code to include the “restoredraft” button on the toolbar itself.
But as previously mentioned, the autosave is defaulting to 30 seconds.
-
AuthorSearch Results