Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 2,376 through 2,400 (of 14,141 total)
  • @robin-w

    Moderator

    maybe this is closer, not quite right order

    li.bbp-forum-info, li.bbp-topic-title {
    	float: right !important;
    	text-align: right !important ;
    
    }

    @robin-w

    Moderator

    ok, 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

    @robin-w

    Moderator

    again, 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

    Private groups

    and use the topic permissions to set teachers to have access to both topics and replies, but students to only have access to replies.

    @robin-w

    Moderator

    I doubt this can be solved as posted without custom code.

    You can import files using

    GD bbPress Attachments

    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

    Code Snippets

    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

    @robin-w

    Moderator

    This 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 Working

    @robin-w

    Moderator

    you’ll need to switch debugging on to find out what the exact error is

    WP Debugging

    the post the error back here

    @robin-w

    Moderator

    @robin-w

    Moderator

    find

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    and you’ll see several action hooks you can link to

    @robin-w

    Moderator

    creating 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.

    @robin-w

    Moderator

    that 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

    Lightweight Sidebar Manager

    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

    @robin-w

    Moderator

    ah thanks for your kind words

    Home

    @robin-w

    Moderator

    so 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

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Moderation.

    @robin-w

    Moderator

    Great – glad you are fixed, and thanks for posting the answer – it will help others 🙂

    @robin-w

    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    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?

    @robin-w

    Moderator

    I’ve added an interim fix in

    bbp style pack

    once activated you will see the first tab ‘Theme Support’ where you can select to fix

    @robin-w

    Moderator

    not 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

    Inline Image Upload for BBPress

    @robin-w

    Moderator

    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

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>forum templates

    @robin-w

    Moderator

    ok, 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

    WP Debugging

    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

    @robin-w

    Moderator

    so 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.

    @robin-w

    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply form

    and item 9 lets you set the visual editor

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    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

    Health Check & Troubleshooting

    Then come back

Viewing 25 replies - 2,376 through 2,400 (of 14,141 total)