Forum Replies Created
-
In reply to: RTL broken in forums list
maybe this is closer, not quite right order
li.bbp-forum-info, li.bbp-topic-title { float: right !important; text-align: right !important ; }
In reply to: RTL broken in forums listok, I think you have fixed the title
For the breadcrumbs add this to your css
.site-breadcrumbs, #top-bar-social.top-bar-right, #searchform-dropdown, .current-shop-items-dropdown { right: 0 !important; left: 0; !important
In reply to: Update existing forum by importing fileagain, without knowing exactly what you are after, and alternative would be to have a forum where the teacher asks a question (posts a topic) and students the answer (post a reply).
If the replies can been seen by all students (and teachers of course), then you could use this plugin to create that solution
and use the topic permissions to set teachers to have access to both topics and replies, but students to only have access to replies.
In reply to: Update existing forum by importing fileI doubt this can be solved as posted without custom code.
You can import files using
It would be possible to add some fields to the topic and or reply fields – this article explains the principals.
https://wp-dreams.com/articles/2013/06/adding-custom-fields-bbpress-topic-form/
Whilst it talks about the functions file, you can also use code snipetts
so for instance if you wanted to try their code you would put all this into a single code snippet
add_action ( 'bbp_theme_before_topic_form_content', 'bbp_extra_fields'); function bbp_extra_fields() { $value = get_post_meta( bbp_get_topic_id(), 'bbp_extra_field1', true); echo '<label for="bbp_extra_field1">Extra Field 1</label><br>'; echo "<input type='text' name='bbp_extra_field1' value='".$value."'>"; $value = get_post_meta( bbp_get_topic_id(), 'bbp_extra_field2', true); echo '<label for="bbp_extra_field1">Extra Field 2</label><br>'; echo "<input type='text' name='bbp_extra_field2' value='".$value."'>"; } add_action ( 'bbp_new_topic', 'bbp_save_extra_fields', 10, 1 ); add_action ( 'bbp_edit_topic', 'bbp_save_extra_fields', 10, 1 ); function bbp_save_extra_fields($topic_id=0) { if (isset($_POST) && $_POST['bbp_extra_field1']!='') update_post_meta( $topic_id, 'bbp_extra_field1', $_POST['bbp_extra_field1'] ); if (isset($_POST) && $_POST['bbp_extra_field1']!='') update_post_meta( $topic_id, 'bbp_extra_field1', $_POST['bbp_extra_field2'] ); } add_action('bbp_template_before_replies_loop', 'bbp_show_extra_fields'); function bbp_show_extra_fields() { $topic_id = bbp_get_topic_id(); $value1 = get_post_meta( $topic_id, 'bbp_extra_field1', true); $value2 = get_post_meta( $topic_id, 'bbp_extra_field2', true); echo "Field 1: ".$value1."<br>"; echo "Field 2: ".$value2."<br>"; }
There are reply equivalents, but would need you to specify what should go into topic and what reply
In reply to: check text before sendingThis might be the same as you are saying you don’t want – the user can press the submit, but it returns an error. As close as you’ll get without some js.
function rew_min_length ($reply_content) { if (strlen($reply_content)<500) { bbp_add_error( 'bbp_reply_content', __( '<strong>ERROR</strong>: Your reply must be at least 500 characters.', 'bbpress' ) ); } return $reply_content ; } add_filter( 'bbp_new_reply_pre_content', 'rew_min_length' );
In reply to: New Topic Not Workingyou’ll need to switch debugging on to find out what the exact error is
the post the error back here
In reply to: Link back to LearnDash Course for course forumIn reply to: Link back to LearnDash Course for course forumfind
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.phpand you’ll see several action hooks you can link to
In reply to: Link back to LearnDash Course for course forumcreating a link within the forum can be done with a hook to the code quite easily.
The problem would be knowing what course sent the user to the forum, it may well be a parameter in the learndash course database (eg this course has this forum), but beyond free help to work out.
Contact me via http://www.rewweb.co.uk/contact-me/ if you want me to look.
In reply to: Critical error when user tries to reply to a postthat is a generic warning that bbpress throws up for all software that is not being maintained.
tweaks continues to work fine.
You could change it, but due to WordPress becoming obsessed with blocks, how to get it to work otherwise depends on may factors.
you could try this
I’ve not used it
bbpress has custom post types of ‘topic’, ‘reply’ and ‘forum’ – no idea if it will work
If it doesn’t – come back
In reply to: Critical error when user tries to reply to a postah thanks for your kind words
In reply to: Critical error when user tries to reply to a postso the key data is
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home2/lemonst5/public_html/wp-content/plugins/moderation-tools-for-bbpress/incs/moderation.php:111
so the plugin ‘moderation-tools-for-bbpress’ is causing the error, from memory the issue is with it running with php8.x.
This plugin is closed and not being updated.
However I have incorporated all that functionality into my style pack plugin, where this error should not occur.
so deactivate the moderation-tools-for-bbpress and delete and then
once activated go to
dashboard>settings>bbp style pack>Moderation.
In reply to: bbPress doesn’t work with Gutenberg 2022 theme?Great – glad you are fixed, and thanks for posting the answer – it will help others 🙂
In reply to: bbPress doesn’t work with Gutenberg 2022 theme?ok, I cannot say why breadcrumbs are not working for you.
it could be a plugin issue
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
In reply to: bbPress doesn’t work with Gutenberg 2022 theme?ok, you will need to define what you mean by
But “Breadcrumbs” doesn’t work
It looks fine on my test site, so are you not seeing it, or precisely what is it not doing?
In reply to: bbPress doesn’t work with Gutenberg 2022 theme?I’ve added an interim fix in
once activated you will see the first tab ‘Theme Support’ where you can select to fix
In reply to: how to publish poist with random media’snot sure if you need to do it that way, would need work beyond free help to see if possible.
This while old still works as far as I know
not knowing how your site is set up, and seeing an example – hard to understand quite what you are seeing and want to see.
but try
once activated go to
dashboard>settings>bbp style pack>forum templates
In reply to: Critical error when user tries to reply to a postok, given all the above, let’s try a different route.
In essence we need to find out exactly what this critical error is, so we need to switch on the error debug, and get to the heart of this.
The easiest way is to use
You may see lots of errors appear immediately (you may not!), don’t worry most will be trivial ones, but you might want to do this at a quiet time on your site as everyone will then see these.
So what we want is the exact error that you get when you try and post. Copy it, and you can then immediately switch debug back off.
post that back here, and we should be able to progress
In reply to: Critical error when user tries to reply to a postso did you do this bit?
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.
In reply to: Missing Subscribe/Unsubscribe button on Forumit 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
In reply to: Critical error when user tries to reply to a postit 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
In reply to: Add bold, italic, … options when writing a postonce activated go to
dashboard>settings>bbp style pack>Topic/Reply form
and item 9 lets you set the visual editor
In reply to: missing bbpress navigation in wp-admin🙂
In reply to: Duplicate Topic Detected (Not Working)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