Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,576 through 3,600 (of 14,186 total)
  • @robin-w

    Moderator

    ok so are you seeing these topics in

    dashboard>topics ?

    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

    can you explain

    Forum > Announcements > Test Topic Creation

    the form is usually at the bottom of the forum listing, what are you selecting in ‘test topic creation’ ?

    @robin-w

    Moderator

    ok, so apart from bbpress, what other bbpress related plugins are you running ?

    @robin-w

    Moderator

    presume just you as admin? or are your forum subscribers also receiving more than 1?

    @robin-w

    Moderator

    unanswered can be done by

    bbp style pack

    once activated

    create a wordpress page and use the [bsp-display-topic-index …..] shortcode

    see

    dashboard>settings>bbp style pack>Shortcodes for how to use it – but create one with noreply

    then you just create a link to that page

    @robin-w

    Moderator

    great – glad you are fixed, and thanks for the MPV – made me smile 🙂

    @robin-w

    Moderator

    ok, so I looked and yes adding elementor as a 3rd option causes the issue.

    So this is a combination of plugin actions, not a single one.

    I should say here that I am just a bbpress user who helps out here, I’m not one of the authors.

    I could spend many hours looking at all three plugins to track why the issue happens, but the easiest solution is just to add back the bbpress capabilities after plugins have loaded

    so this plugin which is just 4 lines long does that.

    BbPress Add Capabilities

    just download and then add to your site and if I have understood it, you should be back and working again.

    Let me know if/that it works.

    @robin-w

    Moderator

    ok – that shows what happens with elementor active, but if you deactivate that what happens?

    @robin-w

    Moderator

    no problem, it is already night here in the UK 🙂

    @robin-w

    Moderator

    dashboard>settings>discussion is a default wordpress option, so if you don’t have this, then something is wrong outside of bbpress !!

    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

    so maybe have a function that says

    add_action( 'bbp_theme_after_reply_form_content', 'rew_add_checkbox' );
    
    function rew_add_checkbox () {
    echo '<p class="whatever">
    <input name="my_parameter" id="my_parameter" type="checkbox" value="whatever_value_you_want" checked="checked">								<label for="whatever">Tick this box to do whatever</label>
    </p>' ;
    
    }

    This will put the checkbox after the content

    @robin-w

    Moderator

    without knowing what you are trying to achieve hard to say.

    Typically you’d use JS for stuff you want to change on the fly without reloading the screen.

    For an input form you would more normally use html and php

    But I do fully appreciate that we all play to our strengths and I would tend to use PHP where JS would be better as I know it well, and I suspect you are the reverse 🙂

    So you would add a checkbox, you can do this by amending the reply template, or better using one of the do_action hooks in the template. You can also do this using JS

    In essence you are adding this to the form, you can use whatever names you want

    <p class="whatever">
    <input name="my_parameter" id="my_parameter" type="checkbox" value="whatever_value_you_want" checked="checked">								<label for="whatever">Tick this box to do whatever</label>
    </p>

    This will create a box which when submitted will set
    $_POST[‘my_parameter’] to “whatever_value_you_want” if ticked or be blank if not

    you can use the code above to set your meta data

    @robin-w

    Moderator

    ok, can you check your moderation settings

    dashboard>settings>discussion and look at the moderation part – most commonly it is because the post breaks the no. links rule

    @robin-w

    Moderator

    ok, so as a test can you deactivate elementor to see if that resolves – trying to work out what combination causes the issue

    @robin-w

    Moderator

    elementor theme plugin or both ?

    In reply to: bbpress redirection

    @robin-w

    Moderator

    how are they loggong on wp-logon, or widget or shortcode?

    @robin-w

    Moderator

    ok, I installed the test plugin, and have not been able to find an issue.

    For instance you say ‘bbPress admin menu items disappear.’ – I can still see all admin items, can you specify an exact example of one that goes eg ‘in this I no longer see that’

    @robin-w

    Moderator

    @wleanadev old site/new site, just started happening/always happened, some users/all users, every post/some posts

    @robin-w

    Moderator

    you’ll want to use update_post_meta – this creates the entry if not there and amends it if it is.
    in the new reply handler, there is a hook which contains the reply_id which fires after the reply is created.

    so something like

    add_action( 'bbp_new_reply_post_extras', 'rew_reply_checkbox' );
    add_action( 'bbp_edit_reply_post_extras', 'rew_reply_checkbox' );
    
    function rew_reply_checkbox ($reply_id) {
    //and probably set the value to a $_POST parameter you set in the form
    if (! empty($_POST[‘my_parameter’] ) ) {
    $myvalue = $_POST[‘my_parameter’] ;
    }
    else $myvalue='empty' ;
    
    update_post_meta ($reply_id , 'my_parameter', $myvalue) ;
    }

    @robin-w

    Moderator

    This is a great plugin 🙂

    @robin-w

    Moderator

    great – glad you are fixed 🙂

    @robin-w

    Moderator

    it looks like you have fixed it ?

    @robin-w

    Moderator

    thanks, I’ll take a look later

    @robin-w

    Moderator

    thanks for this – can you confirm that is only affecting bbpress, it doesn’t affect the other plugin ?

    @robin-w

    Moderator

    hmmm….do you know what calls this function ?

Viewing 25 replies - 3,576 through 3,600 (of 14,186 total)